ack/mach/z80/libmon/putchr.s

27 lines
229 B
ArmAsm
Raw Normal View History

1985-04-01 14:44:26 +00:00
.define putchr
1987-02-02 12:44:39 +00:00
.sect .text
.sect .rom
.sect .data
.sect .bss
.sect .text
1985-04-01 14:44:26 +00:00
putchr:
push hl
push de
push bc
cp 0x0A
jr nz,1f
ld a,0x1F
1:
ld c,a
2:
in a,0xF1
and 4
jr z,2b
ld a,c
out 0xF0,a
pop bc
pop de
pop hl
ret