]> git.sur5r.net Git - cc65/blobdiff - libsrc/tgi/tgi_getmaxcolor.s
More work on the graphics subsystem
[cc65] / libsrc / tgi / tgi_getmaxcolor.s
index dda4fb2439c4677a9d90e374ccfc6cc06a28ccef..67931192041de49d4ad19f72142ebb7c051cda5c 100644 (file)
@@ -4,14 +4,15 @@
 ; unsigned char __fastcall__ tgi_getmaxcolor (void);
 ; /* Return the maximum supported color number (the number of colors would
 ;  * then be getmaxcolor()+1).
-;  */
+;  */                          
+;
 
         .include        "tgi-kernel.inc"
         .export         _tgi_getmaxcolor
 
 
 _tgi_getmaxcolor:
-        ldx     _tgi_colors
+        ldx     _tgi_colorcount
         dex
         txa
         ldx     #0