2002-06-22 13:10:02 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 22.06.2002
|
|
|
|
;
|
2012-03-04 13:08:54 +00:00
|
|
|
; unsigned char tgi_getmaxcolor (void);
|
2002-06-22 13:10:02 +00:00
|
|
|
; /* Return the maximum supported color number (the number of colors would
|
|
|
|
; * then be getmaxcolor()+1).
|
2003-02-11 12:37:46 +00:00
|
|
|
; */
|
2002-07-07 10:30:31 +00:00
|
|
|
;
|
2002-06-22 13:10:02 +00:00
|
|
|
|
|
|
|
.include "tgi-kernel.inc"
|
|
|
|
|
2003-02-11 12:37:46 +00:00
|
|
|
.proc _tgi_getmaxcolor
|
2002-06-22 13:10:02 +00:00
|
|
|
|
2002-07-07 10:30:31 +00:00
|
|
|
ldx _tgi_colorcount
|
2002-06-22 13:10:02 +00:00
|
|
|
dex
|
|
|
|
txa
|
|
|
|
ldx #0
|
|
|
|
rts
|
|
|
|
|
2003-02-11 12:37:46 +00:00
|
|
|
.endproc
|