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
This commit is contained in:
13
libsrc/atari/wherex.s
Normal file
13
libsrc/atari/wherex.s
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
;
|
||||||
|
; Carsten Strotmann, 30.12.2002
|
||||||
|
;
|
||||||
|
; unsigned char wherex (void);
|
||||||
|
;
|
||||||
|
|
||||||
|
.export _wherex
|
||||||
|
.include "atari.inc"
|
||||||
|
|
||||||
|
_wherex:
|
||||||
|
lda COLCRS
|
||||||
|
ldx #0
|
||||||
|
rts
|
||||||
13
libsrc/atari/wherey.s
Normal file
13
libsrc/atari/wherey.s
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
;
|
||||||
|
; Carsten Strotmann, 30.12.2002
|
||||||
|
;
|
||||||
|
; unsigned char wherey (void);
|
||||||
|
;
|
||||||
|
|
||||||
|
.export _wherey
|
||||||
|
.include "atari.inc"
|
||||||
|
|
||||||
|
_wherey:
|
||||||
|
lda ROWCRS
|
||||||
|
ldx #0
|
||||||
|
rts
|
||||||
Reference in New Issue
Block a user