From: mrdudz Date: Mon, 28 Sep 2015 14:10:11 +0000 (+0200) Subject: some cleanup, checked usage of __bgcolor and __textcolor X-Git-Tag: V2.16~210^2~48 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=841d764a83a8d517654ff6a26d3b0eb5ee2dc369;p=cc65 some cleanup, checked usage of __bgcolor and __textcolor --- diff --git a/libsrc/c64/soft80_cgetc.s b/libsrc/c64/soft80_cgetc.s index 12b2071a2..a8c52c1a2 100644 --- a/libsrc/c64/soft80_cgetc.s +++ b/libsrc/c64/soft80_cgetc.s @@ -3,7 +3,7 @@ ; .export soft80_cgetc - .import cursor ; FIX/CHECK + .import cursor .import soft80_putcolor .include "c64.inc" diff --git a/libsrc/c64/soft80_color.s b/libsrc/c64/soft80_color.s index c176eca7f..8475cc05c 100644 --- a/libsrc/c64/soft80_color.s +++ b/libsrc/c64/soft80_color.s @@ -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 diff --git a/libsrc/c64/soft80_cputc.s b/libsrc/c64/soft80_cputc.s index d4c7e3050..590e16740 100644 --- a/libsrc/c64/soft80_cputc.s +++ b/libsrc/c64/soft80_cputc.s @@ -11,7 +11,7 @@ .import popa, _gotoxy .import xsize .import soft80_kplot - .import __bgcolor ; FIX/CHECK + .import __bgcolor .importzp tmp4,tmp3 diff --git a/libsrc/c64/soft80_kclrscr.s b/libsrc/c64/soft80_kclrscr.s index e801c9398..ff1a14a07 100644 --- a/libsrc/c64/soft80_kclrscr.s +++ b/libsrc/c64/soft80_kclrscr.s @@ -1,7 +1,7 @@ .export soft80_kclrscr .import soft80_kplot - .import __bgcolor ; FIX/CHECK + .import __bgcolor .include "c64.inc" .include "soft80.inc" diff --git a/libsrc/c64/soft80_kplot.s b/libsrc/c64/soft80_kplot.s index a813fd679..884404b5f 100644 --- a/libsrc/c64/soft80_kplot.s +++ b/libsrc/c64/soft80_kplot.s @@ -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