Replaced putchar by an assembler version
git-svn-id: svn://svn.cc65.org/cc65/trunk@3216 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
20
libsrc/common/putchar.s
Normal file
20
libsrc/common/putchar.s
Normal file
@@ -0,0 +1,20 @@
|
||||
;
|
||||
; Ullrich von Bassewitz, 2004-10-06
|
||||
;
|
||||
; int __fastcall__ putchar (int c);
|
||||
;
|
||||
|
||||
.export _putchar
|
||||
.import _stdout
|
||||
.import _fputc
|
||||
|
||||
|
||||
.code
|
||||
|
||||
_putchar:
|
||||
lda #<_stdout
|
||||
ldx #>_stdout
|
||||
jmp _fputc ; __fastcall__ function
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user