]> git.sur5r.net Git - cc65/blob - libsrc/tgi/tgi_getmaxcolor.s
dda4fb2439c4677a9d90e374ccfc6cc06a28ccef
[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         .include        "tgi-kernel.inc"
10         .export         _tgi_getmaxcolor
11
12
13 _tgi_getmaxcolor:
14         ldx     _tgi_colors
15         dex
16         txa
17         ldx     #0
18         rts
19
20
21