2 ; unsigned char __fastcall__ textcolor (unsigned char color);
3 ; unsigned char __fastcall__ bgcolor (unsigned char color);
4 ; unsigned char __fastcall__ bordercolor (unsigned char color);
7 .export soft80_textcolor, soft80_bgcolor, soft80_bordercolor
8 .export __textcolor,__bgcolor ; CHECK/FIX
12 .import soft80_checkchar
19 ldx __textcolor ; get old value
20 sta __textcolor ; set new value
37 ldx __bgcolor ; get old value
38 sta __bgcolor ; set new value
43 sta tmp2 ; shifted new value
45 sta CHARCOLOR ; text/bg combo for new chars
63 lda soft80_vram+(page*$100),x
65 cmp tmp1 ; old bg color
71 ora tmp2 ; new bg color
72 sta soft80_vram+(page*$100),x
90 ldx VIC_BORDERCOLOR ; get old value
91 sta VIC_BORDERCOLOR ; set new value
95 ; FIXME: shouldnt they be in zeropage?