]> git.sur5r.net Git - cc65/blobdiff - libsrc/atari5200/cputc.s
Optimized mul20 & mul40 and extracted to new library.
[cc65] / libsrc / atari5200 / cputc.s
index 860eea88d253ce9ef9e0ac64a1f47153e8a2c940..185ad8da8ecb7fde1ce52818a3da55e9c2981f49 100644 (file)
@@ -10,7 +10,7 @@
 
         .export         _cputcxy, _cputc
         .export         plot, cputdirect, putchar
-        .import         gotoxy, mul20
+        .import         gotoxy, _mul20
         .importzp       ptr4
         .import         setcursor
 
@@ -75,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