API by Address
API by Address
Function | Address | Description |
---|---|---|
RST_0 | 0000 | Start the computer |
RST_1 | 0008 | Report an error |
RST_2 | 0010 | Print A to the output stream |
RST_3 | 0018 | Collect character |
RST_4 | 0020 | Collect Next character |
RST_5 | 0028 | FP Calculator |
RST_6 | 0030 | FP Calculator |
RST_7 | 0038 | Maskable Interrupt Handler |
DOS_INITIALISE | 0100 | Initialise +3DOS |
DOS_VERSION | 0103 | Return DOS issue and version numbers |
DOS_OPEN | 0106 | Open and/or Create a file |
DOS_CLOSE | 0109 | Close a file |
DOS_ABANDON | 010C | Abandon a file |
DOS_REF_HEAD | 010F | Point to header data for this file |
DOS_READ | 0112 | Read bytes from a file into memory |
DOS_WRITE | 0115 | Write bytes from memory into a file |
DOS_READ_BYTE | 0118 | Read byte from a file, check for soft-EOF |
DOS_WRITE_BYTE | 011B | Write byte to a file |
DOS_CATALOG | 011E | Get the disk catalog |
DOS_FREE_SPACE | 0121 | Get free space on drive |
DOS_DELETE | 0124 | Delete a file |
DOS_RENAME | 0127 | Get free space on drive |
DOS_BOOT | 012A | Boot from disk |
DOS_SET_DRIVE | 012D | Set the default drive |
DOS_SET_USER | 0130 | Set the default user |
DOS_GET_POSITION | 0133 | Get the file pointer |
DOS_SET_POSITION | 0136 | Set the file pointer |
DOS_GET_EOF | 0139 | Get the end of file (EOF) position |
DOS_GET_1346 | 013C | Set current cache/ramdisk location |
DOS_SET_1346 | 013F | Rebuild the sector cache and RAM disk |
DOS_FLUSH | 0142 | Write any pending data to this drive |
DOS_SET_ACCESS | 0145 | Change access mode of an open file |
DOS_SET_ATTRIBUTES | 0148 | Set a files attributes |
DOS_OPEN_DRIVE | 014B | Open drive as a single file |
DOS_SET_MESSAGE | 014E | Enable/disable disk error messages |
DOS_REF_XDPB | 0151 | Point at XDPB for this drive |
DOS_MAP_A | 0154 | Map drive B to unit 0 or 1 |
DD_INTERFACE | 0157 | Check for the disk drive interface |
DD_INIT | 015A | Initialise the disk driver |
DD_SETUP | 015D | Setup disk parameters |
DD_SET_RETRY | 0160 | Set try/retry count |
DD_READ_SECTOR | 0163 | Read a sector |
DD_WRITE_SECTOR | 0166 | Write a sector |
DD_CHECK_SECTOR | 0169 | Check a sector |
DD_FORMAT | 016C | Format a track |
DD_READ_ID | 016F | Read a sector identifier |
DD_TEST_UNSUITABLE | 0172 | Check disk is suitable to write to |
DD_LOGIN | 0175 | Login a new disk |
DD_SEL_FORMAT | 0178 | Select a standard format |
DD_ASK_1 | 017B | Check to see if unit 1 is present |
DD_DRIVE_STATUS | 017E | Check drive status |
DD_EQUIPMENT | 0181 | Ask what type of drive |
DD_ENCODE | 0184 | Set copy protection encode routine |
DD_L_XDPB | 0187 | Initialise XDPB for a given format |
DD_L_DPB | 018A | Initialise DPB for a given format |
DD_L_SEEK | 018D | Seek to required track |
DD_L_READ | 0190 | Low level uPD765A read command |
DD_L_WRITE | 0193 | Low level uPD765A write command |
DD_L_ON_MOTOR | 0196 | Turn on motor |
DD_L_T_OFF_MOTOR | 0199 | Start motor off timeout |
DD_L_OFF_MOTOR | 019C | Turn off motor |
CL_ALL | 0DAF | Clear the screen |
SWAP | 5B00 | Paging subroutine |
STOO | 5B10 | Paging subroutine. Entered with interrupts disabled and AF, BC on the stack. |
YOUNGER | 5B21 | Paging subroutine |
REGNUOY | 5B2A | Paging subroutine |
ONERR | 5B3A | Paging subroutine |
RAMRST | 5B5D | RST 8 instruction used by ROM 1 to report old errors to ROM 3 |
Last modified January 23, 2022