use __exit and __write instead

This commit is contained in:
ceriel 1991-08-29 15:08:24 +00:00
parent 1be5f51868
commit 3a7f7f5eb9
5 changed files with 22 additions and 9 deletions

View file

@ -1,5 +1,2 @@
LIST LIST
Makefile
compmodule
end.s
libem_s.a libem_s.a

View file

@ -39,5 +39,4 @@ inn.s
xor.s xor.s
nop.s nop.s
outdec.s outdec.s
pstrng.s
ret.s ret.s

View file

@ -20,8 +20,16 @@
ld hl,0 ld hl,0
add hl,sp add hl,sp
call octnr call octnr
ld de,20
push de
ld de,1f ld de,1f
call pstrng push de
ld de,1
push de
call __write
pop de
pop de
pop de
pop iy pop iy
ret ret
1: .asciz 'test xxxxx 0xxxxxx\r\n' 1: .asciz 'test xxxxx 0xxxxxx\r\n'

View file

@ -37,11 +37,20 @@
push de push de
ld iy,1f+6 ld iy,1f+6
call outdec call outdec
ld de,1f ld iy,13
call pstrng push iy
ld iy,1f
push iy
ld iy,2
push iy
call __write
pop iy
pop iy
pop iy
pop de pop de
pop iy pop iy
jp 0x20 push de
call __exit
2: 2:
pop hl pop hl
push bc push bc

View file

@ -11,7 +11,7 @@ unimpld: ! used in dispatch table to
ld hl,EILLINS ld hl,EILLINS
9: push hl 9: push hl
call .trp.z call .trp.z
jp 20 ret
e.mon: e.mon:
ld hl,EMON ld hl,EMON