-
Notifications
You must be signed in to change notification settings - Fork 1
/
zx_couples.c
133 lines (133 loc) · 9.55 KB
/
zx_couples.c
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
// 128 * 4 couples for 2 pixels couples for each 128 attributes
// placed in data segment, initialized from RAM ar startup
#include <stdint.h>
uint32_t zx_couples[128*4] = {
0x00000000,0x00000000,0x00000000,0x00000000, // Bri:0 bg:000, fg:000,
0x00000000,0x001f0000,0x0000001f,0x001f001f, // Bri:0 bg:000, fg:010,
0x00000000,0x7c000000,0x00007c00,0x7c007c00, // Bri:0 bg:000, fg:100,
0x00000000,0x7c1f0000,0x00007c1f,0x7c1f7c1f, // Bri:0 bg:000, fg:110,
0x00000000,0x03e00000,0x000003e0,0x03e003e0, // Bri:0 bg:000, fg:001,
0x00000000,0x03ff0000,0x000003ff,0x03ff03ff, // Bri:0 bg:000, fg:011,
0x00000000,0x7fe00000,0x00007fe0,0x7fe07fe0, // Bri:0 bg:000, fg:101,
0x00000000,0x7fff0000,0x00007fff,0x7fff7fff, // Bri:0 bg:000, fg:111,
0x001f001f,0x0000001f,0x001f0000,0x00000000, // Bri:0 bg:100, fg:000,
0x001f001f,0x001f001f,0x001f001f,0x001f001f, // Bri:0 bg:100, fg:010,
0x001f001f,0x7c00001f,0x001f7c00,0x7c007c00, // Bri:0 bg:100, fg:100,
0x001f001f,0x7c1f001f,0x001f7c1f,0x7c1f7c1f, // Bri:0 bg:100, fg:110,
0x001f001f,0x03e0001f,0x001f03e0,0x03e003e0, // Bri:0 bg:100, fg:001,
0x001f001f,0x03ff001f,0x001f03ff,0x03ff03ff, // Bri:0 bg:100, fg:011,
0x001f001f,0x7fe0001f,0x001f7fe0,0x7fe07fe0, // Bri:0 bg:100, fg:101,
0x001f001f,0x7fff001f,0x001f7fff,0x7fff7fff, // Bri:0 bg:100, fg:111,
0x7c007c00,0x00007c00,0x7c000000,0x00000000, // Bri:0 bg:010, fg:000,
0x7c007c00,0x001f7c00,0x7c00001f,0x001f001f, // Bri:0 bg:010, fg:010,
0x7c007c00,0x7c007c00,0x7c007c00,0x7c007c00, // Bri:0 bg:010, fg:100,
0x7c007c00,0x7c1f7c00,0x7c007c1f,0x7c1f7c1f, // Bri:0 bg:010, fg:110,
0x7c007c00,0x03e07c00,0x7c0003e0,0x03e003e0, // Bri:0 bg:010, fg:001,
0x7c007c00,0x03ff7c00,0x7c0003ff,0x03ff03ff, // Bri:0 bg:010, fg:011,
0x7c007c00,0x7fe07c00,0x7c007fe0,0x7fe07fe0, // Bri:0 bg:010, fg:101,
0x7c007c00,0x7fff7c00,0x7c007fff,0x7fff7fff, // Bri:0 bg:010, fg:111,
0x7c1f7c1f,0x00007c1f,0x7c1f0000,0x00000000, // Bri:0 bg:110, fg:000,
0x7c1f7c1f,0x001f7c1f,0x7c1f001f,0x001f001f, // Bri:0 bg:110, fg:010,
0x7c1f7c1f,0x7c007c1f,0x7c1f7c00,0x7c007c00, // Bri:0 bg:110, fg:100,
0x7c1f7c1f,0x7c1f7c1f,0x7c1f7c1f,0x7c1f7c1f, // Bri:0 bg:110, fg:110,
0x7c1f7c1f,0x03e07c1f,0x7c1f03e0,0x03e003e0, // Bri:0 bg:110, fg:001,
0x7c1f7c1f,0x03ff7c1f,0x7c1f03ff,0x03ff03ff, // Bri:0 bg:110, fg:011,
0x7c1f7c1f,0x7fe07c1f,0x7c1f7fe0,0x7fe07fe0, // Bri:0 bg:110, fg:101,
0x7c1f7c1f,0x7fff7c1f,0x7c1f7fff,0x7fff7fff, // Bri:0 bg:110, fg:111,
0x03e003e0,0x000003e0,0x03e00000,0x00000000, // Bri:0 bg:001, fg:000,
0x03e003e0,0x001f03e0,0x03e0001f,0x001f001f, // Bri:0 bg:001, fg:010,
0x03e003e0,0x7c0003e0,0x03e07c00,0x7c007c00, // Bri:0 bg:001, fg:100,
0x03e003e0,0x7c1f03e0,0x03e07c1f,0x7c1f7c1f, // Bri:0 bg:001, fg:110,
0x03e003e0,0x03e003e0,0x03e003e0,0x03e003e0, // Bri:0 bg:001, fg:001,
0x03e003e0,0x03ff03e0,0x03e003ff,0x03ff03ff, // Bri:0 bg:001, fg:011,
0x03e003e0,0x7fe003e0,0x03e07fe0,0x7fe07fe0, // Bri:0 bg:001, fg:101,
0x03e003e0,0x7fff03e0,0x03e07fff,0x7fff7fff, // Bri:0 bg:001, fg:111,
0x03ff03ff,0x000003ff,0x03ff0000,0x00000000, // Bri:0 bg:101, fg:000,
0x03ff03ff,0x001f03ff,0x03ff001f,0x001f001f, // Bri:0 bg:101, fg:010,
0x03ff03ff,0x7c0003ff,0x03ff7c00,0x7c007c00, // Bri:0 bg:101, fg:100,
0x03ff03ff,0x7c1f03ff,0x03ff7c1f,0x7c1f7c1f, // Bri:0 bg:101, fg:110,
0x03ff03ff,0x03e003ff,0x03ff03e0,0x03e003e0, // Bri:0 bg:101, fg:001,
0x03ff03ff,0x03ff03ff,0x03ff03ff,0x03ff03ff, // Bri:0 bg:101, fg:011,
0x03ff03ff,0x7fe003ff,0x03ff7fe0,0x7fe07fe0, // Bri:0 bg:101, fg:101,
0x03ff03ff,0x7fff03ff,0x03ff7fff,0x7fff7fff, // Bri:0 bg:101, fg:111,
0x7fe07fe0,0x00007fe0,0x7fe00000,0x00000000, // Bri:0 bg:011, fg:000,
0x7fe07fe0,0x001f7fe0,0x7fe0001f,0x001f001f, // Bri:0 bg:011, fg:010,
0x7fe07fe0,0x7c007fe0,0x7fe07c00,0x7c007c00, // Bri:0 bg:011, fg:100,
0x7fe07fe0,0x7c1f7fe0,0x7fe07c1f,0x7c1f7c1f, // Bri:0 bg:011, fg:110,
0x7fe07fe0,0x03e07fe0,0x7fe003e0,0x03e003e0, // Bri:0 bg:011, fg:001,
0x7fe07fe0,0x03ff7fe0,0x7fe003ff,0x03ff03ff, // Bri:0 bg:011, fg:011,
0x7fe07fe0,0x7fe07fe0,0x7fe07fe0,0x7fe07fe0, // Bri:0 bg:011, fg:101,
0x7fe07fe0,0x7fff7fe0,0x7fe07fff,0x7fff7fff, // Bri:0 bg:011, fg:111,
0x7fff7fff,0x00007fff,0x7fff0000,0x00000000, // Bri:0 bg:111, fg:000,
0x7fff7fff,0x001f7fff,0x7fff001f,0x001f001f, // Bri:0 bg:111, fg:010,
0x7fff7fff,0x7c007fff,0x7fff7c00,0x7c007c00, // Bri:0 bg:111, fg:100,
0x7fff7fff,0x7c1f7fff,0x7fff7c1f,0x7c1f7c1f, // Bri:0 bg:111, fg:110,
0x7fff7fff,0x03e07fff,0x7fff03e0,0x03e003e0, // Bri:0 bg:111, fg:001,
0x7fff7fff,0x03ff7fff,0x7fff03ff,0x03ff03ff, // Bri:0 bg:111, fg:011,
0x7fff7fff,0x7fe07fff,0x7fff7fe0,0x7fe07fe0, // Bri:0 bg:111, fg:101,
0x7fff7fff,0x7fff7fff,0x7fff7fff,0x7fff7fff, // Bri:0 bg:111, fg:111,
0x00000000,0x00000000,0x00000000,0x00000000, // Bri:1 bg:000, fg:000,
0x00000000,0x00190000,0x00000019,0x00190019, // Bri:1 bg:000, fg:010,
0x00000000,0x64000000,0x00006400,0x64006400, // Bri:1 bg:000, fg:100,
0x00000000,0x64190000,0x00006419,0x64196419, // Bri:1 bg:000, fg:110,
0x00000000,0x03200000,0x00000320,0x03200320, // Bri:1 bg:000, fg:001,
0x00000000,0x03390000,0x00000339,0x03390339, // Bri:1 bg:000, fg:011,
0x00000000,0x67200000,0x00006720,0x67206720, // Bri:1 bg:000, fg:101,
0x00000000,0x67390000,0x00006739,0x67396739, // Bri:1 bg:000, fg:111,
0x00190019,0x00000019,0x00190000,0x00000000, // Bri:1 bg:100, fg:000,
0x00190019,0x00190019,0x00190019,0x00190019, // Bri:1 bg:100, fg:010,
0x00190019,0x64000019,0x00196400,0x64006400, // Bri:1 bg:100, fg:100,
0x00190019,0x64190019,0x00196419,0x64196419, // Bri:1 bg:100, fg:110,
0x00190019,0x03200019,0x00190320,0x03200320, // Bri:1 bg:100, fg:001,
0x00190019,0x03390019,0x00190339,0x03390339, // Bri:1 bg:100, fg:011,
0x00190019,0x67200019,0x00196720,0x67206720, // Bri:1 bg:100, fg:101,
0x00190019,0x67390019,0x00196739,0x67396739, // Bri:1 bg:100, fg:111,
0x64006400,0x00006400,0x64000000,0x00000000, // Bri:1 bg:010, fg:000,
0x64006400,0x00196400,0x64000019,0x00190019, // Bri:1 bg:010, fg:010,
0x64006400,0x64006400,0x64006400,0x64006400, // Bri:1 bg:010, fg:100,
0x64006400,0x64196400,0x64006419,0x64196419, // Bri:1 bg:010, fg:110,
0x64006400,0x03206400,0x64000320,0x03200320, // Bri:1 bg:010, fg:001,
0x64006400,0x03396400,0x64000339,0x03390339, // Bri:1 bg:010, fg:011,
0x64006400,0x67206400,0x64006720,0x67206720, // Bri:1 bg:010, fg:101,
0x64006400,0x67396400,0x64006739,0x67396739, // Bri:1 bg:010, fg:111,
0x64196419,0x00006419,0x64190000,0x00000000, // Bri:1 bg:110, fg:000,
0x64196419,0x00196419,0x64190019,0x00190019, // Bri:1 bg:110, fg:010,
0x64196419,0x64006419,0x64196400,0x64006400, // Bri:1 bg:110, fg:100,
0x64196419,0x64196419,0x64196419,0x64196419, // Bri:1 bg:110, fg:110,
0x64196419,0x03206419,0x64190320,0x03200320, // Bri:1 bg:110, fg:001,
0x64196419,0x03396419,0x64190339,0x03390339, // Bri:1 bg:110, fg:011,
0x64196419,0x67206419,0x64196720,0x67206720, // Bri:1 bg:110, fg:101,
0x64196419,0x67396419,0x64196739,0x67396739, // Bri:1 bg:110, fg:111,
0x03200320,0x00000320,0x03200000,0x00000000, // Bri:1 bg:001, fg:000,
0x03200320,0x00190320,0x03200019,0x00190019, // Bri:1 bg:001, fg:010,
0x03200320,0x64000320,0x03206400,0x64006400, // Bri:1 bg:001, fg:100,
0x03200320,0x64190320,0x03206419,0x64196419, // Bri:1 bg:001, fg:110,
0x03200320,0x03200320,0x03200320,0x03200320, // Bri:1 bg:001, fg:001,
0x03200320,0x03390320,0x03200339,0x03390339, // Bri:1 bg:001, fg:011,
0x03200320,0x67200320,0x03206720,0x67206720, // Bri:1 bg:001, fg:101,
0x03200320,0x67390320,0x03206739,0x67396739, // Bri:1 bg:001, fg:111,
0x03390339,0x00000339,0x03390000,0x00000000, // Bri:1 bg:101, fg:000,
0x03390339,0x00190339,0x03390019,0x00190019, // Bri:1 bg:101, fg:010,
0x03390339,0x64000339,0x03396400,0x64006400, // Bri:1 bg:101, fg:100,
0x03390339,0x64190339,0x03396419,0x64196419, // Bri:1 bg:101, fg:110,
0x03390339,0x03200339,0x03390320,0x03200320, // Bri:1 bg:101, fg:001,
0x03390339,0x03390339,0x03390339,0x03390339, // Bri:1 bg:101, fg:011,
0x03390339,0x67200339,0x03396720,0x67206720, // Bri:1 bg:101, fg:101,
0x03390339,0x67390339,0x03396739,0x67396739, // Bri:1 bg:101, fg:111,
0x67206720,0x00006720,0x67200000,0x00000000, // Bri:1 bg:011, fg:000,
0x67206720,0x00196720,0x67200019,0x00190019, // Bri:1 bg:011, fg:010,
0x67206720,0x64006720,0x67206400,0x64006400, // Bri:1 bg:011, fg:100,
0x67206720,0x64196720,0x67206419,0x64196419, // Bri:1 bg:011, fg:110,
0x67206720,0x03206720,0x67200320,0x03200320, // Bri:1 bg:011, fg:001,
0x67206720,0x03396720,0x67200339,0x03390339, // Bri:1 bg:011, fg:011,
0x67206720,0x67206720,0x67206720,0x67206720, // Bri:1 bg:011, fg:101,
0x67206720,0x67396720,0x67206739,0x67396739, // Bri:1 bg:011, fg:111,
0x67396739,0x00006739,0x67390000,0x00000000, // Bri:1 bg:111, fg:000,
0x67396739,0x00196739,0x67390019,0x00190019, // Bri:1 bg:111, fg:010,
0x67396739,0x64006739,0x67396400,0x64006400, // Bri:1 bg:111, fg:100,
0x67396739,0x64196739,0x67396419,0x64196419, // Bri:1 bg:111, fg:110,
0x67396739,0x03206739,0x67390320,0x03200320, // Bri:1 bg:111, fg:001,
0x67396739,0x03396739,0x67390339,0x03390339, // Bri:1 bg:111, fg:011,
0x67396739,0x67206739,0x67396720,0x67206720, // Bri:1 bg:111, fg:101,
0x67396739,0x67396739,0x67396739,0x67396739, // Bri:1 bg:111, fg:111,
};