]> git.sur5r.net Git - cc65/commitdiff
Added an implementation of toascii() for the Lynx, contributed by Karri
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 19 Dec 2010 11:49:58 +0000 (11:49 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 19 Dec 2010 11:49:58 +0000 (11:49 +0000)
Kaksonen.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4887 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/lynx/Makefile
libsrc/lynx/toascii.s [new file with mode: 0644]

index e2582291e0aa6575c9fb41bfb8d1ac088f437b47..7225ebddb6500ab44c83e4777034e5cd44137d8e 100644 (file)
@@ -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 (file)
index 0000000..b1437d8
--- /dev/null
@@ -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