]> git.sur5r.net Git - cc65/blobdiff - libsrc/geos-common/conio/cputc.s
Introduced internal gotoxy that pops both parameters.
[cc65] / libsrc / geos-common / conio / cputc.s
index 55674d58388ae34e0e1aea3a70486bff7a998569..014c2ed0bf9a182baa4db6db96a37ebf800ca372 100644 (file)
@@ -23,8 +23,7 @@
 ; UPLINE = ?, KEY_UPARROW = GOTOY, ...
 
             .export _cputcxy, _cputc
-            .import _gotoxy, fixcursor
-            .import popa
+            .import gotoxy, fixcursor
             .import xsize,ysize
             .importzp cursor_x, cursor_y, cursor_c, cursor_r
 
@@ -34,8 +33,7 @@
 
 _cputcxy:
         pha                     ; Save C
-        jsr popa                ; Get Y
-        jsr _gotoxy             ; Set cursor, drop x
+        jsr gotoxy              ; Set cursor, drop x and y
         pla                     ; Restore C
 
 ; Plot a character - also used as internal function