mirror of
https://github.com/cc65/cc65.git
synced 2024-12-22 12:30:41 +00:00
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:
parent
aaf47e40df
commit
cfe3eda416
@ -24,7 +24,6 @@ locale.s
|
||||
localtime.s
|
||||
mktime.s
|
||||
perror.s
|
||||
putchar.s
|
||||
puts.s
|
||||
qsort.s
|
||||
realloc.s
|
||||
|
@ -42,7 +42,6 @@ C_OBJS = _afailed.o \
|
||||
localtime.o \
|
||||
mktime.o \
|
||||
perror.o \
|
||||
putchar.o \
|
||||
puts.o \
|
||||
qsort.o \
|
||||
realloc.o \
|
||||
@ -117,6 +116,7 @@ S_OBJS = _cwd.o \
|
||||
modload.o \
|
||||
oserrcheck.o \
|
||||
printf.o \
|
||||
putchar.o \
|
||||
rand.o \
|
||||
raise.o \
|
||||
remove.o \
|
||||
|
@ -1,26 +0,0 @@
|
||||
/*
|
||||
* putchar.c
|
||||
*
|
||||
* Ullrich von Bassewitz, 11.12.1998
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
#undef putchar /* This is usually declared as a macro */
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
int __fastcall__ putchar (int c)
|
||||
{
|
||||
return fputc (c, stdout);
|
||||
}
|
||||
|
||||
|
||||
|
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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user