]> git.sur5r.net Git - cc65/blob - libsrc/tgi/tgi_getcolor.s
improved handling of cursor display and position
[cc65] / libsrc / tgi / tgi_getcolor.s
1 ;
2 ; Ullrich von Bassewitz, 22.06.2002
3 ;
4 ; unsigned char __fastcall__ tgi_getcolor (void);
5 ; /* Return the current drawing color */
6
7
8         .include        "tgi-kernel.inc"
9         .export         _tgi_getcolor
10
11 _tgi_getcolor:
12         lda     _tgi_color      ; Get the current drawing color
13         ldx     #0              ; Clear high byte
14         rts
15