From: mrdudz Date: Wed, 14 Oct 2015 15:25:35 +0000 (+0200) Subject: split regular color.s into color.s and bordercolor.s X-Git-Tag: V2.16~210^2~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=59dd15aa55341264776a9515e43e42c9b03c4f05;p=cc65 split regular color.s into color.s and bordercolor.s --- diff --git a/libsrc/c64/bordercolor.s b/libsrc/c64/bordercolor.s new file mode 100644 index 000000000..73dfc0a99 --- /dev/null +++ b/libsrc/c64/bordercolor.s @@ -0,0 +1,17 @@ +; +; Ullrich von Bassewitz, 06.08.1998 +; +; unsigned char __fastcall__ bordercolor (unsigned char color); +; + + + .export _bordercolor + + .include "c64.inc" + +_bordercolor: + ldx VIC_BORDERCOLOR ; get old value + sta VIC_BORDERCOLOR ; set new value + txa + rts + diff --git a/libsrc/c64/color.s b/libsrc/c64/color.s index bfc371931..de9a973e7 100644 --- a/libsrc/c64/color.s +++ b/libsrc/c64/color.s @@ -7,7 +7,7 @@ ; - .export _textcolor, _bgcolor, _bordercolor + .export _textcolor, _bgcolor .include "c64.inc" @@ -23,11 +23,3 @@ _bgcolor: sta VIC_BG_COLOR0 ; set new value txa rts - - -_bordercolor: - ldx VIC_BORDERCOLOR ; get old value - sta VIC_BORDERCOLOR ; set new value - txa - rts -