]> git.sur5r.net Git - cc65/blobdiff - libsrc/tgi/tgi_getmaxcolor.s
Use _seterrno to make the code shorter.
[cc65] / libsrc / tgi / tgi_getmaxcolor.s
index 67931192041de49d4ad19f72142ebb7c051cda5c..2e2b2ad0e8332cb092a81f559e60dbfa963d9a33 100644 (file)
@@ -4,19 +4,18 @@
 ; 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
 
+.proc   _tgi_getmaxcolor
 
-_tgi_getmaxcolor:
         ldx     _tgi_colorcount
         dex
         txa
         ldx     #0
         rts
 
-
+.endproc