home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / CDOSDSK6.ZIP / CDOSDSK6.TD0 / INCLUDE / CCPM.EQU next >
Encoding:
Text File  |  1989-01-16  |  6.9 KB  |  174 lines

  1. ; Concurrent CP/M-86 System Calls 
  2.  
  3.                     ; Auxiliary Device System Calls 
  4. A_ATTACH    equ    165        ; Attach Default Auxiliary Device 
  5. A_CATTACH    equ    167        ; Conditionally Attach Device 
  6. A_DETACH    equ    166        ; Detach Default Auxiliary Device 
  7. A_GET        equ    169        ; Get the Default Auxiliary Device 
  8. A_READ        equ      3        ; Get a Character from Aux Device 
  9. A_READBLK    equ    172        ; Read a Block from Aux Device 
  10. A_SET        equ    168        ; Set Default Aux Device 
  11. A_STATIN    equ      7        ; Aux Device Input Status 
  12. A_STATOUT    equ      8        ; Aux Device Output Status 
  13. A_WRITE     equ      4        ; Output a character to Aux Device 
  14. A_WRITEBLK    equ    173        ; Write a Block to Aux Device 
  15.  
  16.                     ; Console Based System Calls 
  17. C_ASSIGN    equ    149        ; Assign Default Console 
  18. C_ATTACH    equ    146        ; Attach Default Virtual Console 
  19. C_ATTRIB    equ    114        ; Return Console Attributes
  20. C_CATTACH    equ    162        ; Conditionally Attach Console 
  21. C_DELIMIT    equ    110        ; Default String Delimiter 
  22. C_DETACH    equ    147        ; Detach Virtual Console 
  23. C_GET        equ    153        ; Get the Virtual Console Number 
  24. C_MODE        equ    109        ; Set the Console mode 
  25. C_RAWIO     equ      6        ; Perform Direct I/O 
  26. C_READ        equ      1        ; Read a character from the console 
  27. C_READSTR    equ     10        ; Read a string from the console 
  28. C_SET        equ    148        ; Change the Default Console 
  29. C_STAT        equ     11        ; Get the Input Status 
  30. C_WRITE     equ      2        ; Write a character to the Console 
  31. C_WRITEBLK    equ    111        ; Write a block of characters 
  32. C_WRITESTR    equ      9        ; Write a string 
  33.  
  34.                     ; Device Based System Calls 
  35. DEV_POLL    equ    131        ; poll device 
  36. DEV_FLAGALLOC    equ     87        ; allocate flag 
  37. DEV_FLAGFREE    equ     88        ; free system flag 
  38. DEV_WAITFLAG    equ    132        ; flag wait 
  39. DEV_SETFLAG    equ    133        ; flag set 
  40.  
  41.                     ; Drive Management Functions 
  42. DRV_ACCESS    equ     38        ; Access drive (in LOCK TBL) 
  43. DRV_ALLOCVEC    equ     27        ; Get the Allocation Vector 
  44. DRV_ALLRESET    equ     13        ; Reset all drives 
  45. DRV_DPB     equ     31        ; Get the DPB 
  46. DRV_FLUSH    equ     48        ; Flush internal buffers 
  47. DRV_FREE    equ     39        ; Relinguish access to drive 
  48. DRV_GET     equ     25        ; Get the default Drive 
  49. DRV_GETLABEL    equ    101        ; Get the drives label 
  50. DRV_LOCK    equ     90        ; lock physical drive 
  51. DRV_LOGINVEC    equ     24        ; Get the login vector 
  52. DRV_RESET    equ     37        ; Reset specified drives 
  53. DRV_ROVEC    equ     29        ; Get Read Only drives 
  54. DRV_SET     equ     14        ; Set the default drive 
  55. DRV_SETLABEL    equ    100        ; Set the drive label 
  56. DRV_SETRO    equ     28        ; Set the default drive to Read Only 
  57. DRV_SPACE    equ     46        ; Return the Unalloacted space 
  58. DRV_UNLOCK    equ     91        ; unlock physical drive 
  59.  
  60.                     ; File Management Functions 
  61. F_ATTRIB    equ     30        ; Set file attributes 
  62. F_CLOSE     equ     16        ; Close File 
  63. F_DELETE    equ     19        ; Delete File 
  64. F_DMAGET    equ     52        ; Return DMA address 
  65. F_DMAOFF    equ     26        ; Set DMA Buffer Offset 
  66. F_DMASEG    equ     51        ; Set DMA Segment 
  67. F_DOS        equ    113        ; Handle Functions 
  68. F_ERRMODE    equ     45        ; Set BDOS error mode 
  69. F_LOCK        equ     42        ; Lock Records in a File 
  70. F_MAKE        equ     22        ; Create a file 
  71. F_MULTISEC    equ     44        ; Set the Mutli sector I/O count 
  72. F_OPEN        equ     15        ; Open a file 
  73. F_PARSE     equ    152        ; Initialize an FCB from string 
  74. F_PASSWD    equ    106        ; Set the default password 
  75. F_RANDREC    equ     36        ; Set Random record 
  76. F_READ        equ     20        ; Read Sequential 
  77. F_READRAND    equ     33        ; Read Random 
  78. F_RENAME    equ     23        ; Rename file 
  79. F_SETDATE    equ    116        ; Set File Time and Date Stamp 
  80. F_SFIRST    equ     17        ; Get first Matching file 
  81. F_SIZE        equ     35        ; Get file Size 
  82. F_SNEXT     equ     18        ; Get subsequent files 
  83. F_TIMEDATE    equ    102        ; Return date and time 
  84. F_TRUNCATE    equ     99        ; Truncate the file 
  85. F_UNLOCK    equ     43        ; Unlock File 
  86. F_USERNUM    equ     32        ; Set or return user number 
  87. F_WRITE     equ     21        ; Write Sequential 
  88. F_WRITERAND    equ     34        ; Write Random 
  89. F_WRITEZF    equ     40        ; Write with Zero fill 
  90. F_WRITEXFCB    equ    103        ; Create or update XFCB 
  91.  
  92.                     ; Printer Related system calls 
  93. L_ATTACH    equ    158        ; Attach Default List device 
  94. L_CATTACH    equ    161        ; Conditionally Attach List Device 
  95. L_DETACH    equ    159        ; Detach Virtual Printer 
  96. L_GET        equ    164        ; Get the Default Printer 
  97. L_SET        equ    160        ; Change the Default Printer 
  98. L_WRITE     equ      5        ; Write a character to the Printer 
  99. L_WRITEBLK    equ    112        ; Write a block of characters 
  100.  
  101.                     ; MP/M Memory Allocation 
  102. M_ALLOC     equ    128        ; Allocate Memory Segment 
  103. M_FREE        equ    130        ; Free Memory Segment 
  104.  
  105.                     ; CP/M Memory Alloacation 
  106. MC_ABS        equ     54        ;   
  107. MC_ALLFREE    equ     58        ;   
  108. MC_ALLOC    equ     55        ;   
  109. MC_ALLOCABS    equ     56        ;   
  110. MC_FREE     equ     57        ;   
  111. MC_MAX        equ     53        ;   
  112.  
  113.                     ; Network Function Calls 
  114. N_ATTACH    equ     73        ; Attach Process to Network 
  115. N_ATTRIB    equ     70        ; Set Compatiblilty Attributes 
  116. N_DETACH    equ     74        ; Detach a process from the network 
  117. N_ERRMODE    equ     72        ; Set the Network Error Mode 
  118. N_LOGOFF    equ     65        ; Terminate Link with Server 
  119. N_LOGON     equ     64        ; Log a process to a server 
  120. N_LONGTIME    equ     76        ; Set the Long TimeOut Value 
  121. N_NAME        equ     78        ; Network Names Support 
  122. N_PARATAB    equ     77        ; Get the Parameter table 
  123. N_PASSWORD    equ     75        ; Set the Network Password 
  124. N_RCT        equ     69        ; Set Requester Config Table 
  125. N_SCT        equ     71        ; Get Server Config Table 
  126. N_STAT        equ     68        ; Get Network Status Word 
  127. N_XERROR    equ     79        ; Network Extended Errors 
  128.  
  129.                     ; process control functions: 
  130. P_ABORT     equ    157        ; Terminate a Process 
  131. P_CHAIN     equ     47        ; Chain to a process 
  132. P_CLI        equ    150        ; Interpret command line 
  133. P_CREATE    equ    144        ; Create a process 
  134. P_DELAY     equ    141        ; delay specified number of ticks 
  135. P_DISPATCH    equ    142        ; let other another process run 
  136. P_EXEC        equ     93        ; CDOS 6.0 Exec/Chain Function 
  137. P_EXITCODE    equ     94        ; CDOS 6.0 Get/Set Error Code 
  138. P_LOAD        equ     59        ; Load the specified CMD file 
  139. P_PATH        equ     92        ; locate file in search path 
  140. P_PDADR     equ    156        ; dbl word ptr of process descriptor 
  141. P_PRIORITY    equ    145        ; Set process priority 
  142. P_RPL        equ    151        ; Invoke a system call from RPL 
  143. P_TERM        equ    143        ; Terminate process 
  144. P_TERMCPM    equ      0        ; Terminate process Unconditionally 
  145.  
  146.                     ; Queue Management Functions 
  147. Q_CREAD     equ    138        ; Conditional Read 
  148. Q_CWRITE    equ    140        ; Conditional Write 
  149. Q_DELETE    equ    136        ; Queue Delete 
  150. Q_MAKE        equ    134        ; Create a Queue 
  151. Q_OPEN        equ    135        ; Open a Queue 
  152. Q_READ        equ    137        ; Read from Queue 
  153. Q_WRITE     equ    139        ; Write to Queue 
  154.  
  155.                     ; System Based Calls 
  156. S_BDOSVER    equ     12        ; BDOS version Number 
  157. S_BIOS        equ     50        ; Call BIOS character I/O routine 
  158. S_GETCOUNTRY    equ     96        ; CDOS 6.0 Get Country Data 
  159. S_MEMORY    equ     89        ; allocate SYSDAT memory 
  160. S_OSVER     equ    163        ; Return type and version number 
  161. S_SCB        equ     49        ; CP/M PLUS and DOS PLUS only 
  162. S_SETCOUNTRY    equ     95        ; CDOS 6.0 Set the System Country 
  163. S_SERIAL    equ    107        ; Return the Serial Number 
  164. S_SYSDAT    equ    154        ; Return System data page address 
  165.  
  166.                     ; Time System Calls 
  167. T_GET        equ    105        ; Get the system Time 
  168. T_GETTIME    equ     83        ; Get Binary System Time 
  169. T_GETDATE    equ     85        ; Get Binary System Date 
  170. T_SECONDS    equ    155        ; As above + seconds 
  171. T_SET        equ    104        ; Set the system Time 
  172. T_SETTIME    equ     84        ; Set Binary System Time 
  173. T_SETDATE    equ     86        ; Set Binary System Date 
  174.