home *** CD-ROM | disk | FTP | other *** search
- ;
- ;BDOS equates
- ;
- WARMBOOT EQU 0
- DEFUSR EQU 3
- DEFDRV EQU 4
- BDOS EQU 5
- FCB EQU 5CH
- FCB2 EQU 6CH
- DMA EQU 80H
- TPA EQU 100H
- ;
- ;BDOS functions
- ;
- CONIN EQU 01H ;exit - character in A
- CONOUT EQU 02H ;entry - character in E
- RDRIN EQU 03H ;exit - character in A
- PUNOUT EQU 04H ;entry - character in E
- LSTOUT EQU 05H ;entry - character in E
- DCONIO EQU 06H ;entry - char. or 0FFH in E / exit if 0FFH - char. in A
- GETIOB EQU 07H ;exit - IOBYTE in A
- SETIOB EQU 08H ;entry - IOBYTE in E
- PRTSTR EQU 09H ;entry - DE ^= string
- CONSBUF EQU 0AH ;entry - DE point to buffer
- CONSTA EQU 0BH ;exit - zero/non-zero status in A
- GETVER EQU 0CH ;exit - version in HL
- RSTDSK EQU 0DH ;no parameters
- SETDSK EQU 0EH ;entry - disk number (org 0) in A
- OPENF EQU 0FH ;entry - DE ^= FCB / exit - directory code in A
- CLOSEF EQU 10H ;entry - DE ^= FCB / exit - directory code in A
- SCHFRST EQU 11H ;entry - DE ^= FCB / exit - directory code in A
- SCHNEXT EQU 12H ;entry - DE ^= FCB / exit - directory code in A
- DELF EQU 13H ;entry - DE ^= FCB / exit - directory code in A
- RDSEQ EQU 14H ;entry - DE ^= FCB / exit - Z/NZ status in A
- WRTSEQ EQU 15H ;entry - DE ^= FCB / exit - Z/NZ status in A
- MAKEF EQU 16H ;entry - DE ^= FCB / exit - directory code in A
- RENF EQU 17H ;entry - DE ^= FCB / exit - directory code in A
- GETACT EQU 18H ;exit - HL bitmapped A to P set if active
- GETDSK EQU 19H ;exit - A = current disk
- SETDMA EQU 1AH ;entry - DE ^= DMA address
- ALLOCV EQU 1BH ;exit - HL ^= allocation vector
- SETRO EQU 1CH ;write protects current disk
- GETRO EQU 1DH ;exit - HL bitmapped A to P set if read-only
- SETATT EQU 1EH ;entry - DE ^= FCB / exit - directory code in A
- DPBADDR EQU 1FH ;exit - HL ^= Disk Paramter Block
- SGTUSR EQU 20H ;entry - user number or 0FFH in E
- ; exit if 0FFH - current user number in A
- RDRAN EQU 21H ;entry - DE ^= FCB / exit - Z/NZ status in A
- WRTRAN EQU 22H ;entry - DE ^= FCB / exit - Z/NZ status in A
- FSIZE EQU 23H ;entry - DE ^= FCB / exit - file size
- ; in random record field
- GETRAN EQU 24H ;entry - DE ^= FCB / exit - translates
- ; seq rd to random in random record field
- RSET1 EQU 25H ;entry - DE bitmapped A to P set if reset
- GETDMA EQU 26H ;exit - HL ^= current DMA address
- CHGUSR EQU 27H ;entry - DE ^= FCB with destination user in S1
- WRAN0 EQU 28H ;entry - DE ^= FCB / exit - Z/NZ status in A
- GETTIME EQU 29H ;exit - HL ^= date 6 byte BCD YY MM DD HH mm ss
- SETTIME EQU 2AH ;entry - DE ^= date 6 byte BCD YY MM DD HH mm ss
- GETSTAMP EQU 2BH ;exit - HL ^= current stamp
- USESTAMP EQU 2CH ;no entry or exit
- SGPCODE EQU 2DH ;entry - return code or 0FFH in E
- ; exit if 0FFH - last program return code in A
- GETLBL EQU 2EH ;exit - directory code in A
- SETLBL EQU 2FH ;entry - DE ^= FCB / exit - directory code in A
- GETPERM EQU 30H ;exit - HL bitmapped A to P set if permanent media
- GOBIOS EQU 31H ;entry - number of bios function in E
- ;
- ;character equates
- ;
- BELL EQU 07H
- BS EQU 08H
- TAB EQU 09H
- LF EQU 0AH
- FF EQU 0CH
- CR EQU 0DH
- EOF EQU 1AH
- ESC EQU 1BH
- DEL EQU 7FH
- ;
- FALSE EQU 0
- TRUE EQU NOT FALSE
- ;
- ;report macro to show where things are
- ;
- REPORT MACRO MESSAGE,VALUE
- .PRINTX MESSAGE = VALUE
- ENDM
- ;