From 336843bd8a237c9772830d65972631447e339545 Mon Sep 17 00:00:00 2001 From: cpg Date: Thu, 2 Jan 2003 21:47:49 +0000 Subject: [PATCH] fixed int promotion problem; optimized as suggested by Carsten Strotmann git-svn-id: svn://svn.cc65.org/cc65/trunk@1870 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/atari/wherex.s | 13 +++++++++++++ libsrc/atari/wherey.s | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 libsrc/atari/wherex.s create mode 100644 libsrc/atari/wherey.s diff --git a/libsrc/atari/wherex.s b/libsrc/atari/wherex.s new file mode 100644 index 000000000..c3e24c50e --- /dev/null +++ b/libsrc/atari/wherex.s @@ -0,0 +1,13 @@ +; +; Carsten Strotmann, 30.12.2002 +; +; unsigned char wherex (void); +; + + .export _wherex + .include "atari.inc" + +_wherex: + lda COLCRS + ldx #0 + rts diff --git a/libsrc/atari/wherey.s b/libsrc/atari/wherey.s new file mode 100644 index 000000000..de672b7af --- /dev/null +++ b/libsrc/atari/wherey.s @@ -0,0 +1,13 @@ +; +; Carsten Strotmann, 30.12.2002 +; +; unsigned char wherey (void); +; + + .export _wherey + .include "atari.inc" + +_wherey: + lda ROWCRS + ldx #0 + rts -- 2.39.5