home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Oakland CPM Archive
/
oakcpm.iso
/
cpm
/
kaypro
/
kp-vt52.lbr
/
BDOS.EQU
< prev
next >
Wrap
Text File
|
1985-09-06
|
3KB
|
79 lines
BDOS EQU 0005H ;Call BDOS
;BDOS calls
;
;Function Name Function Input Parameters Output Parameter
;============= ======== ================ ================
; (ALL Function Numbers are passed in Register C)
CONIN EQU 01H ;Read Console NONE ASCII Char in A
CONOUT EQU 02H ;Write Console ASCII Char in E NONE
AUXIN EQU 03H ;Auxiliary input
RDRIN EQU 03H ;Read Reader NONE ASCII Char in A
AUXOUT EQU 04H ;Auxiliary output
PUNOUT EQU 04H ;Write Punch ASCII Char in E NONE
LSTOUT EQU 05H ;Write List ASCII Char in E NONE
DCONIO EQU 06H ;Direct Con I/O ASCII Char in E I/O Status in A
; if E=0FEH,
; Input if E=0FFH
AUXIST EQU 07H ;Get AUXIN: status A=FF is character
; ready, A=0 if none
GTIOB EQU 07H ;Get I/O status NONE I/O Status in A
AUXOST EQU 08H ;Get AUXOUT: status A=FF if ready, A=0
; if not ready
PTIOB EQU 08H ;Put I/O status I/O Status in E NONE
PRSTR EQU 09H ;Print String String-Address NONE
; in DE (term=$)
RDSTR EQU 0AH ;Read Buffer Buffer-Address Read Buffer filled
; in DE
; Read Buffer Byte Function
; 1 Maximum Buffer Length
; 2 Current Buffer Length (returned value)
; 3-n Data (returned values)
;
CONSTA EQU 0BH ;Console Stat NONE LSB(A)=1 if char ready
INBDOS EQU 0DH ;Init BDOS NONE NONE
LOGDSK EQU 0EH ;LOG-In disk Value in E NONE
; A=0,B=1,...
OPENF EQU 0FH ;Open File FCB-Addr in DE Byte Addr.of FCB,
; or 0FFH if not
CLOSF EQU 10H ;Close File FCB-Addr in DE Byte Addr.of FCB,
; or 0FFH if not
SFIRST EQU 11H ;Search File FCB-Addr in DE Byte Addr.of FCB(0-3),
; or 0FFH if not
SNEXT EQU 12H ;Search next FCB-Addr in DE Byte Addr.of next FCB,
; or 0FFH if not
DELF EQU 13H ;Delete File FCB-Addr in DE Byte Addr.of FCB(0-3),
; or 0FFH if not
READF EQU 14H ;Read Record FCB-Addr in DE 0=successful read
; 1=read past EOF
; 2=reading random data
WRITEF EQU 15H ;Write Record FCB-Addr in DE 0=successful write
; 1=ERROR extending
; 2=End of disk data
; 255=No more DIR space
MAKEF EQU 16H
RENAM EQU 17H
RDLOG EQU 18H ;Ret. Log Code NONE Login Vector in HL
RDDRV EQU 19H ;Read Drive # NONE # of logged in drive in
; (A=0,B=1,C=2....)
SETDMA EQU 1AH ;Set DMA Addr. Addr. of 128 NONE
; byte buffer in DE
GETALV EQU 1BH ;Get All.Vect. NONE All.Vect in HL
WRTPRT EQU 1CH ;Write prot dsk NONE NONE
GETROV EQU 1DH ;Get R/O Vect. NONE HL= R/O Vect. value
SETFAT EQU 1EH ;Set File Attr. FCB-Addr.in DE Dir. code in A
GTDPAR EQU 1FH ;Get DSK par. NONE HL=DPB Address
USRCOD EQU 20H ;Get/Set Usr.Cd E=0FFH (get) A=current code (get)
; E-code (set) A=no value (set)
RRAND EQU 21H ;Read Random FCB-Addr in DE A=Return code
WRAND EQU 22H ;Write Random FCB-Addr in DE 1=read'g unwritten data
; 2=(not used)
; 3=can't close curr. ext
; 4=seek to unwr. ext.
; 5=dir overflow(write)
; 6=seek past End of DSK
CFLSZ EQU 23H ;Comp File Sz. FCB Addr.in DE Rand.Rec.field set to
; File size
SETRAR EQU 24H ;Set Rand. Rec. FCB-Addr.in DE Rand.Rec.field set