]> git.sur5r.net Git - cc65/commitdiff
split regular color.s into color.s and bordercolor.s
authormrdudz <mrdudz@users.noreply.github.com>
Wed, 14 Oct 2015 15:25:35 +0000 (17:25 +0200)
committermrdudz <mrdudz@users.noreply.github.com>
Wed, 14 Oct 2015 15:25:35 +0000 (17:25 +0200)
libsrc/c64/bordercolor.s [new file with mode: 0644]
libsrc/c64/color.s

diff --git a/libsrc/c64/bordercolor.s b/libsrc/c64/bordercolor.s
new file mode 100644 (file)
index 0000000..73dfc0a
--- /dev/null
@@ -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
+
index bfc37193103cb711b4deb24a3b91ecec8539bda7..de9a973e739c843183d768cbe5f410d0773e31ef 100644 (file)
@@ -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
-