]> git.sur5r.net Git - cc65/commitdiff
some cleanup, checked usage of __bgcolor and __textcolor
authormrdudz <mrdudz@users.noreply.github.com>
Mon, 28 Sep 2015 14:10:11 +0000 (16:10 +0200)
committermrdudz <mrdudz@users.noreply.github.com>
Mon, 28 Sep 2015 14:10:11 +0000 (16:10 +0200)
libsrc/c64/soft80_cgetc.s
libsrc/c64/soft80_color.s
libsrc/c64/soft80_cputc.s
libsrc/c64/soft80_kclrscr.s
libsrc/c64/soft80_kplot.s

index 12b2071a20cef1e9f05ad1022499c19f6857ca95..a8c52c1a233f1ddf7edeaaa332b59c399929bbdd 100644 (file)
@@ -3,7 +3,7 @@
 ;
 
         .export         soft80_cgetc
-        .import         cursor          ; FIX/CHECK
+        .import         cursor
         .import         soft80_putcolor
 
         .include        "c64.inc"
index c176eca7fcd700304b922b958456fcdc9b5232f0..8475cc05c9f103b9a93eaca6e6638aa3cdbe959d 100644 (file)
@@ -5,7 +5,7 @@
 ;
 
         .export         soft80_textcolor, soft80_bgcolor, soft80_bordercolor
-        .export         __textcolor,__bgcolor   ; CHECK/FIX
+        .export         __textcolor, __bgcolor
 
         .importzp       tmp1,tmp2
 
@@ -89,7 +89,6 @@ soft80_bordercolor:
         txa
         rts
 
-        ; FIXME: shouldnt they be in zeropage?
         .bss
 __textcolor:
         .res 1
index d4c7e3050470b52b5a1ebdaf3c3f53849c87dd0b..590e167401f08fbeb0003c3ddb783d92b4094ec4 100644 (file)
@@ -11,7 +11,7 @@
         .import         popa, _gotoxy
         .import         xsize
         .import         soft80_kplot
-        .import         __bgcolor               ; FIX/CHECK
+        .import         __bgcolor
 
         .importzp       tmp4,tmp3
 
index e801c93981a1cb4fd1071163e5550980e9c64367..ff1a14a07310d931954afbb98fd7b09a0a65c4e4 100644 (file)
@@ -1,7 +1,7 @@
 
         .export         soft80_kclrscr
         .import         soft80_kplot
-        .import         __bgcolor        ; FIX/CHECK
+        .import         __bgcolor
 
         .include        "c64.inc"
         .include        "soft80.inc"
index a813fd679268b9991eb89c5e9f3b564d39d83f68..884404b5ffc2fd64f5b804c3a5f5694349230326 100644 (file)
@@ -18,7 +18,8 @@ soft80_kplot:
 
         ; calc pointer to vram
         tya
-        lsr     a
+        lsr     a               ; NOTE: we can save 2 cycles here at the expense of
+                                ;       making the tables twice as big (+50 bytes)
         clc
         adc     _vramlo,x
         sta     CRAM_PTR