1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-18 00:07:21 +00:00
cc65/libsrc/common/putchar.s
cuz 1184d5ad43 putchar didn't work
git-svn-id: svn://svn.cc65.org/cc65/trunk@3685 b7a2c559-68d2-44c3-8de9-860c34a00d81
2005-12-20 22:58:16 +00:00

23 lines
368 B
ArmAsm

;
; Ullrich von Bassewitz, 2004-10-06
;
; int __fastcall__ putchar (int c);
;
.export _putchar
.import pushax
.import _stdout
.import _fputc
.code
_putchar:
jsr pushax ; Push c
lda _stdout
ldx _stdout+1
jmp _fputc ; __fastcall__ function