mirror of
https://github.com/cc65/cc65.git
synced 2025-01-13 09:31:53 +00:00
putchar didn't work
git-svn-id: svn://svn.cc65.org/cc65/trunk@3685 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
457c91aba9
commit
1184d5ad43
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user