-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcpc.h
147 lines (144 loc) · 8.36 KB
/
cpc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
const uint8_t cpcBitmaps[] PROGMEM = {
0xFF, 0xCC, 0xDE, 0xF6, 0x6C, 0xDB, 0xFB, 0x6F, 0xED, 0x9B, 0x00, 0x31,
0xFB, 0x1E, 0x37, 0xE3, 0x00, 0xC7, 0x98, 0x61, 0x86, 0x78, 0xC0, 0x38,
0xD8, 0xE3, 0xBD, 0xD9, 0x9D, 0x80, 0x6F, 0x00, 0x36, 0xCC, 0xC6, 0x30,
0xC6, 0x33, 0x36, 0xC0, 0x66, 0x3C, 0xFF, 0x3C, 0x66, 0x30, 0xCF, 0xCC,
0x30, 0x6F, 0x00, 0xFC, 0xF0, 0x06, 0x18, 0x61, 0x86, 0x18, 0x20, 0x00,
0x7D, 0x8F, 0x3E, 0xBE, 0x78, 0xDF, 0x00, 0x31, 0xC3, 0x0C, 0x30, 0xCF,
0xC0, 0x7B, 0x30, 0xDE, 0xC3, 0x3F, 0xC0, 0x7B, 0x30, 0xCE, 0x0F, 0x37,
0x80, 0x1C, 0x79, 0xB6, 0x6F, 0xE1, 0x87, 0x80, 0xFF, 0x1C, 0x3E, 0x0F,
0x37, 0x80, 0x7B, 0x3C, 0x3E, 0xCF, 0x37, 0x80, 0xFF, 0x30, 0xC6, 0x30,
0xC3, 0x00, 0x7B, 0x3C, 0xDE, 0xCF, 0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0x60, 0xCF, 0x3C, 0xDF, 0x0F, 0xE0, 0xFE,
0x63, 0x19, 0xFC, 0x1C, 0xC3, 0x38, 0x30, 0xC1, 0xC0, 0xFF, 0xFC, 0xE0,
0xC3, 0x07, 0x30, 0xCE, 0x00, 0x77, 0xB8 };
const GFXglyph cpcGlyphs[] PROGMEM = {
{ 0, 0, 0, 8, 0, 1 }, // 0x20 ' '
{ 0, 2, 7, 8, 3, -7 }, // 0x21 '!'
{ 2, 5, 3, 8, 1, -7 }, // 0x22 '"'
{ 4, 7, 7, 8, 0, -7 }, // 0x23 '#'
{ 11, 6, 7, 8, 1, -7 }, // 0x24 '$'
{ 17, 7, 6, 8, 0, -6 }, // 0x25 '%'
{ 23, 7, 7, 8, 0, -7 }, // 0x26 '&'
{ 30, 3, 3, 8, 2, -7 }, // 0x27 '''
{ 32, 4, 7, 8, 2, -7 }, // 0x28 '('
{ 36, 4, 7, 8, 2, -7 }, // 0x29 ')'
{ 40, 8, 5, 8, 0, -6 }, // 0x2A '*'
{ 45, 6, 5, 8, 1, -6 }, // 0x2B '+'
{ 49, 3, 3, 8, 2, -2 }, // 0x2C ','
{ 51, 6, 1, 8, 1, -4 }, // 0x2D '-'
{ 52, 2, 2, 8, 3, -2 }, // 0x2E '.'
{ 53, 7, 7, 8, 0, -7 }, // 0x2F '/'
{ 60, 7, 7, 8, 0, -7 }, // 0x30 '0'
{ 67, 6, 7, 8, 1, -7 }, // 0x31 '1'
{ 73, 6, 7, 8, 1, -7 }, // 0x32 '2'
{ 79, 6, 7, 8, 1, -7 }, // 0x33 '3'
{ 85, 7, 7, 8, 0, -7 }, // 0x34 '4'
{ 92, 6, 7, 8, 1, -7 }, // 0x35 '5'
{ 98, 6, 7, 8, 1, -7 }, // 0x36 '6'
{ 104, 6, 7, 8, 1, -7 }, // 0x37 '7'
{ 110, 6, 7, 8, 1, -7 }, // 0x38 '8'
{ 116, 6, 7, 8, 1, -7 }, // 0x39 '9'
{ 122, 2, 5, 8, 3, -5 }, // 0x3A ':'
{ 124, 3, 6, 8, 2, -5 }, // 0x3B ';'
{ 127, 5, 7, 8, 1, -7 }, // 0x3C '<'
{ 132, 6, 4, 8, 1, -5 }, // 0x3D '='
{ 135, 5, 7, 8, 1, -7 }, // 0x3E '>'
{ 140, 6, 7, 8, 1, -7 }, // 0x3F '?'
{ 146, 7, 7, 8, 0, -7 }, // 0x40 '@'
{ 153, 6, 7, 8, 1, -7 }, // 0x41 'A'
{ 159, 7, 7, 8, 0, -7 }, // 0x42 'B'
{ 166, 7, 7, 8, 0, -7 }, // 0x43 'C'
{ 173, 7, 7, 8, 0, -7 }, // 0x44 'D'
{ 180, 7, 7, 8, 0, -7 }, // 0x45 'E'
{ 187, 7, 7, 8, 0, -7 }, // 0x46 'F'
{ 194, 7, 7, 8, 0, -7 }, // 0x47 'G'
{ 201, 6, 7, 8, 1, -7 }, // 0x48 'H'
{ 207, 6, 7, 8, 1, -7 }, // 0x49 'I'
{ 213, 7, 7, 8, 0, -7 }, // 0x4A 'J'
{ 220, 7, 7, 8, 0, -7 }, // 0x4B 'K'
{ 227, 7, 7, 8, 0, -7 }, // 0x4C 'L'
{ 234, 7, 7, 8, 0, -7 }, // 0x4D 'M'
{ 241, 7, 7, 8, 0, -7 }, // 0x4E 'N'
{ 248, 7, 7, 8, 0, -7 }, // 0x4F 'O'
{ 255, 7, 7, 8, 0, -7 }, // 0x50 'P'
{ 262, 7, 7, 8, 0, -7 }, // 0x51 'Q'
{ 269, 7, 7, 8, 0, -7 }, // 0x52 'R'
{ 276, 6, 7, 8, 1, -7 }, // 0x53 'S'
{ 282, 6, 7, 8, 1, -7 }, // 0x54 'T'
{ 288, 6, 7, 8, 1, -7 }, // 0x55 'U'
{ 294, 6, 7, 8, 1, -7 }, // 0x56 'V'
{ 300, 7, 7, 8, 0, -7 }, // 0x57 'W'
{ 307, 7, 7, 8, 0, -7 }, // 0x58 'X'
{ 314, 6, 7, 8, 1, -7 }, // 0x59 'Y'
{ 320, 7, 7, 8, 0, -7 }, // 0x5A 'Z'
{ 327, 4, 7, 8, 2, -7 }, // 0x5B '['
{ 331, 7, 7, 8, 0, -7 }, // 0x5C '\'
{ 338, 4, 7, 8, 2, -7 }, // 0x5D ']'
{ 342, 7, 4, 8, 0, -7 }, // 0x5E '^'
{ 346, 8, 1, 8, 0, 0 }, // 0x5F '_'
{ 347, 4, 3, 8, 2, -7 }, // 0x60 '`'
{ 349, 7, 5, 8, 0, -5 }, // 0x61 'a'
{ 354, 7, 7, 8, 0, -7 }, // 0x62 'b'
{ 361, 6, 5, 8, 1, -5 }, // 0x63 'c'
{ 365, 7, 7, 8, 0, -7 }, // 0x64 'd'
{ 372, 6, 5, 8, 1, -5 }, // 0x65 'e'
{ 376, 6, 7, 8, 1, -7 }, // 0x66 'f'
{ 382, 6, 6, 8, 1, -5 }, // 0x67 'g'
{ 387, 7, 7, 8, 0, -7 }, // 0x68 'h'
{ 394, 4, 7, 8, 2, -7 }, // 0x69 'i'
{ 398, 6, 8, 8, 1, -7 }, // 0x6A 'j'
{ 404, 7, 7, 8, 0, -7 }, // 0x6B 'k'
{ 411, 4, 7, 8, 2, -7 }, // 0x6C 'l'
{ 415, 7, 5, 8, 0, -5 }, // 0x6D 'm'
{ 420, 7, 5, 8, 0, -5 }, // 0x6E 'n'
{ 425, 6, 5, 8, 1, -5 }, // 0x6F 'o'
{ 429, 7, 6, 8, 0, -5 }, // 0x70 'p'
{ 435, 7, 6, 8, 0, -5 }, // 0x71 'q'
{ 441, 7, 5, 8, 0, -5 }, // 0x72 'r'
{ 446, 6, 5, 8, 1, -5 }, // 0x73 's'
{ 450, 6, 7, 8, 1, -7 }, // 0x74 't'
{ 456, 6, 5, 8, 1, -5 }, // 0x75 'u'
{ 460, 6, 5, 8, 1, -5 }, // 0x76 'v'
{ 464, 7, 5, 8, 0, -5 }, // 0x77 'w'
{ 469, 7, 5, 8, 0, -5 }, // 0x78 'x'
{ 474, 6, 6, 8, 1, -5 }, // 0x79 'y'
{ 479, 6, 5, 8, 1, -5 }, // 0x7A 'z'
{ 483, 6, 7, 8, 1, -7 }, // 0x7B '{'
{ 489, 2, 7, 8, 3, -7 }, // 0x7C '|'
{ 491, 6, 7, 8, 1, -7 }, // 0x7D '}'
{ 497, 7, 2, 8, 0, -7 } }; // 0x7E '~'
const GFXfont cpc PROGMEM = {
(uint8_t *)cpcBitmaps,
(GFXglyph *)cpcGlyphs,
0x20, 0x7E, 8 };
// Approx. 1171 bytes