mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 17:30:50 +00:00
poor man's _toascii routine, contributed by Fatih Aygun
git-svn-id: svn://svn.cc65.org/cc65/trunk@4477 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
314984aae4
commit
5a593b8105
@ -108,6 +108,7 @@ OBJS = _scrsize.o \
|
|||||||
sysrmdir.o \
|
sysrmdir.o \
|
||||||
systime.o \
|
systime.o \
|
||||||
sysuname.o \
|
sysuname.o \
|
||||||
|
toascii.o \
|
||||||
tgi_mode_table.o\
|
tgi_mode_table.o\
|
||||||
tvtype.o \
|
tvtype.o \
|
||||||
ucase_fn.o \
|
ucase_fn.o \
|
||||||
|
19
libsrc/atari/toascii.s
Normal file
19
libsrc/atari/toascii.s
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
;
|
||||||
|
; unsigned char __fastcall__ toascii (unsigned char c);
|
||||||
|
; /* Convert a target specific character to ascii */
|
||||||
|
;
|
||||||
|
|
||||||
|
.export _toascii
|
||||||
|
|
||||||
|
.proc _toascii
|
||||||
|
|
||||||
|
; Clear the inverse video bit
|
||||||
|
and #$7F
|
||||||
|
|
||||||
|
; X must be zero on return
|
||||||
|
ldx #0
|
||||||
|
|
||||||
|
; Done!
|
||||||
|
rts
|
||||||
|
|
||||||
|
.endproc
|
Loading…
x
Reference in New Issue
Block a user