]> git.sur5r.net Git - cc65/blobdiff - libsrc/atari5200/cputc.s
Code review adaptations, removed "cc65_" prefix from functions
[cc65] / libsrc / atari5200 / cputc.s
index 976f910f0fd62c58a8a10da80bc6eda043b13c8b..185ad8da8ecb7fde1ce52818a3da55e9c2981f49 100644 (file)
 
         .export         _cputcxy, _cputc
         .export         plot, cputdirect, putchar
-        .import         popa, _gotoxy, mul20
+        .import         gotoxy, _mul20
         .importzp       ptr4
         .import         setcursor
 
-       .constructor    screen_setup, 26
-       .import         screen_setup_20x24
-screen_setup   = screen_setup_20x24
+        .constructor    screen_setup, 26
+        .import         screen_setup_20x24
+screen_setup    = screen_setup_20x24
 
 
 _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
 
 _cputc:
@@ -76,8 +75,7 @@ putchar:
         pha                     ; save char
 
         lda     ROWCRS_5200
-        jsr     mul20           ; destroys tmp4
-        clc
+        jsr     _mul20          ; destroys tmp4, carry is cleared
         adc     SAVMSC          ; add start of screen memory
         sta     ptr4
         txa