]> git.sur5r.net Git - cc65/blobdiff - libsrc/c64/soft80_cputc.s
Merge pull request #431 from polluks/patch-2
[cc65] / libsrc / c64 / soft80_cputc.s
index 1ded7ef6aa7be2e1b8a9a8f3fffa897412f739dc..f00f7792f0684171e14d45bb310dc0f7e94447f1 100644 (file)
@@ -1,6 +1,8 @@
 ;
 ; Groepaz/Hitmen, 11.10.2015
 ;
+; high level implementation for the soft80 implementation
+;
 ; void cputcxy (unsigned char x, unsigned char y, char c);
 ; void cputc (char c);
 ;
@@ -10,7 +12,7 @@
         .export         soft80_newline, soft80_plot
         .export         soft80_checkchar
 
-        .import         popa, _gotoxy
+        .import         gotoxy
 
         .import         soft80_kplot
         .import         soft80_internal_bgcolor, soft80_internal_cellcolor
@@ -23,8 +25,7 @@
 
 soft80_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