]> git.sur5r.net Git - cc65/commitdiff
putchar didn't work
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 20 Dec 2005 22:58:16 +0000 (22:58 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 20 Dec 2005 22:58:16 +0000 (22:58 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3685 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/common/putchar.s

index d77f8d0dd0b0bf82ef39ffa91e4189f0db59b8ac..7270ee5be7d27f4b92b70326895d94e178db454e 100644 (file)
@@ -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