]> git.sur5r.net Git - cc65/commitdiff
Use direct access to the position variables, since gotoxy uses them also.
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 27 Dec 2003 15:51:11 +0000 (15:51 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 27 Dec 2003 15:51:11 +0000 (15:51 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2844 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/cbm/wherex.s
libsrc/cbm/wherey.s

index c7076ad8433e45f4ed71e039f79c034489c0fb73..b8f5e16d4e342c7023cdf22171867d7c0fe64bf5 100644 (file)
@@ -5,14 +5,12 @@
 ;
 
        .export         _wherex
-        .import         PLOT
+        .import         CURS_X: zp
 
 
 .proc   _wherex
-       sec
-       jsr     PLOT            ; Get cursor position
-       tya
+        lda     CURS_X
         ldx     #$00
        rts
 .endproc
-        
+
index 869be4baff02e2d0ac2c0eb90b316a9b2f6241a5..53c5b4f6d6c3c9800fe40103718aa548cd386398 100644 (file)
@@ -5,13 +5,11 @@
 ;
 
        .export         _wherey
-        .import         PLOT
+        .import         CURS_Y: zp
 
 
 .proc   _wherey
-       sec
-       jsr     PLOT            ; Get cursor position
-       txa
+        lda     CURS_Y
         ldx     #$00
        rts
 .endproc