1 #define PEL_READ_REG 0x03C7 /* Color register, read address */
\r
2 #define PEL_WRITE_REG 0x03C8 /* Color register, write address */
\r
3 #define PEL_DATA_REG 0x03C9 /* Color register, data port */
\r
4 #define PAL_SIZE 768 /* Size of palette in bytes */
\r
5 #define SC_INDEX 0x03C4 /* Sequence Controller Index */
\r
6 #define CRTC_INDEX 0x03D4 /* CRT Controller Index */
\r
7 #define MISC_OUTPUT 0x03C2 /* Miscellaneous Output register */
\r
8 #define SCREEN_SEG 0x0a000 /* segment of display memory in mode X */
\r
9 #define INPUT_STATUS_1 0x03DA /* Input Status 1 register */
\r
10 #define ATC_INDEX 0x03C0 /* Attribute Controller */
\r
11 #define START_ADDRESS_HIGH 0x0C /* bitmap start address high byte */
\r
12 #define START_ADDRESS_LOW 0x0D /* bitmap start address low byte */
\r
13 #define GC_INDEX 0x03CE
\r
14 #define BIT_MASK 0x08
\r
15 #define MAP_MASK 0x02
\r
17 #define ALL_COPY_BITS 0x00000+BIT_MASK
\r
18 #define ALL_DRAW_BITS 0x0FF00+BIT_MASK
\r
20 #define SQUARE_WIDTH 16
\r
21 #define SQUARE_HEIGHT 16
\r
22 #define SCREEN_WIDTH 320
\r
23 #define SCREEN_HEIGHT 200
\r
24 #define VIRTUAL_WIDTH 352
\r
25 #define VIRTUAL_HEIGHT 240
\r
28 #define PAGE_1 0x05540 /* 05470h ;5540h */
\r
29 #define PAGE_2 0x0AA80 /* 0A8E0h ;AA80h */
\r
31 #define SCROLL_SPEED 1 /* Don't let it go above 8! */
\r
32 #define MAGIC_NUM 100
\r
39 /* ====================================================================== */
\r
40 /* Key Assignments */
\r
41 /* ====================================================================== */
\r
55 #define kBACKSPACE 28
\r
80 #define kSEMICOLON 78
\r
82 #define kBACKQUOTE 82
\r
84 #define kBACKSLASH 86
\r
95 #define kR_SHIFT 108
\r
96 #define kGREY_STAR 110
\r
99 #define kCAPSLOCK 116
\r
110 #define kNUMLOCK 138
\r
111 #define kSCRLLOCK 140
\r
114 #define kPAGE_UP 146
\r
115 #define kGREY_MINUS 148
\r
117 #define kPAD_FIVE 152
\r
119 #define kGREY_PLUS 156
\r
122 #define kPAGE_DOWN 162
\r
123 #define kINSERT 164
\r
124 #define kDELETE 166
\r
132 typedef short word;
\r