From: cpg Date: Thu, 12 Dec 2002 23:45:51 +0000 (+0000) Subject: added _atari_xxxcolor() functions X-Git-Tag: V2.12.0~1913 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8b74bff122aef7cb3014c0b75f3f0d783670aa66;p=cc65 added _atari_xxxcolor() functions git-svn-id: svn://svn.cc65.org/cc65/trunk@1746 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/include/atari.h b/include/atari.h index 0840468fd..4ceadfd62 100644 --- a/include/atari.h +++ b/include/atari.h @@ -110,6 +110,8 @@ #define HUE_YELLOWRED 15 /* Color defines, similar to c64 colors (untested) */ +/* Note that the conio color implementation is monochrome (bgcolor and textcolor are only placeholders) */ +/* Use the defines with the setcolor() or _atari_xxxcolor() functions */ #define COLOR_BLACK _gtia_mkcolor(HUE_GREY,0) #define COLOR_WHITE _gtia_mkcolor(HUE_GREY,7) #define COLOR_RED _gtia_mkcolor(HUE_REDORANGE,1) @@ -132,6 +134,12 @@ extern void __fastcall__ setcolor (unsigned char color_reg, unsigned char hu extern void __fastcall__ setcolor_low (unsigned char color_reg, unsigned char color_value); extern unsigned char __fastcall__ getcolor (unsigned char color_reg); +/* function similar to conio color functions; please note that _atari_textcolor only sets the */ +/* luminance of the text in standard text mode */ +extern unsigned char __fastcall__ _atari_textcolor (unsigned char color); +extern unsigned char __fastcall__ _atari_bgcolor (unsigned char color); +extern unsigned char __fastcall__ _atari_bordercolor (unsigned char color); + /* other screen functions */ extern int __fastcall__ graphics(unsigned char mode); /* mode value same as in BASIC */ extern void __fastcall__ scroll (signed char numlines);