From: cuz Date: Tue, 20 Dec 2005 22:58:16 +0000 (+0000) Subject: putchar didn't work X-Git-Tag: V2.12.0~168 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1184d5ad43a479b7791637b52de62ec6854578a0;p=cc65 putchar didn't work git-svn-id: svn://svn.cc65.org/cc65/trunk@3685 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/common/putchar.s b/libsrc/common/putchar.s index d77f8d0dd..7270ee5be 100644 --- a/libsrc/common/putchar.s +++ b/libsrc/common/putchar.s @@ -5,6 +5,7 @@ ; .export _putchar + .import pushax .import _stdout .import _fputc @@ -12,8 +13,9 @@ .code _putchar: - lda #<_stdout - ldx #>_stdout + jsr pushax ; Push c + lda _stdout + ldx _stdout+1 jmp _fputc ; __fastcall__ function