From 59dd15aa55341264776a9515e43e42c9b03c4f05 Mon Sep 17 00:00:00 2001 From: mrdudz Date: Wed, 14 Oct 2015 17:25:35 +0200 Subject: [PATCH] split regular color.s into color.s and bordercolor.s --- libsrc/c64/bordercolor.s | 17 +++++++++++++++++ libsrc/c64/color.s | 10 +--------- 2 files changed, 18 insertions(+), 9 deletions(-) create mode 100644 libsrc/c64/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 - -- 2.39.5