home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug014.arc
/
MSXFER.LBR
/
BIOSH.AS
next >
Wrap
Text File
|
1979-12-31
|
512b
|
26 lines
psect text
global _biosh, csv,cret
arg equ 6 ;offset of 1st arg on stack
_biosh:
call csv
ld hl,cret ;set up return address
push hl
ld l,(ix+arg+0) ;get bios index
dec l ;adjust
ld e,l
ld h,0
ld d,0
add hl,hl ;double it
add hl,de ;times 3
ld de,(1) ;get warm boot address
add hl,de ;now have transfer address
push hl ;put on stack
ld c,(ix+arg+2) ;get 1st arg
ld b,(ix+arg+3)
ld e,(ix+arg+4) ;get 2nd arg
ld d,(ix+arg+5)
ret ;do bios call