From 0d5267fc1a2491e2dd067f6be7ee0741877929ce Mon Sep 17 00:00:00 2001 From: uz Date: Sun, 19 Dec 2010 11:49:58 +0000 Subject: [PATCH] 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 --- libsrc/lynx/Makefile | 3 ++- libsrc/lynx/toascii.s | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 libsrc/lynx/toascii.s diff --git a/libsrc/lynx/Makefile b/libsrc/lynx/Makefile index e2582291e..7225ebddb 100644 --- a/libsrc/lynx/Makefile +++ b/libsrc/lynx/Makefile @@ -52,7 +52,8 @@ OBJS = cgetc.o \ extzp.o \ kbhit.o \ mainargs.o \ - sysuname.o + sysuname.o \ + toascii.o #-------------------------------------------------------------------------- # Drivers diff --git a/libsrc/lynx/toascii.s b/libsrc/lynx/toascii.s new file mode 100644 index 000000000..b1437d8a9 --- /dev/null +++ b/libsrc/lynx/toascii.s @@ -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 -- 2.39.5