]> git.sur5r.net Git - cc65/blobdiff - libsrc/common/putchar.s
The spans do now contain the size of a span, no longer the end offset.
[cc65] / 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