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