]> git.sur5r.net Git - cc65/commitdiff
fixed int promotion problem; optimized as suggested by Carsten Strotmann
authorcpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 2 Jan 2003 21:47:49 +0000 (21:47 +0000)
committercpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 2 Jan 2003 21:47:49 +0000 (21:47 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1870 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/atari/wherex.s [new file with mode: 0644]
libsrc/atari/wherey.s [new file with mode: 0644]

diff --git a/libsrc/atari/wherex.s b/libsrc/atari/wherex.s
new file mode 100644 (file)
index 0000000..c3e24c5
--- /dev/null
@@ -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 (file)
index 0000000..de672b7
--- /dev/null
@@ -0,0 +1,13 @@
+;
+; Carsten Strotmann, 30.12.2002
+;
+; unsigned char wherey (void);
+;
+
+       .export  _wherey
+       .include "atari.inc"
+
+_wherey:
+       lda     ROWCRS
+       ldx     #0
+       rts