]> git.sur5r.net Git - cc65/blobdiff - libsrc/atari5200/gotoxy.s
Fix coding style.
[cc65] / libsrc / atari5200 / gotoxy.s
index b4c86c95ab2e88f21bd68bec86055af3806c1271..24e2c2e35ab0edb40111e2d720f3934b707f708a 100644 (file)
@@ -6,14 +6,15 @@
 
         .include "atari5200.inc"
 
-        .export         _gotoxy
+        .export         gotoxy, _gotoxy
         .import         popa
         .import         setcursor
 
+gotoxy:
+        jsr     popa            ; Get Y
+
 _gotoxy:                        ; Set the cursor position
         sta     ROWCRS_5200     ; Set Y
         jsr     popa            ; Get X
         sta     COLCRS_5200     ; Set X
-        lda     #0
-        sta     COLCRS_5200+1   ;
         jmp     setcursor