]> git.sur5r.net Git - cc65/blobdiff - libsrc/atari/gotoxy.s
Added a blank line between .include statements and .import/.export statements
[cc65] / libsrc / atari / gotoxy.s
index 6716298332132fb62c4b9dba907c749d95c99c6b..aeaa732c09629db034e81b15e1bf6433239ede16 100644 (file)
@@ -4,15 +4,19 @@
 ; void gotoxy (unsigned char x, unsigned char y);
 ;
 
-       .include "atari.inc"
+        .include "atari.inc"
 
-       .export         _gotoxy
-       .import         popa
+        .export         gotoxy, _gotoxy
+        .import         popa
+        .import         setcursor
 
-_gotoxy:                       ; Set the cursor position
-       sta     ROWCRS          ; Set Y
-       jsr     popa            ; Get X
-       sta     COLCRS          ; Set X
-       lda     #0
-       sta     COLCRS+1        ;
-       rts             
+gotoxy:
+        jsr     popa            ; Get Y
+
+_gotoxy:                        ; Set the cursor position
+        sta     ROWCRS          ; Set Y
+        jsr     popa            ; Get X
+        sta     COLCRS          ; Set X
+        lda     #0
+        sta     COLCRS+1
+        jmp     setcursor