ceda-demo/src/io_a.asm

35 lines
381 B
NASM
Raw Normal View History

2023-10-13 07:44:39 +00:00
SECTION code
PUBLIC _io_out
_io_out:
push ix
ld ix,$0000
add ix,sp
push bc
ld c,(ix+$04)
ld b,(ix+$05)
out (c),b
pop bc
pop ix
ret
PUBLIC _io_in
_io_in:
push ix
ld ix,$0000
add ix,sp
push bc
ld c,(ix+$04)
in l,(c)
pop bc
pop ix
ret