mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 02:30:44 +00:00
Added an implementation of toascii() for the Lynx, contributed by Karri
Kaksonen. git-svn-id: svn://svn.cc65.org/cc65/trunk@4887 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
72d5d040d8
commit
0d5267fc1a
@ -52,7 +52,8 @@ OBJS = cgetc.o \
|
||||
extzp.o \
|
||||
kbhit.o \
|
||||
mainargs.o \
|
||||
sysuname.o
|
||||
sysuname.o \
|
||||
toascii.o
|
||||
|
||||
#--------------------------------------------------------------------------
|
||||
# Drivers
|
||||
|
16
libsrc/lynx/toascii.s
Normal file
16
libsrc/lynx/toascii.s
Normal file
@ -0,0 +1,16 @@
|
||||
;
|
||||
; unsigned char __fastcall__ toascii (unsigned char c);
|
||||
; /* Convert a target specific character to ascii */
|
||||
;
|
||||
|
||||
.export _toascii
|
||||
|
||||
.proc _toascii
|
||||
|
||||
; X must be zero on return
|
||||
ldx #0
|
||||
|
||||
; Done!
|
||||
rts
|
||||
|
||||
.endproc
|
Loading…
x
Reference in New Issue
Block a user