home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
MBUG
/
MBUG097.ARC
/
CPMCALLS.MAC
< prev
next >
Wrap
Text File
|
1979-12-31
|
1KB
|
75 lines
; standard CP/M system call equates
; for use WITHIN the BIOS
;
sysres equ 0
coninp equ 1
conout equ 2
reainp equ 3
punout equ 4
lisout equ 5
dircon equ 6
getiob equ 7
setiob equ 8
pristr equ 9
reabuf equ 10
getsta equ 11
retver equ 12
resdis equ 13
seldis equ 14
opefil equ 15
clofil equ 16
seafir equ 17
seanex equ 18
delfil equ 19
reaseq equ 20
wriseq equ 21
makfil equ 22
renfil equ 23
retlog equ 24
retcur equ 25
setdma equ 26
getall equ 27
wripro equ 28
getrov equ 29
setfil equ 30
getdpb equ 31
usecod equ 32
rearan equ 33
wriran equ 34
comfil equ 35
setran equ 36
resdri equ 37
wriraz equ 40
;
; this macro makes system calls easier to use
syscall macro func
ld c,func
call bdos_func
endm
;
; this macro prints the string parameter
say macro mess
local tstart
ld de,tstart
syscall pristr
dseg
tstart: defm mess,'$'
cseg
endm
;
; this macro prints a message without killing any registers
; but only when we are testing
debug macro mess1
if testing
push af
push bc
push de
push hl
say <mess1,0DH,0AH>
pop hl
pop de
pop bc
pop af
endif
endm