]> git.sur5r.net Git - cc65/blob - include/plus4.h
This commit was generated by cvs2svn to compensate for changes in r2,
[cc65] / include / plus4.h
1 /*
2  * plus4.h
3  *
4  * Ullrich von Bassewitz, 12.08.1998
5  */
6
7
8
9 #ifndef _PLUS4_H
10 #define _PLUS4_H
11
12
13
14 /* Additional key defines */
15 #define CH_F1                   133
16 #define CH_F2                   137
17 #define CH_F3                   134
18 #define CH_F4                   138
19 #define CH_F5                   135
20 #define CH_F6                   139
21 #define CH_F7                   136
22 #define CH_F8                   140
23
24
25
26 /* Color attributes */
27 #define CATTR_LUMA0             0x00
28 #define CATTR_LUMA1             0x10
29 #define CATTR_LUMA2             0x20
30 #define CATTR_LUMA3             0x30
31 #define CATTR_LUMA4             0x40
32 #define CATTR_LUMA5             0x50
33 #define CATTR_LUMA6             0x60
34 #define CATTR_LUMA7             0x70
35 #define CATTR_BLINK             0x80
36
37 /* Base colors */
38 #define BCOLOR_BLACK            0x00
39 #define BCOLOR_WHITE            0x01
40 #define BCOLOR_RED              0x02
41 #define BCOLOR_CYAN             0x03
42 #define BCOLOR_VIOLET           0x04
43 #define BCOLOR_GREEN            0x05
44 #define BCOLOR_BLUE             0x06
45 #define BCOLOR_YELLOW           0x07
46 #define BCOLOR_ORANGE           0x08
47 #define BCOLOR_BROWN            0x09
48 #define BCOLOR_LEMON            0x0A    /* What's that color? */
49 #define BCOLOR_LIGHTVIOLET      0x0B
50 #define BCOLOR_BLUEGREEN        0x0C
51 #define BCOLOR_LIGHTBLUE        0x0D
52 #define BCOLOR_DARKBLUE         0x0E
53 #define BCOLOR_LIGHTGREEN       0x0F
54
55
56
57 /* Now try to mix up a C64/C128 compatible palette */
58 #define COLOR_BLACK             (BCOLOR_BLACK)
59 #define COLOR_WHITE             (BCOLOR_WHITE | CATTR_LUMA7)
60 #define COLOR_RED               (BCOLOR_RED | CATTR_LUMA4)
61 #define COLOR_CYAN              (BCOLOR_CYAN | CATTR_LUMA7)
62 #define COLOR_VIOLET            (BCOLOR_VIOLET | CATTR_LUMA7)
63 #define COLOR_GREEN             (BCOLOR_GREEN | CATTR_LUMA7)
64 #define COLOR_BLUE              (BCOLOR_BLUE | CATTR_LUMA7)
65 #define COLOR_YELLOW            (BCOLOR_YELLOW | CATTR_LUMA7)
66 #define COLOR_ORANGE            (BCOLOR_ORANGE | CATTR_LUMA7)
67 #define COLOR_BROWN             (BCOLOR_BROWN | CATTR_LUMA7)
68 #define COLOR_LIGHTRED          (BCOLOR_RED | CATTR_LUMA7)
69 #define COLOR_GRAY1             (BCOLOR_WHITE | CATTR_LUMA1)
70 #define COLOR_GRAY2             (BCOLOR_WHITE | CATTR_LUMA3)
71 #define COLOR_LIGHTGREEN        (BCOLOR_LIGHTGREEN | CATTR_LUMA7)
72 #define COLOR_LIGHTBLUE         (BCOLOR_LIGHTBLUE | CATTR_LUMA7)
73 #define COLOR_GRAY3             (BCOLOR_WHITE | CATTR_LUMA5)
74
75
76
77 /* End of plus4.h */
78 #endif
79
80
81