]> git.sur5r.net Git - cc65/blobdiff - libsrc/apple2/cputc.s
Introduced internal gotoxy that pops both parameters.
[cc65] / libsrc / apple2 / cputc.s
index 2db2962f93224f4622eaebfcd76e4abd0db0ca82..6607c6178acd987ec1b57548dc40c502fe5b004c 100644 (file)
@@ -10,7 +10,7 @@
         .endif
         .export         _cputcxy, _cputc
         .export         cputdirect, newline, putchar
-        .import         popa, _gotoxy, VTABZ
+        .import         gotoxy, VTABZ
 
         .include        "apple2.inc"
 
@@ -29,9 +29,8 @@ initconio:
 
 _cputcxy:
         pha                     ; Save C
-        jsr     popa            ; Get Y
-        jsr     _gotoxy
-        pla                     ; Restore C
+        jsr     gotoxy          ; Call this one, will pop params
+        pla                     ; Restore C and run into _cputc
 
 _cputc:
         cmp     #$0D            ; Test for \r = carrage return