X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Flib%2Fgbz80%2Fputchar.s;h=4b43a6159e621fd252f9ac91669a336b73a2c26e;hb=44a3cdde790cdde99156133b12ea6263dbde536c;hp=509d8aa6c9639f7ae87b591f2a9181ce8da12d55;hpb=b08365679f95e6cb1c7e8ef150ef304cc40cf305;p=fw%2Fsdcc diff --git a/device/lib/gbz80/putchar.s b/device/lib/gbz80/putchar.s index 509d8aa6..4b43a615 100644 --- a/device/lib/gbz80/putchar.s +++ b/device/lib/gbz80/putchar.s @@ -1,22 +1,18 @@ .area _CODE -_putchar:: - lda hl,2(sp) - ld l,(hl) - ld a,#0 - rst 0x00 - ret - -.if 0 -_putchar:: - push ix - ld ix,#0 - add ix,sp +_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 l,4(ix) - ld a,#0 - out (0xff),a - - pop ix - ret -.endif - + ret