]> git.sur5r.net Git - cc65/blob - libsrc/tgi/tgi_getmaxcolor.s
Fixed _textcolor definition.
[cc65] / libsrc / tgi / tgi_getmaxcolor.s
1 ;
2 ; Ullrich von Bassewitz, 22.06.2002
3 ;
4 ; unsigned char 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
12 .proc   _tgi_getmaxcolor
13
14         ldx     _tgi_colorcount
15         dex
16         txa
17         ldx     #0
18         rts
19
20 .endproc