]> git.sur5r.net Git - cc65/blobdiff - libsrc/atari/cputc.s
Optimized mul20 & mul40 and extracted to new library.
[cc65] / libsrc / atari / cputc.s
index 7132fdca613a69c0e238310aa1a1dc088ea1955c..cf66fdacf02af2f2c66852098f3181cf42b74828 100644 (file)
@@ -7,7 +7,7 @@
 
         .export         _cputcxy, _cputc
         .export         plot, cputdirect, putchar
-        .import         gotoxy, mul40
+        .import         gotoxy, _mul40
         .importzp       tmp4,ptr4
         .import         _revflag,setcursor
 
@@ -71,8 +71,7 @@ putchar:
         sta     (OLDADR),y
 
         lda     ROWCRS
-        jsr     mul40           ; destroys tmp4
-        clc
+        jsr     _mul40          ; destroys tmp4, carry is cleared
         adc     SAVMSC          ; add start of screen memory
         sta     ptr4
         txa