mirror of
https://github.com/cc65/cc65.git
synced 2025-08-09 13:25:06 +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:
@@ -110,6 +110,8 @@
|
|||||||
#define HUE_YELLOWRED 15
|
#define HUE_YELLOWRED 15
|
||||||
|
|
||||||
/* Color defines, similar to c64 colors (untested) */
|
/* 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_BLACK _gtia_mkcolor(HUE_GREY,0)
|
||||||
#define COLOR_WHITE _gtia_mkcolor(HUE_GREY,7)
|
#define COLOR_WHITE _gtia_mkcolor(HUE_GREY,7)
|
||||||
#define COLOR_RED _gtia_mkcolor(HUE_REDORANGE,1)
|
#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 void __fastcall__ setcolor_low (unsigned char color_reg, unsigned char color_value);
|
||||||
extern unsigned char __fastcall__ getcolor (unsigned char color_reg);
|
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 */
|
/* other screen functions */
|
||||||
extern int __fastcall__ graphics(unsigned char mode); /* mode value same as in BASIC */
|
extern int __fastcall__ graphics(unsigned char mode); /* mode value same as in BASIC */
|
||||||
extern void __fastcall__ scroll (signed char numlines);
|
extern void __fastcall__ scroll (signed char numlines);
|
||||||
|
Reference in New Issue
Block a user