2002-06-21 14:16:32 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 21.06.2002
|
|
|
|
;
|
|
|
|
; void __fastcall__ tgi_setcolor (unsigned char color);
|
|
|
|
; /* Set the current drawing color */
|
|
|
|
|
|
|
|
|
|
|
|
.include "tgi-kernel.inc"
|
|
|
|
.export _tgi_setcolor
|
|
|
|
|
2002-06-22 13:10:02 +00:00
|
|
|
_tgi_setcolor:
|
2002-06-22 21:40:24 +00:00
|
|
|
cmp _tgi_colorcount ; Compare to available colors
|
2002-06-22 13:10:02 +00:00
|
|
|
bcs @L1
|
2002-06-22 21:40:24 +00:00
|
|
|
sta _tgi_color ; Remember the drawing color
|
2002-06-22 13:10:02 +00:00
|
|
|
jmp tgi_setcolor ; Call the driver
|
|
|
|
@L1: jmp tgi_inv_arg ; Invalid argument
|
2002-06-22 21:40:24 +00:00
|
|
|
|
2002-06-21 14:16:32 +00:00
|
|
|
|