From: cpg Date: Mon, 23 Nov 2009 21:35:33 +0000 (+0000) Subject: poor man's _toascii routine, contributed by Fatih Aygun X-Git-Tag: V2.13.1~52 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5a593b8105fbd70d96ec7d65d9c15877562c27c3;p=cc65 poor man's _toascii routine, contributed by Fatih Aygun git-svn-id: svn://svn.cc65.org/cc65/trunk@4477 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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