]> git.sur5r.net Git - cc65/blob - include/c128.h
This commit was generated by cvs2svn to compensate for changes in r2,
[cc65] / include / c128.h
1 /*
2  * c128.h
3  *
4  * Ullrich von Bassewitz, 12.08.1998
5  */
6
7
8
9 #ifndef _C128_H
10 #define _C128_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 defines */
27 #define COLOR_BLACK             0x00
28 #define COLOR_WHITE             0x01
29 #define COLOR_RED               0x02
30 #define COLOR_CYAN              0x03
31 #define COLOR_VIOLET            0x04
32 #define COLOR_GREEN             0x05
33 #define COLOR_BLUE              0x06
34 #define COLOR_YELLOW            0x07
35 #define COLOR_ORANGE            0x08
36 #define COLOR_BROWN             0x09
37 #define COLOR_LIGHTRED          0x0A
38 #define COLOR_GRAY1             0x0B
39 #define COLOR_GRAY2             0x0C
40 #define COLOR_LIGHTGREEN        0x0D
41 #define COLOR_LIGHTBLUE         0x0E
42 #define COLOR_GRAY3             0x0F
43
44
45
46 /* Define hardware */
47 #include <_vic.h>
48 #define VIC     (*(struct __vic*)0xD000)
49
50 #include <_sid.h>
51 #define SID     (*(struct __sid*)0xD400)
52
53 #include <_6526.h>
54 #define CIA1    (*(struct __6526*)0xDC00)
55 #define CIA2    (*(struct __6526*)0xDD00)
56
57
58
59 /* Define special memory areas */
60 #define COLOR_RAM       ((unsigned char*)0xD800)
61
62
63
64 /* End of c128.h */
65 #endif
66
67
68