1
0
mirror of https://github.com/cc65/cc65.git synced 2025-04-05 13:37:17 +00:00

added _atari_xxxcolor() functions

git-svn-id: svn://svn.cc65.org/cc65/trunk@1746 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cpg 2002-12-12 23:45:51 +00:00
parent a5489728ae
commit 8b74bff122

View File

@ -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);