From 5a593b8105fbd70d96ec7d65d9c15877562c27c3 Mon Sep 17 00:00:00 2001 From: cpg Date: Mon, 23 Nov 2009 21:35:33 +0000 Subject: [PATCH] poor man's _toascii routine, contributed by Fatih Aygun git-svn-id: svn://svn.cc65.org/cc65/trunk@4477 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/atari/Makefile | 1 + libsrc/atari/toascii.s | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 libsrc/atari/toascii.s diff --git a/libsrc/atari/Makefile b/libsrc/atari/Makefile index 95ca16229..3b11f0f2f 100644 --- a/libsrc/atari/Makefile +++ b/libsrc/atari/Makefile @@ -108,6 +108,7 @@ OBJS = _scrsize.o \ sysrmdir.o \ systime.o \ sysuname.o \ + toascii.o \ tgi_mode_table.o\ tvtype.o \ ucase_fn.o \ diff --git a/libsrc/atari/toascii.s b/libsrc/atari/toascii.s new file mode 100644 index 000000000..328f1f486 --- /dev/null +++ b/libsrc/atari/toascii.s @@ -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 -- 2.39.5