]> git.sur5r.net Git - cc65/blob - libsrc/tgi/tgi_getmaxcolor.s
improved handling of cursor display and position
[cc65] / libsrc / tgi / tgi_getmaxcolor.s
1 ;
2 ; Ullrich von Bassewitz, 22.06.2002
3 ;
4 ; unsigned char __fastcall__ tgi_getmaxcolor (void);
5 ; /* Return the maximum supported color number (the number of colors would
6 ;  * then be getmaxcolor()+1).
7 ;  */                          
8 ;
9
10         .include        "tgi-kernel.inc"
11         .export         _tgi_getmaxcolor
12
13
14 _tgi_getmaxcolor:
15         ldx     _tgi_colorcount
16         dex
17         txa
18         ldx     #0
19         rts
20
21
22