2002-06-22 13:10:02 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 22.06.2002
|
|
|
|
;
|
|
|
|
; unsigned char __fastcall__ tgi_getmaxcolor (void);
|
|
|
|
; /* 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
|
2002-06-22 13:10:02 +00:00
|
|
|
|