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
4 changed files with 21 additions and 28 deletions
|
@ -24,7 +24,6 @@ locale.s
|
||||||
localtime.s
|
localtime.s
|
||||||
mktime.s
|
mktime.s
|
||||||
perror.s
|
perror.s
|
||||||
putchar.s
|
|
||||||
puts.s
|
puts.s
|
||||||
qsort.s
|
qsort.s
|
||||||
realloc.s
|
realloc.s
|
||||||
|
|
|
@ -42,7 +42,6 @@ C_OBJS = _afailed.o \
|
||||||
localtime.o \
|
localtime.o \
|
||||||
mktime.o \
|
mktime.o \
|
||||||
perror.o \
|
perror.o \
|
||||||
putchar.o \
|
|
||||||
puts.o \
|
puts.o \
|
||||||
qsort.o \
|
qsort.o \
|
||||||
realloc.o \
|
realloc.o \
|
||||||
|
@ -117,6 +116,7 @@ S_OBJS = _cwd.o \
|
||||||
modload.o \
|
modload.o \
|
||||||
oserrcheck.o \
|
oserrcheck.o \
|
||||||
printf.o \
|
printf.o \
|
||||||
|
putchar.o \
|
||||||
rand.o \
|
rand.o \
|
||||||
raise.o \
|
raise.o \
|
||||||
remove.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…
Add table
Reference in a new issue