home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / fish / math / 3dplot / src / arp_lib.fd < prev    next >
Text File  |  1991-01-19  |  4KB  |  141 lines

  1. * arp_lib.fd, Created 10-Jan-88 by SDB,
  2. * for all you lettuce heads out there.
  3. * Use at your own risk, etc.,etc.,etc.
  4. * New functions added 24-Jan-88, SDB
  5. * Final additions for V33.4, 14-Feb-88, SDB
  6. * Final Final addition: 16-Feb-88, add register optimizations for Peabody.
  7. * tweeked for v37
  8. ##base _ArpBase
  9. ##bias 30
  10. ##private
  11. * --- DOS Identical functions
  12. Open(name,accessMode)(D1/D2)
  13. Close(file)(D1)
  14. Read(file,buffer,length)(D1/D2/D3)
  15. Write(file,buffer,length)(D1/D2/D3)
  16. Input()
  17. Output()
  18. Seek(file,position,offset)(D1/D2/D3)
  19. DeleteFile(name)(D1)
  20. Rename(oldName,newName)(D1/D2)
  21. Lock(name,type)(D1/D2)
  22. UnLock(lock)(D1)
  23. DupLock(lock)(D1)
  24. Examine(lock,fileInfoBlock)(D1/D2)
  25. ExNext(lock,fileInfoBlock)(D1/D2)
  26. Info(lock,parameterBlock)(D1/D2)
  27. CreateDir(name)(D1)
  28. CurrentDir(lock)(D1)
  29. IoErr()
  30. CreateProc(name,pri,segList,stackSize)(D1/D2/D3/D4)
  31. Exit(returnCode)(D1)
  32. LoadSeg(fileName)(D1)
  33. UnLoadSeg(segment)(D1)
  34. ##private
  35. GetPacket(wait)(D1)
  36. QueuePacket(packet)(D1)
  37. ##private
  38. DeviceProc(name)(D1)
  39. SetComment(name,comment)(D1/D2)
  40. SetProtection(name,mask)(D1/D2)
  41. DateStamp(date)(D1)
  42. Delay(timeout)(D1)
  43. WaitForChar(file,timeout)(D1/D2)
  44. ParentDir(lock)(D1)
  45. IsInteractive(file)(D1)
  46. * Introducing a Major Contributor to ARP, the Execute() function call...
  47. Execute(string,file,file)(D1/D2/D3)
  48. *--- ARP Functions
  49. *--- Functions marked private are only because we don't want lattice
  50. *--- to generate code, but rather use the stub routines in LatticeGlue.s
  51. *---
  52. ##private
  53. Printf(string, stream)(a0/a1)
  54. FPrintf(file,string,stream)(d0,a0/a1)
  55. ##public
  56. Puts(string)(a1)
  57. ReadLine(buffer)(a0)
  58. GADS(line,len,help,args,tplate)(a0,d0/a1/a2/a3)
  59. Atol(string)(a0)
  60. EscapeString(string)(a0)
  61. CheckAbort(func)(a1)
  62. CheckBreak(masks,func)(d1/a1)
  63. Getenv(string,buffer,size)(a0/a1,d0)
  64. Setenv(varname,value)(a0/a1)
  65. FileRequest(FileRequester)(a0)
  66. CloseWindowSafely(Window1,Window2)(a0/a1)
  67. CreatePort(name,pri)(a0,d0)
  68. DeletePort(port)(a1)
  69. SendPacket(action,args,handler)(d0/a0/a1)
  70. InitStdPacket(action,args,packet,replyport)(d0/a0/a1/a2)
  71. PathName(lock,buffer,componentcount)(d0/a0,d1)
  72. Assign(logical,physical)(a0/a1)
  73. DosAllocMem(size)(d0)
  74. DosFreeMem(dosblock)(a1)
  75. BtoCStr(cstr,bstr,maxlength)(a0,d0/d1)
  76. CtoBStr(cstr,bstr,maxlength)(a0,d0/d1)
  77. GetDevInfo(devnode)(a2)
  78. FreeTaskResList()
  79. ArpExit(rc,result2)(d0/d2)
  80. ##private
  81. ArpAlloc(size)(d0)
  82. ArpAllocMem(size,requirements)(d0/d1)
  83. ArpOpen(name,mode)(d1/d2)
  84. ArpDupLock(lock)(d1)
  85. ArpLock(name,mode)(d1/d2)
  86. RListAlloc(reslist,size)(a0,d0)
  87. ##public
  88. FindCLI(clinum)(d0)
  89. QSort(base,rsize,bsize,comp)(a0,d0/d1/a1)
  90. PatternMatch(pattern,string)(a0/a1)
  91. FindFirst(pattern,AnchorPath)(d0/a0)
  92. FindNext(AnchorPath)(a0)
  93. FreeAnchorChain(AnchorPath)(a0)
  94. CompareLock(lock1,lock2)(d0/d1)
  95. FindTaskResList()
  96. CreateTaskResList()
  97. FreeResList(freelist)(a1)
  98. FreeTrackedItem(item)(a1)
  99. ##private
  100. GetTracker()
  101. ##public
  102. GetAccess(tracker)(a1)
  103. FreeAccess(tracker)(a1)
  104. FreeDAList(node)(a1)
  105. AddDANode(data,dalist,length,id)(a0/a1,d0/d1)
  106. AddDADevs(dalist,select)(a0,d0)
  107. Strcmp(s1,s2)(a0/a1)
  108. Strncmp(s1,s2,count)(a0/a1,d0)
  109. ##private
  110. * -- uses 16 bit arg
  111. Toupper(character)(d0)
  112. ##public
  113. SyncRun(name,command,input,output)(a0/a1,d0/d1)
  114. * -- The Next generation, the adventure continues!
  115. ASyncRun(name,command,pcb)(a0/a1/a2)
  116. LoadPrg(name)(d1)
  117. PreParse(source,dest)(a0/a1)
  118. StamptoStr(datetime)(a0)
  119. StrtoStamp(datetime)(a0)
  120. ObtainResidentPrg(name)(a0)
  121. AddResidentPrg(Segment,name)(d1/a0)
  122. RemResidentPrg(name)(a0)
  123. UnLoadPrg(segment)(d1)
  124. LMult(a,b)(d0/d1)
  125. LDiv(a,b)(d0/d1)
  126. LMod(a,b)(d0/d1)
  127. CheckSumPrg(ResidentNode)(d0)
  128. TackOn(pathname,filename)(a0/a1)
  129. BaseName(name)(a0)
  130. ReleaseResidentPrg(segment)(d1)
  131. * --- v37 stuff
  132. ##private
  133. SPrintf(file,string,stream)(d0,a0/a1)
  134. * --- don't know register usage of this
  135. GetKeywordIndex(char *,char *)(A0/A1)
  136. * next 2 are tracked
  137. ArpOpenLibrary(name,vers)(a1,d0)
  138. ArpAllocFreq()()
  139. ##public
  140. ##end
  141.