]> git.sur5r.net Git - cc65/blob - libsrc/tgi/tgi_getcolor.s
Relocate register values outside structs, + more
[cc65] / libsrc / tgi / tgi_getcolor.s
1 ;
2 ; Ullrich von Bassewitz, 22.06.2002
3 ;
4 ; unsigned char tgi_getcolor (void);
5 ; /* Return the current drawing color */
6
7
8         .include        "tgi-kernel.inc"
9
10 .proc   _tgi_getcolor
11
12         lda     _tgi_color      ; Get the current drawing color
13         ldx     #0              ; Clear high byte
14         rts
15
16 .endproc