2 ; Ullrich von Bassewitz, 06.08.1998
3 ; Adapted for Vic20 by Steve Schmidtke 05.08.2002
5 ; unsigned char __fastcall__ textcolor (unsigned char color);
6 ; unsigned char __fastcall__ bgcolor (unsigned char color);
7 ; unsigned char __fastcall__ bordercolor (unsigned char color);
11 .export _textcolor, _bgcolor, _bordercolor
21 ldx CHARCOLOR ; get old value
22 sta CHARCOLOR ; set new value
33 sei ; don't want anything messing around while we update
34 lda VIC_COLOR ; get old value
38 sta VIC_COLOR ; set new value
51 sei ; don't want anything messing around while we update
52 lda VIC_COLOR ; get old value
56 sta VIC_COLOR ; set new value