X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Flib%2Fz80%2Fputchar.s;h=d10710aea994c0f8a649caddc902b92f6f013d4d;hb=f888fe111c14e94fd2c4c306467c69943addef00;hp=2b8fa688a2c02355481acac666212224bae34f7a;hpb=404dbf4e0b144d60a2e106ef2b32cab556436f62;p=fw%2Fsdcc diff --git a/device/lib/z80/putchar.s b/device/lib/z80/putchar.s index 2b8fa688..d10710ae 100644 --- a/device/lib/z80/putchar.s +++ b/device/lib/z80/putchar.s @@ -1,13 +1,19 @@ - .area _CODE -_putchar:: - push ix - ld ix,#0 - add ix,sp + .area CODE +_putchar:: +_putchar_rr_s:: + ld hl,#2 + add hl,sp + + ld l,(hl) + ld a,#1 + rst 0x08 + + ret + +_putchar_rr_dbs:: + ld l,e + ld a,#1 + rst 0x08 - ld a,4(ix) - out (0xff),a - - pop ix - ret - + ret