]> git.sur5r.net Git - cc65/blob - libsrc/c64/color.s
Updated to use cbm_kernal.inc. Whitespace cleanups
[cc65] / libsrc / c64 / color.s
1 ;
2 ; Ullrich von Bassewitz, 06.08.1998
3 ;
4 ; unsigned char __fastcall__ textcolor (unsigned char color);
5 ; unsigned char __fastcall__ bgcolor (unsigned char color);
6 ;
7
8
9         .export         _textcolor, _bgcolor
10
11         .include        "c64.inc"
12
13 _textcolor:
14         ldx     CHARCOLOR       ; get old value
15         sta     CHARCOLOR       ; set new value
16         txa
17         rts
18
19
20 _bgcolor:
21         ldx     VIC_BG_COLOR0   ; get old value
22         sta     VIC_BG_COLOR0   ; set new value
23         txa
24         rts