src/bootroms.h

filter: Statementstmt 55.5% 5 / 9 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 54.5% 6 / 11 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« src/Core/sm83_cpu.c ↑ Summary src/Core/random.c »
1 /* Generated from SameBoy MIT open-source boot ROMs (BootROMs/*.asm).
2 Do not edit by hand; see tools/gen_bootroms.
3 Emulation boot ROMs (c) Lior Halphon, Expat/MIT license. */
4 #ifndef SB_BOOTROMS_H
5 #define SB_BOOTROMS_H
6 #include <stddef.h>
7  
8 static const unsigned char sb_bootrom_dmg[256] = {
9 0x31,0xfe,0xff,0x21,0x00,0x80,0xaf,0x22,0xcb,0x6c,0x28,0xfb,
10 0x3e,0x80,0xe0,0x26,0xe0,0x11,0x3e,0xf3,0xe0,0x12,0xe0,0x25,
11 0x3e,0x77,0xe0,0x24,0x3e,0x54,0xe0,0x47,0x11,0x04,0x01,0x21,
12 0x10,0x80,0x1a,0x47,0xcd,0xa3,0x00,0xcd,0xa3,0x00,0x13,0x7b,
13 0xee,0x34,0x20,0xf2,0x11,0xd2,0x00,0x0e,0x08,0x1a,0x13,0x22,
14 0x23,0x0d,0x20,0xf9,0x3e,0x19,0xea,0x10,0x99,0x21,0x2f,0x99,
15 0x0e,0x0c,0x3d,0x28,0x08,0x32,0x0d,0x20,0xf9,0x2e,0x0f,0x18,
16 0xf5,0x3e,0x1e,0xe0,0x42,0x3e,0x91,0xe0,0x40,0x16,0x89,0x0e,
17 0x0f,0xcd,0xb8,0x00,0x7a,0xcb,0x2f,0xcb,0x2f,0xe0,0x42,0x7a,
18 0x81,0x57,0x79,0xfe,0x08,0x20,0x04,0x3e,0xa8,0xe0,0x47,0x0d,
19 0x20,0xe7,0x3e,0xfc,0xe0,0x47,0x3e,0x83,0xcd,0xcb,0x00,0x06,
20 0x05,0xcd,0xc4,0x00,0x3e,0xc1,0xcd,0xcb,0x00,0x06,0x3c,0xcd,
21 0xc4,0x00,0x21,0xb0,0x01,0xe5,0xf1,0x21,0x4d,0x01,0x01,0x13,
22 0x00,0x11,0xd8,0x00,0xc3,0xfe,0x00,0x3e,0x04,0x0e,0x00,0xcb,
23 0x20,0xf5,0xcb,0x11,0xf1,0xcb,0x11,0x3d,0x20,0xf5,0x79,0x22,
24 0x23,0x22,0x23,0xc9,0xe5,0x21,0x0f,0xff,0xcb,0x86,0xcb,0x46,
25 0x28,0xfc,0xe1,0xc9,0xcd,0xb8,0x00,0x05,0x20,0xfa,0xc9,0xe0,
26 0x13,0x3e,0x87,0xe0,0x14,0xc9,0x3c,0x42,0xb9,0xa5,0xb9,0xa5,
27 0x42,0x3c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
28 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
29 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
30 0x00,0x00,0xe0,0x50,
31 };
32  
33 static const unsigned char sb_bootrom_mgb[256] = {
34 0x31,0xfe,0xff,0x21,0x00,0x80,0xaf,0x22,0xcb,0x6c,0x28,0xfb,
35 0x3e,0x80,0xe0,0x26,0xe0,0x11,0x3e,0xf3,0xe0,0x12,0xe0,0x25,
36 0x3e,0x77,0xe0,0x24,0x3e,0x54,0xe0,0x47,0x11,0x04,0x01,0x21,
37 0x10,0x80,0x1a,0x47,0xcd,0xa3,0x00,0xcd,0xa3,0x00,0x13,0x7b,
38 0xee,0x34,0x20,0xf2,0x11,0xd2,0x00,0x0e,0x08,0x1a,0x13,0x22,
39 0x23,0x0d,0x20,0xf9,0x3e,0x19,0xea,0x10,0x99,0x21,0x2f,0x99,
40 0x0e,0x0c,0x3d,0x28,0x08,0x32,0x0d,0x20,0xf9,0x2e,0x0f,0x18,
41 0xf5,0x3e,0x1e,0xe0,0x42,0x3e,0x91,0xe0,0x40,0x16,0x89,0x0e,
42 0x0f,0xcd,0xb8,0x00,0x7a,0xcb,0x2f,0xcb,0x2f,0xe0,0x42,0x7a,
43 0x81,0x57,0x79,0xfe,0x08,0x20,0x04,0x3e,0xa8,0xe0,0x47,0x0d,
44 0x20,0xe7,0x3e,0xfc,0xe0,0x47,0x3e,0x83,0xcd,0xcb,0x00,0x06,
45 0x05,0xcd,0xc4,0x00,0x3e,0xc1,0xcd,0xcb,0x00,0x06,0x3c,0xcd,
46 0xc4,0x00,0x21,0xb0,0xff,0xe5,0xf1,0x21,0x4d,0x01,0x01,0x13,
47 0x00,0x11,0xd8,0x00,0xc3,0xfe,0x00,0x3e,0x04,0x0e,0x00,0xcb,
48 0x20,0xf5,0xcb,0x11,0xf1,0xcb,0x11,0x3d,0x20,0xf5,0x79,0x22,
49 0x23,0x22,0x23,0xc9,0xe5,0x21,0x0f,0xff,0xcb,0x86,0xcb,0x46,
50 0x28,0xfc,0xe1,0xc9,0xcd,0xb8,0x00,0x05,0x20,0xfa,0xc9,0xe0,
51 0x13,0x3e,0x87,0xe0,0x14,0xc9,0x3c,0x42,0xb9,0xa5,0xb9,0xa5,
52 0x42,0x3c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
53 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
54 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
55 0x00,0x00,0xe0,0x50,
56 };
57  
58 static const unsigned char sb_bootrom_sgb[256] = {
59 0x31,0xfe,0xff,0x21,0x00,0x80,0xaf,0x22,0xcb,0x6c,0x28,0xfb,
60 0x3e,0x80,0xe0,0x26,0xe0,0x11,0x3e,0xf3,0xe0,0x12,0xe0,0x25,
61 0x3e,0x77,0xe0,0x24,0x3e,0x00,0xe0,0x47,0x11,0x04,0x01,0x21,
62 0x10,0x80,0x1a,0x47,0xcd,0xda,0x00,0xcd,0xda,0x00,0x13,0x7b,
63 0xee,0x34,0x20,0xf2,0x11,0xef,0x00,0x0e,0x08,0x1a,0x13,0x22,
64 0x23,0x0d,0x20,0xf9,0x3e,0x19,0xea,0x10,0x99,0x21,0x2f,0x99,
65 0x0e,0x0c,0x3d,0x28,0x08,0x32,0x0d,0x20,0xf9,0x2e,0x0f,0x18,
66 0xf5,0x3e,0x91,0xe0,0x40,0x3e,0xf1,0xe0,0x80,0x21,0x04,0x01,
67 0xaf,0x4f,0xaf,0xe2,0x3e,0x30,0xe2,0xf0,0x80,0xcd,0xc8,0x00,
68 0xe5,0x06,0x0e,0x16,0x00,0xcd,0xbe,0x00,0x82,0x57,0x05,0x20,
69 0xf8,0xcd,0xc8,0x00,0xe1,0x06,0x0e,0xcd,0xbe,0x00,0xcd,0xc8,
70 0x00,0x05,0x20,0xf7,0x3e,0x20,0xe2,0x3e,0x30,0xe2,0x1e,0x04,
71 0x3e,0x01,0xe0,0xff,0xaf,0xe0,0x0f,0x76,0x00,0x1d,0x20,0xf9,
72 0xe0,0xff,0xf0,0x80,0xc6,0x02,0xe0,0x80,0x3e,0x58,0xbd,0x20,
73 0xb9,0x0e,0x13,0x3e,0xc1,0xe2,0x0c,0x3e,0x07,0xe2,0x3e,0xfc,
74 0xe0,0x47,0x3e,0x01,0x21,0x60,0xc0,0xc3,0xfe,0x00,0x3e,0x4f,
75 0xbd,0x38,0x02,0x2a,0xc9,0x23,0xaf,0xc9,0x5f,0x16,0x08,0x3e,
76 0x10,0xcb,0x1b,0x38,0x01,0x87,0xe2,0x3e,0x30,0xe2,0x15,0xc8,
77 0x18,0xf1,0x3e,0x04,0x0e,0x00,0xcb,0x20,0xf5,0xcb,0x11,0xf1,
78 0xcb,0x11,0x3d,0x20,0xf5,0x79,0x22,0x23,0x22,0x23,0xc9,0x3c,
79 0x42,0xb9,0xa5,0xb9,0xa5,0x42,0x3c,0x00,0x00,0x00,0x00,0x00,
80 0x00,0x00,0xe0,0x50,
81 };
82  
83 static const unsigned char sb_bootrom_sgb2[256] = {
84 0x31,0xfe,0xff,0x21,0x00,0x80,0xaf,0x22,0xcb,0x6c,0x28,0xfb,
85 0x3e,0x80,0xe0,0x26,0xe0,0x11,0x3e,0xf3,0xe0,0x12,0xe0,0x25,
86 0x3e,0x77,0xe0,0x24,0x3e,0x00,0xe0,0x47,0x11,0x04,0x01,0x21,
87 0x10,0x80,0x1a,0x47,0xcd,0xda,0x00,0xcd,0xda,0x00,0x13,0x7b,
88 0xee,0x34,0x20,0xf2,0x11,0xef,0x00,0x0e,0x08,0x1a,0x13,0x22,
89 0x23,0x0d,0x20,0xf9,0x3e,0x19,0xea,0x10,0x99,0x21,0x2f,0x99,
90 0x0e,0x0c,0x3d,0x28,0x08,0x32,0x0d,0x20,0xf9,0x2e,0x0f,0x18,
91 0xf5,0x3e,0x91,0xe0,0x40,0x3e,0xf1,0xe0,0x80,0x21,0x04,0x01,
92 0xaf,0x4f,0xaf,0xe2,0x3e,0x30,0xe2,0xf0,0x80,0xcd,0xc8,0x00,
93 0xe5,0x06,0x0e,0x16,0x00,0xcd,0xbe,0x00,0x82,0x57,0x05,0x20,
94 0xf8,0xcd,0xc8,0x00,0xe1,0x06,0x0e,0xcd,0xbe,0x00,0xcd,0xc8,
95 0x00,0x05,0x20,0xf7,0x3e,0x20,0xe2,0x3e,0x30,0xe2,0x1e,0x04,
96 0x3e,0x01,0xe0,0xff,0xaf,0xe0,0x0f,0x76,0x00,0x1d,0x20,0xf9,
97 0xe0,0xff,0xf0,0x80,0xc6,0x02,0xe0,0x80,0x3e,0x58,0xbd,0x20,
98 0xb9,0x0e,0x13,0x3e,0xc1,0xe2,0x0c,0x3e,0x07,0xe2,0x3e,0xfc,
99 0xe0,0x47,0x3e,0xff,0x21,0x60,0xc0,0xc3,0xfe,0x00,0x3e,0x4f,
100 0xbd,0x38,0x02,0x2a,0xc9,0x23,0xaf,0xc9,0x5f,0x16,0x08,0x3e,
101 0x10,0xcb,0x1b,0x38,0x01,0x87,0xe2,0x3e,0x30,0xe2,0x15,0xc8,
102 0x18,0xf1,0x3e,0x04,0x0e,0x00,0xcb,0x20,0xf5,0xcb,0x11,0xf1,
103 0xcb,0x11,0x3d,0x20,0xf5,0x79,0x22,0x23,0x22,0x23,0xc9,0x3c,
104 0x42,0xb9,0xa5,0xb9,0xa5,0x42,0x3c,0x00,0x00,0x00,0x00,0x00,
105 0x00,0x00,0xe0,0x50,
106 };
107  
108 static const unsigned char sb_bootrom_cgb[2304] = {
109 0x31,0xfe,0xff,0xcd,0x26,0x06,0x26,0xfe,0x0e,0xa0,0x22,0x0d,
110 0x20,0xfc,0x0e,0x10,0x21,0x30,0xff,0x22,0x2f,0x0d,0x20,0xfb,
111 0xe0,0xc1,0xe0,0x80,0x3e,0x80,0xe0,0x26,0xe0,0x11,0x3e,0xf3,
112 0xe0,0x12,0xe0,0x25,0x3e,0x77,0xe0,0x24,0x3e,0xfc,0xe0,0x47,
113 0x11,0x04,0x01,0x21,0x10,0x80,0x1a,0x47,0xcd,0xf1,0x05,0x13,
114 0x7b,0xfe,0x34,0x20,0xf5,0xcd,0xae,0x06,0x3e,0x01,0xe0,0x4f,
115 0xcd,0x26,0x06,0xcd,0x53,0x06,0x06,0x03,0x21,0xc2,0x98,0x16,
116 0x03,0x3e,0x08,0x0e,0x10,0xcd,0x86,0x00,0xf5,0xd6,0x20,0xd6,
117 0x03,0x30,0x06,0xc6,0x20,0xcd,0x86,0x00,0x0d,0xf1,0x82,0x0d,
118 0x20,0xeb,0xd6,0x2c,0xd5,0x11,0x10,0x00,0x19,0xd1,0x05,0x20,
119 0xde,0x15,0x28,0x17,0x15,0x3e,0x38,0x2e,0xa7,0x01,0x07,0x01,
120 0x18,0xd3,0xf5,0x3e,0x01,0xe0,0x4f,0x36,0x08,0xaf,0xe0,0x4f,
121 0xf1,0x22,0xc9,0x11,0xe1,0x05,0x0e,0x08,0x21,0x81,0xff,0xaf,
122 0x2f,0x22,0x22,0x1a,0x1c,0xf6,0x20,0x47,0x1a,0x1d,0xf6,0x84,
123 0x1f,0xcb,0x18,0x70,0x2c,0x22,0xaf,0x22,0x22,0x1a,0x1c,0x22,
124 0x1a,0x1c,0x22,0xaf,0x0d,0x20,0xe1,0xcd,0x1a,0x08,0x3e,0x91,
125 0xe0,0x40,0xcd,0xbb,0x06,0x3e,0x30,0xe0,0xc2,0x06,0x04,0xcd,
126 0x15,0x06,0x3e,0x83,0xcd,0x1f,0x06,0x06,0x05,0xcd,0x15,0x06,
127 0x3e,0xc1,0xcd,0x1f,0x06,0xcd,0x41,0x08,0xcd,0x09,0x06,0x21,
128 0xc2,0xff,0x35,0x20,0xf4,0xcd,0xe4,0x06,0x18,0x10,0xd0,0x00,
129 0x98,0xa0,0x12,0xd0,0x00,0x80,0x00,0x40,0x00,0x00,0x00,0x00,
130 0x00,0x00,0xe0,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
131 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
132 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
133 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
134 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
135 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
136 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
137 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
138 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
139 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
140 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
141 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
142 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
143 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
144 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
145 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
146 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
147 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
148 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
149 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
150 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
151 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x88,0x16,0x36,
152 0xd1,0xdb,0xf2,0x3c,0x8c,0x92,0x3d,0x5c,0x58,0xc9,0x3e,0x70,
153 0x1d,0x59,0x69,0x19,0x35,0xa8,0x14,0xaa,0x75,0x95,0x99,0x34,
154 0x6f,0x15,0xff,0x97,0x4b,0x90,0x17,0x10,0x39,0xf7,0xf6,0xa2,
155 0x49,0x4e,0x43,0x68,0xe0,0x8b,0xf0,0xce,0x0c,0x29,0xe8,0xb7,
156 0x86,0x9a,0x52,0x01,0x9d,0x71,0x9c,0xbd,0x5d,0x6d,0x67,0x3f,
157 0x6b,0xb3,0x46,0x28,0xa5,0xc6,0xd3,0x27,0x61,0x18,0x66,0x6a,
158 0xbf,0x0d,0xf4,0xb3,0x46,0x28,0xa5,0xc6,0xd3,0x27,0x61,0x18,
159 0x66,0x6a,0xbf,0x0d,0xf4,0xb3,0x00,0x04,0x05,0x23,0x22,0x03,
160 0x1f,0x0f,0x0a,0x05,0x13,0x24,0x87,0x25,0x1e,0x2c,0x15,0x20,
161 0x1f,0x14,0x05,0x21,0x0d,0x0e,0x05,0x1d,0x05,0x12,0x09,0x03,
162 0x02,0x1a,0x19,0x19,0x29,0x2a,0x1a,0x2d,0x2a,0x2d,0x24,0x26,
163 0x9a,0x2a,0x1e,0x29,0x22,0x22,0x05,0x2a,0x06,0x05,0x21,0x19,
164 0x2a,0x2a,0x28,0x02,0x10,0x19,0x2a,0x2a,0x05,0x00,0x27,0x24,
165 0x16,0x19,0x06,0x20,0x0c,0x24,0x0b,0x27,0x12,0x27,0x18,0x1f,
166 0x32,0x11,0x2e,0x06,0x1b,0x00,0x2f,0x29,0x29,0x00,0x00,0x13,
167 0x22,0x17,0x12,0x1d,0x42,0x45,0x46,0x41,0x41,0x52,0x42,0x45,
168 0x4b,0x45,0x4b,0x20,0x52,0x2d,0x55,0x52,0x41,0x52,0x20,0x49,
169 0x4e,0x41,0x49,0x4c,0x49,0x43,0x45,0x20,0x52,0x20,0x20,0xe8,
170 0x90,0x90,0x90,0xa0,0xa0,0xa0,0xc0,0xc0,0xc0,0x48,0x48,0x48,
171 0x00,0x00,0x00,0xd8,0xd8,0xd8,0x28,0x28,0x28,0x60,0x60,0x60,
172 0xd0,0xd0,0xd0,0x80,0x40,0x40,0x20,0xe0,0xe0,0x20,0x10,0x10,
173 0x18,0x20,0x20,0x20,0xe8,0xe8,0xe0,0x20,0xe0,0x10,0x88,0x10,
174 0x80,0x80,0x40,0x20,0x20,0x38,0x20,0x20,0x90,0x20,0x20,0xa0,
175 0x98,0x98,0x48,0x1e,0x1e,0x58,0x88,0x88,0x10,0x20,0x20,0x10,
176 0x20,0x20,0x18,0xe0,0xe0,0x00,0x18,0x18,0x00,0x00,0x00,0x08,
177 0x90,0xb0,0x90,0xa0,0xb0,0xa0,0xc0,0xb0,0xc0,0x80,0xb0,0x40,
178 0x88,0x20,0x68,0xde,0x00,0x70,0xde,0x20,0x78,0x98,0xb6,0x48,
179 0x80,0xe0,0x50,0x20,0xb8,0xe0,0x88,0xb0,0x10,0x20,0x00,0x10,
180 0x20,0xe0,0x18,0xe0,0x18,0x00,0x18,0xe0,0x20,0xa8,0xe0,0x20,
181 0x18,0xe0,0x00,0xc8,0x18,0xe0,0x00,0xe0,0x40,0x20,0x18,0xe0,
182 0xe0,0x18,0x30,0x20,0xe0,0xe8,0xf0,0xf0,0xf0,0xf8,0xf8,0xf8,
183 0xe0,0x20,0x08,0x00,0x00,0x10,0xff,0x7f,0xbf,0x32,0xd0,0x00,
184 0x00,0x00,0x9f,0x63,0x79,0x42,0xb0,0x15,0xcb,0x04,0xff,0x7f,
185 0x31,0x6e,0x4a,0x45,0x00,0x00,0xff,0x7f,0xef,0x1b,0x00,0x02,
186 0x00,0x00,0xff,0x7f,0x1f,0x42,0xf2,0x1c,0x00,0x00,0xff,0x7f,
187 0x94,0x52,0x4a,0x29,0x00,0x00,0xff,0x7f,0xff,0x03,0x2f,0x01,
188 0x00,0x00,0xff,0x7f,0xef,0x03,0xd6,0x01,0x00,0x00,0xff,0x7f,
189 0xb5,0x42,0xc8,0x3d,0x00,0x00,0x74,0x7e,0xff,0x03,0x80,0x01,
190 0x00,0x00,0xff,0x67,0xac,0x77,0x13,0x1a,0x6b,0x2d,0xd6,0x7e,
191 0xff,0x4b,0x75,0x21,0x00,0x00,0xff,0x53,0x5f,0x4a,0x52,0x7e,
192 0x00,0x00,0xff,0x4f,0xd2,0x7e,0x4c,0x3a,0xe0,0x1c,0xed,0x03,
193 0xff,0x7f,0x5f,0x25,0x00,0x00,0x6a,0x03,0x1f,0x02,0xff,0x03,
194 0xff,0x7f,0xff,0x7f,0xdf,0x01,0x12,0x01,0x00,0x00,0x1f,0x23,
195 0x5f,0x03,0xf2,0x00,0x09,0x00,0xff,0x7f,0xea,0x03,0x1f,0x01,
196 0x00,0x00,0x9f,0x29,0x1a,0x00,0x0c,0x00,0x00,0x00,0xff,0x7f,
197 0x7f,0x02,0x1f,0x00,0x00,0x00,0xff,0x7f,0xe0,0x03,0x06,0x02,
198 0x20,0x01,0xff,0x7f,0xeb,0x7e,0x1f,0x00,0x00,0x7c,0xff,0x7f,
199 0xff,0x3f,0x00,0x7e,0x1f,0x00,0xff,0x7f,0xff,0x03,0x1f,0x00,
200 0x00,0x00,0xff,0x03,0x1f,0x00,0x0c,0x00,0x00,0x00,0xff,0x7f,
201 0x3f,0x03,0x93,0x01,0x00,0x00,0x00,0x00,0x00,0x42,0x7f,0x03,
202 0xff,0x7f,0xff,0x7f,0x8c,0x7e,0x00,0x7c,0x00,0x00,0xff,0x7f,
203 0xef,0x1b,0x80,0x61,0x00,0x00,0xff,0x7f,0xea,0x7f,0x5f,0x7d,
204 0x00,0x00,0x78,0x47,0x90,0x32,0x87,0x1d,0x61,0x08,0x03,0x90,
205 0x0f,0x18,0x00,0x78,0x81,0x09,0x12,0x15,0x54,0x93,0x99,0x9c,
206 0x9f,0xa2,0x3c,0x42,0xb9,0xa5,0xb9,0xa5,0x42,0x3c,0x33,0x00,
207 0x03,0x1c,0x0f,0x1f,0x7b,0x1c,0x3e,0x3c,0xfd,0xb6,0xf7,0xf7,
208 0x71,0x01,0x7f,0xfc,0x30,0xc0,0x7f,0x78,0xff,0xfd,0xdd,0xcf,
209 0x00,0x23,0x60,0xfc,0x6f,0xd4,0xbc,0x35,0x08,0xff,0xc8,0x80,
210 0xf0,0x53,0xf8,0x6a,0xdf,0x7c,0x3d,0x81,0x7d,0x79,0x3c,0xf3,
211 0x43,0xe7,0x0f,0xc7,0x00,0xfc,0x01,0xd2,0xb4,0xad,0x2b,0x41,
212 0x0e,0x34,0x13,0x1c,0x41,0x38,0x31,0xff,0xef,0xf3,0xe0,0x5f,
213 0xd7,0xd7,0xff,0x3f,0xe0,0xf6,0xaf,0xda,0x9f,0xfd,0xa9,0xe8,
214 0xfc,0xda,0xbc,0x3e,0x7d,0xa9,0xe8,0x00,0xff,0xcf,0x1f,0xff,
215 0xfd,0x28,0x1d,0x80,0x1c,0x3d,0x3c,0xff,0xf4,0x2a,0x38,0xa9,
216 0x3f,0xff,0x40,0x70,0x00,0xff,0xc5,0xc0,0xbf,0xf6,0xaa,0xcf,
217 0xe1,0xd2,0x00,0xf3,0xe3,0xf7,0xf3,0xb4,0x27,0x77,0x5f,0xf5,
218 0xfc,0x38,0x48,0x00,0xff,0xc7,0x3f,0xb4,0xad,0x28,0xef,0xaf,
219 0xc4,0xcf,0x20,0xce,0x8e,0x9f,0x90,0x1e,0xff,0xff,0x42,0x1c,
220 0xa9,0x33,0x00,0xff,0x09,0x9f,0x8f,0xe2,0x1f,0x5f,0xfd,0x48,
221 0x3e,0x3f,0xa7,0xbf,0xcf,0x3c,0x42,0x38,0xa8,0x7f,0xaf,0xfc,
222 0x00,0xff,0xcf,0xff,0xff,0x3f,0x00,0xff,0xca,0xfe,0xff,0xd4,
223 0x00,0xff,0xff,0x2b,0xfe,0xfd,0x4f,0x00,0xfc,0xfc,0x53,0xff,
224 0xfc,0x0f,0xf7,0xfd,0x30,0xff,0x1e,0x3d,0xfc,0x45,0xff,0x87,
225 0x1f,0xf7,0xbf,0x03,0xff,0x3f,0xfe,0x5d,0x54,0x00,0xff,0xfc,
226 0x01,0xc0,0x83,0x03,0x87,0xd3,0x4f,0x54,0x8f,0x3c,0xd2,0xaa,
227 0x2a,0xfc,0x06,0xbe,0x3e,0xdf,0xdf,0xdd,0xcf,0x00,0xc8,0x0e,
228 0xff,0x7b,0xfc,0xf3,0x15,0xc0,0x7f,0xff,0xff,0xff,0xff,0xf1,
229 0x03,0xc2,0xff,0x87,0xff,0x50,0xf8,0x00,0xff,0x03,0xc7,0x83,
230 0xe3,0x61,0xf1,0xb6,0x53,0x7c,0xdf,0xda,0xaf,0xf4,0xa5,0x4a,
231 0xd7,0xd7,0x55,0xd7,0xff,0xf1,0xe0,0x6f,0xdb,0xf0,0xf9,0xf1,
232 0x00,0xfb,0xf9,0x7f,0x7b,0xb7,0xff,0x3f,0x1e,0xd0,0x1c,0xaa,
233 0xa4,0xff,0xcf,0x00,0xfc,0x3f,0x13,0x1e,0x31,0x7c,0xf8,0xe5,
234 0xf5,0xf5,0xd7,0xd7,0x01,0xff,0x7f,0x4f,0x77,0xc7,0x22,0x9f,
235 0x03,0x7d,0x01,0x1d,0x24,0x38,0x6d,0x00,0x55,0xcd,0xf4,0x05,
236 0x3e,0x04,0x0e,0x00,0xcb,0x20,0xf5,0xcb,0x11,0xf1,0xcb,0x11,
237 0x3d,0x20,0xf5,0x79,0x22,0x23,0x22,0x23,0xc9,0xe5,0x21,0x0f,
238 0xff,0xcb,0x86,0xcb,0x46,0x28,0xfc,0xe1,0xc9,0xcd,0x41,0x08,
239 0xcd,0x09,0x06,0x05,0x20,0xf7,0xc9,0xe0,0x13,0x3e,0x87,0xe0,
240 0x14,0xc9,0x21,0x00,0x80,0xaf,0x22,0xcb,0x6c,0x28,0xfa,0xc9,
241 0xcd,0x33,0x06,0x1a,0xa1,0x47,0x1c,0x1c,0x1a,0x1d,0x1d,0xa1,
242 0xcb,0x37,0xb0,0xcb,0x41,0x28,0x02,0xcb,0x37,0x23,0x22,0xcb,
243 0x31,0xc9,0xcd,0x4d,0x06,0xcd,0x30,0x06,0x1c,0x7b,0xc9,0x21,
244 0x96,0x04,0x11,0x7f,0x80,0x0e,0x30,0x46,0x05,0x28,0x36,0x04,
245 0x23,0x37,0xcb,0x10,0x38,0x20,0xcb,0x20,0x38,0x03,0x2a,0x18,
246 0x20,0xcb,0x20,0x20,0x05,0x46,0x23,0x37,0xcb,0x10,0x4f,0x30,
247 0x03,0xcb,0x3f,0xfe,0x87,0xcb,0x20,0x38,0x02,0xb1,0xfe,0xa1,
248 0x18,0x07,0xcb,0x20,0x38,0x03,0x1b,0x1a,0x13,0x13,0x12,0xcb,
249 0x20,0x20,0xd1,0x18,0xc6,0x62,0x2e,0x80,0x11,0x04,0x01,0x0e,
250 0xf0,0xcd,0x4a,0x06,0xc6,0x16,0x5f,0xcd,0x4a,0x06,0xd6,0x16,
251 0x5f,0xfe,0x1c,0x20,0xee,0x23,0x11,0x8e,0x04,0x0e,0x08,0x1a,
252 0x13,0x22,0x23,0x0d,0x20,0xf9,0xc9,0x3e,0x01,0xe0,0x4f,0x16,
253 0x1a,0x06,0x02,0xcd,0x15,0x06,0x21,0xc0,0x98,0x0e,0x03,0x7e,
254 0xfe,0x0f,0x28,0x05,0x34,0xe6,0x07,0x28,0x03,0x23,0x18,0xf3,
255 0x7d,0xf6,0x1f,0x6f,0x23,0x0d,0x20,0xeb,0x15,0x20,0xde,0xc9,
256 0x06,0x20,0x0e,0x20,0x21,0x81,0xff,0xc5,0x2a,0x5f,0x3a,0x57,
257 0x01,0x21,0x04,0x7b,0xe6,0x1f,0xfe,0x1f,0x20,0x01,0x0d,0x7b,
258 0xfe,0xe0,0x38,0x09,0x7a,0xe6,0x03,0xfe,0x03,0x20,0x02,0xcb,
259 0xa9,0x7a,0xe6,0x7c,0xfe,0x7c,0x20,0x02,0xcb,0x90,0x7b,0x81,
260 0x22,0x7a,0x88,0x22,0xc1,0x0d,0x20,0xcf,0xcd,0x09,0x06,0xcd,
261 0x1a,0x08,0xcd,0x09,0x06,0x05,0x20,0xbe,0x3e,0x02,0xe0,0x70,
262 0x21,0x00,0xd0,0xcd,0x29,0x06,0x3c,0xcd,0x2e,0x08,0xcd,0x33,
263 0x08,0xcd,0x2e,0x08,0xaf,0xe0,0x70,0x2f,0xe0,0x00,0x57,0x59,
264 0x2e,0x0d,0xfa,0x43,0x01,0xcb,0x7f,0xcc,0x73,0x07,0xcb,0x7f,
265 0xe0,0x4c,0xf0,0x80,0x47,0x28,0x05,0xf0,0xc1,0xa7,0x20,0x06,
266 0xaf,0x4f,0x3e,0x11,0x61,0xc9,0xcd,0x73,0x07,0xe0,0x4c,0x3e,
267 0x01,0xc9,0x21,0x7d,0x04,0x4f,0x06,0x00,0x09,0x7e,0xc9,0x3e,
268 0x01,0xe0,0x6c,0xcd,0x9e,0x07,0xcb,0x7f,0xc4,0xe1,0x08,0xcb,
269 0xbf,0x47,0x80,0x80,0x47,0xf0,0xc1,0xa7,0x28,0x05,0xcd,0x6a,
270 0x07,0x18,0x01,0x78,0xcd,0x09,0x06,0xcd,0xf5,0x07,0x3e,0x04,
271 0x11,0x08,0x00,0x2e,0x7c,0xc9,0x21,0x4b,0x01,0x7e,0xfe,0x33,
272 0x28,0x05,0x3d,0x20,0x42,0x18,0x0c,0x2e,0x44,0x2a,0xfe,0x30,
273 0x20,0x39,0x7e,0xfe,0x31,0x20,0x34,0x2e,0x34,0x0e,0x10,0xaf,
274 0x86,0x2c,0x0d,0x20,0xfb,0xe0,0x80,0x47,0x21,0x00,0x02,0x7d,
275 0xd6,0x5e,0xc8,0x2a,0xb8,0x20,0xf8,0x7d,0xd6,0x42,0x38,0x0e,
276 0xe5,0x7d,0xc6,0x7a,0x6f,0x7e,0xe1,0x4f,0xfa,0x37,0x01,0xb9,
277 0x20,0xe5,0x7d,0xc6,0x5d,0x6f,0x78,0xe0,0x80,0x7e,0xc9,0xaf,
278 0xc9,0x21,0xd9,0x02,0x06,0x00,0x4f,0x09,0xc9,0xcd,0xed,0x07,
279 0x1e,0x00,0x2a,0xe5,0x21,0x7e,0x03,0x4f,0x09,0x16,0x08,0x0e,
280 0x6a,0xcd,0x23,0x08,0xe1,0xcb,0x5b,0x20,0x04,0x1e,0x08,0x18,
281 0xe9,0x4e,0x21,0x7e,0x03,0x09,0x16,0x08,0x18,0x05,0x21,0x81,
282 0xff,0x16,0x40,0x1e,0x00,0x0e,0x68,0x3e,0x80,0xb3,0xe2,0x0c,
283 0x2a,0xe2,0x15,0x20,0xfb,0xc9,0xe0,0x4f,0x21,0xee,0x00,0xcd,
284 0x09,0x06,0x0e,0x51,0x06,0x05,0x2a,0xe2,0x0c,0x05,0x20,0xfa,
285 0xc9,0x3e,0x20,0xe0,0x00,0xf0,0x00,0x2f,0xe6,0x0f,0xc8,0x2e,
286 0x00,0x2c,0x1f,0x30,0xfc,0x3e,0x10,0xe0,0x00,0xf0,0x00,0x2f,
287 0x17,0x17,0xe6,0x0c,0x85,0x6f,0xf0,0xc1,0xbd,0xc8,0x7d,0xe0,
288 0xc1,0xc5,0xd5,0xcd,0x6a,0x07,0xcd,0xed,0x07,0x2c,0x2c,0x4e,
289 0x21,0x7f,0x03,0x09,0x3a,0xfe,0x7f,0x20,0x02,0x23,0x23,0xf5,
290 0x2a,0xe5,0x21,0x81,0xff,0xcd,0xd7,0x08,0x2e,0x83,0xcd,0xd7,
291 0x08,0xe1,0xe0,0x87,0x2a,0xe5,0x21,0x82,0xff,0xcd,0xd7,0x08,
292 0x2e,0x84,0xcd,0xd7,0x08,0xe1,0xe0,0x88,0xf1,0x28,0x02,0x23,
293 0x23,0xf0,0xbb,0xe6,0xde,0x47,0x2a,0xe6,0xde,0x80,0x47,0xfa,
294 0xbc,0xff,0xcb,0x97,0x4e,0xcb,0x91,0x89,0x1f,0xea,0xbc,0xff,
295 0x78,0x1f,0xea,0xbb,0xff,0x2d,0x2a,0xe0,0xbf,0x2a,0xe0,0xc0,
296 0x2a,0xe0,0x85,0x2a,0xe0,0x86,0xcd,0x09,0x06,0xcd,0x1a,0x08,
297 0x3e,0x30,0xe0,0xc2,0xd1,0xc1,0xc9,0x11,0x08,0x00,0x4b,0x77,
298 0x19,0x0d,0x20,0xfb,0xc9,0xf5,0xcd,0x09,0x06,0x3e,0x19,0xea,
299 0x10,0x99,0x21,0x2f,0x99,0x0e,0x0c,0x3d,0x28,0x08,0x32,0x0d,
300 0x20,0xf9,0x2e,0x0f,0x18,0xf5,0xf1,0xc9,0x00,0x00,0x00,0x00,
301 };
302  
303 static const unsigned char sb_bootrom_agb[2304] = {
304 0x31,0xfe,0xff,0xcd,0x26,0x06,0x26,0xfe,0x0e,0xa0,0x22,0x0d,
305 0x20,0xfc,0x0e,0x10,0x21,0x30,0xff,0x22,0x2f,0x0d,0x20,0xfb,
306 0xe0,0xc1,0xe0,0x80,0x3e,0x80,0xe0,0x26,0xe0,0x11,0x3e,0xf3,
307 0xe0,0x12,0xe0,0x25,0x3e,0x77,0xe0,0x24,0x3e,0xfc,0xe0,0x47,
308 0x11,0x04,0x01,0x21,0x10,0x80,0x1a,0x47,0xcd,0xf1,0x05,0x13,
309 0x7b,0xfe,0x34,0x20,0xf5,0xcd,0xae,0x06,0x3e,0x01,0xe0,0x4f,
310 0xcd,0x26,0x06,0xcd,0x53,0x06,0x06,0x03,0x21,0xc2,0x98,0x16,
311 0x03,0x3e,0x08,0x0e,0x10,0xcd,0x86,0x00,0xf5,0xd6,0x20,0xd6,
312 0x03,0x30,0x06,0xc6,0x20,0xcd,0x86,0x00,0x0d,0xf1,0x82,0x0d,
313 0x20,0xeb,0xd6,0x2c,0xd5,0x11,0x10,0x00,0x19,0xd1,0x05,0x20,
314 0xde,0x15,0x28,0x17,0x15,0x3e,0x38,0x2e,0xa7,0x01,0x07,0x01,
315 0x18,0xd3,0xf5,0x3e,0x01,0xe0,0x4f,0x36,0x08,0xaf,0xe0,0x4f,
316 0xf1,0x22,0xc9,0x11,0xe1,0x05,0x0e,0x08,0x21,0x81,0xff,0xaf,
317 0x2f,0x22,0x22,0x1a,0x1c,0xf6,0x20,0x47,0x1a,0x1d,0xf6,0x84,
318 0x1f,0xcb,0x18,0x70,0x2c,0x22,0xaf,0x22,0x22,0x1a,0x1c,0x22,
319 0x1a,0x1c,0x22,0xaf,0x0d,0x20,0xe1,0xcd,0x1a,0x08,0x3e,0x91,
320 0xe0,0x40,0xcd,0xbb,0x06,0x3e,0x30,0xe0,0xc2,0x06,0x04,0xcd,
321 0x15,0x06,0x3e,0x83,0xcd,0x1f,0x06,0x06,0x05,0xcd,0x15,0x06,
322 0x3e,0xc1,0xcd,0x1f,0x06,0xcd,0x41,0x08,0xcd,0x09,0x06,0x21,
323 0xc2,0xff,0x35,0x20,0xf4,0xcd,0xe4,0x06,0x04,0x18,0x0f,0xd0,
324 0x00,0x98,0xa0,0x12,0xd0,0x00,0x80,0x00,0x40,0x00,0x00,0x00,
325 0x00,0x00,0xe0,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
326 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
327 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
328 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
329 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
330 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
331 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
332 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
333 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
334 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
335 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
336 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
337 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
338 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
339 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
340 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
341 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
342 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
343 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
344 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
345 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
346 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x88,0x16,0x36,
347 0xd1,0xdb,0xf2,0x3c,0x8c,0x92,0x3d,0x5c,0x58,0xc9,0x3e,0x70,
348 0x1d,0x59,0x69,0x19,0x35,0xa8,0x14,0xaa,0x75,0x95,0x99,0x34,
349 0x6f,0x15,0xff,0x97,0x4b,0x90,0x17,0x10,0x39,0xf7,0xf6,0xa2,
350 0x49,0x4e,0x43,0x68,0xe0,0x8b,0xf0,0xce,0x0c,0x29,0xe8,0xb7,
351 0x86,0x9a,0x52,0x01,0x9d,0x71,0x9c,0xbd,0x5d,0x6d,0x67,0x3f,
352 0x6b,0xb3,0x46,0x28,0xa5,0xc6,0xd3,0x27,0x61,0x18,0x66,0x6a,
353 0xbf,0x0d,0xf4,0xb3,0x46,0x28,0xa5,0xc6,0xd3,0x27,0x61,0x18,
354 0x66,0x6a,0xbf,0x0d,0xf4,0xb3,0x00,0x04,0x05,0x23,0x22,0x03,
355 0x1f,0x0f,0x0a,0x05,0x13,0x24,0x87,0x25,0x1e,0x2c,0x15,0x20,
356 0x1f,0x14,0x05,0x21,0x0d,0x0e,0x05,0x1d,0x05,0x12,0x09,0x03,
357 0x02,0x1a,0x19,0x19,0x29,0x2a,0x1a,0x2d,0x2a,0x2d,0x24,0x26,
358 0x9a,0x2a,0x1e,0x29,0x22,0x22,0x05,0x2a,0x06,0x05,0x21,0x19,
359 0x2a,0x2a,0x28,0x02,0x10,0x19,0x2a,0x2a,0x05,0x00,0x27,0x24,
360 0x16,0x19,0x06,0x20,0x0c,0x24,0x0b,0x27,0x12,0x27,0x18,0x1f,
361 0x32,0x11,0x2e,0x06,0x1b,0x00,0x2f,0x29,0x29,0x00,0x00,0x13,
362 0x22,0x17,0x12,0x1d,0x42,0x45,0x46,0x41,0x41,0x52,0x42,0x45,
363 0x4b,0x45,0x4b,0x20,0x52,0x2d,0x55,0x52,0x41,0x52,0x20,0x49,
364 0x4e,0x41,0x49,0x4c,0x49,0x43,0x45,0x20,0x52,0x20,0x20,0xe8,
365 0x90,0x90,0x90,0xa0,0xa0,0xa0,0xc0,0xc0,0xc0,0x48,0x48,0x48,
366 0x00,0x00,0x00,0xd8,0xd8,0xd8,0x28,0x28,0x28,0x60,0x60,0x60,
367 0xd0,0xd0,0xd0,0x80,0x40,0x40,0x20,0xe0,0xe0,0x20,0x10,0x10,
368 0x18,0x20,0x20,0x20,0xe8,0xe8,0xe0,0x20,0xe0,0x10,0x88,0x10,
369 0x80,0x80,0x40,0x20,0x20,0x38,0x20,0x20,0x90,0x20,0x20,0xa0,
370 0x98,0x98,0x48,0x1e,0x1e,0x58,0x88,0x88,0x10,0x20,0x20,0x10,
371 0x20,0x20,0x18,0xe0,0xe0,0x00,0x18,0x18,0x00,0x00,0x00,0x08,
372 0x90,0xb0,0x90,0xa0,0xb0,0xa0,0xc0,0xb0,0xc0,0x80,0xb0,0x40,
373 0x88,0x20,0x68,0xde,0x00,0x70,0xde,0x20,0x78,0x98,0xb6,0x48,
374 0x80,0xe0,0x50,0x20,0xb8,0xe0,0x88,0xb0,0x10,0x20,0x00,0x10,
375 0x20,0xe0,0x18,0xe0,0x18,0x00,0x18,0xe0,0x20,0xa8,0xe0,0x20,
376 0x18,0xe0,0x00,0xc8,0x18,0xe0,0x00,0xe0,0x40,0x20,0x18,0xe0,
377 0xe0,0x18,0x30,0x20,0xe0,0xe8,0xf0,0xf0,0xf0,0xf8,0xf8,0xf8,
378 0xe0,0x20,0x08,0x00,0x00,0x10,0xff,0x7f,0xbf,0x32,0xd0,0x00,
379 0x00,0x00,0x9f,0x63,0x79,0x42,0xb0,0x15,0xcb,0x04,0xff,0x7f,
380 0x31,0x6e,0x4a,0x45,0x00,0x00,0xff,0x7f,0xef,0x1b,0x00,0x02,
381 0x00,0x00,0xff,0x7f,0x1f,0x42,0xf2,0x1c,0x00,0x00,0xff,0x7f,
382 0x94,0x52,0x4a,0x29,0x00,0x00,0xff,0x7f,0xff,0x03,0x2f,0x01,
383 0x00,0x00,0xff,0x7f,0xef,0x03,0xd6,0x01,0x00,0x00,0xff,0x7f,
384 0xb5,0x42,0xc8,0x3d,0x00,0x00,0x74,0x7e,0xff,0x03,0x80,0x01,
385 0x00,0x00,0xff,0x67,0xac,0x77,0x13,0x1a,0x6b,0x2d,0xd6,0x7e,
386 0xff,0x4b,0x75,0x21,0x00,0x00,0xff,0x53,0x5f,0x4a,0x52,0x7e,
387 0x00,0x00,0xff,0x4f,0xd2,0x7e,0x4c,0x3a,0xe0,0x1c,0xed,0x03,
388 0xff,0x7f,0x5f,0x25,0x00,0x00,0x6a,0x03,0x1f,0x02,0xff,0x03,
389 0xff,0x7f,0xff,0x7f,0xdf,0x01,0x12,0x01,0x00,0x00,0x1f,0x23,
390 0x5f,0x03,0xf2,0x00,0x09,0x00,0xff,0x7f,0xea,0x03,0x1f,0x01,
391 0x00,0x00,0x9f,0x29,0x1a,0x00,0x0c,0x00,0x00,0x00,0xff,0x7f,
392 0x7f,0x02,0x1f,0x00,0x00,0x00,0xff,0x7f,0xe0,0x03,0x06,0x02,
393 0x20,0x01,0xff,0x7f,0xeb,0x7e,0x1f,0x00,0x00,0x7c,0xff,0x7f,
394 0xff,0x3f,0x00,0x7e,0x1f,0x00,0xff,0x7f,0xff,0x03,0x1f,0x00,
395 0x00,0x00,0xff,0x03,0x1f,0x00,0x0c,0x00,0x00,0x00,0xff,0x7f,
396 0x3f,0x03,0x93,0x01,0x00,0x00,0x00,0x00,0x00,0x42,0x7f,0x03,
397 0xff,0x7f,0xff,0x7f,0x8c,0x7e,0x00,0x7c,0x00,0x00,0xff,0x7f,
398 0xef,0x1b,0x80,0x61,0x00,0x00,0xff,0x7f,0xea,0x7f,0x5f,0x7d,
399 0x00,0x00,0x78,0x47,0x90,0x32,0x87,0x1d,0x61,0x08,0x03,0x90,
400 0x0f,0x18,0x00,0x78,0x81,0x09,0x12,0x15,0x54,0x93,0x99,0x9c,
401 0x9f,0xa2,0x3c,0x42,0xb9,0xa5,0xb9,0xa5,0x42,0x3c,0x33,0x00,
402 0x03,0x1c,0x0f,0x1f,0x7b,0x1c,0x3e,0x3c,0xfd,0xb6,0xf7,0xf7,
403 0x71,0x01,0x7f,0xfc,0x30,0xc0,0x7f,0x78,0xff,0xfd,0xdd,0xcf,
404 0x00,0x23,0x60,0xfc,0x6f,0xd4,0xbc,0x35,0x08,0xff,0xc8,0x80,
405 0xf0,0x53,0xf8,0x6a,0xdf,0x7c,0x3d,0x81,0x7d,0x79,0x3c,0xf3,
406 0x43,0xe7,0x0f,0xc7,0x00,0xfc,0x01,0xd2,0xb4,0xad,0x2b,0x41,
407 0x0e,0x34,0x13,0x1c,0x41,0x38,0x31,0xff,0xef,0xf3,0xe0,0x5f,
408 0xd7,0xd7,0xff,0x3f,0xe0,0xf6,0xaf,0xda,0x9f,0xfd,0xa9,0xe8,
409 0xfc,0xda,0xbc,0x3e,0x7d,0xa9,0xe8,0x00,0xff,0xcf,0x1f,0xff,
410 0xfd,0x28,0x1d,0x80,0x1c,0x3d,0x3c,0xff,0xf4,0x2a,0x38,0xa9,
411 0x3f,0xff,0x40,0x70,0x00,0xff,0xc5,0xc0,0xbf,0xf6,0xaa,0xcf,
412 0xe1,0xd2,0x00,0xf3,0xe3,0xf7,0xf3,0xb4,0x27,0x77,0x5f,0xf5,
413 0xfc,0x38,0x48,0x00,0xff,0xc7,0x3f,0xb4,0xad,0x28,0xef,0xaf,
414 0xc4,0xcf,0x20,0xce,0x8e,0x9f,0x90,0x1e,0xff,0xff,0x42,0x1c,
415 0xa9,0x33,0x00,0xff,0x09,0x9f,0x8f,0xe2,0x1f,0x5f,0xfd,0x48,
416 0x3e,0x3f,0xa7,0xbf,0xcf,0x3c,0x42,0x38,0xa8,0x7f,0xaf,0xfc,
417 0x00,0xff,0xcf,0xff,0xff,0x3f,0x00,0xff,0xca,0xfe,0xff,0xd4,
418 0x00,0xff,0xff,0x2b,0xfe,0xfd,0x4f,0x00,0xfc,0xfc,0x53,0xff,
419 0xfc,0x0f,0xf7,0xfd,0x30,0xff,0x1e,0x3d,0xfc,0x45,0xff,0x87,
420 0x1f,0xf7,0xbf,0x03,0xff,0x3f,0xfe,0x5d,0x54,0x00,0xff,0xfc,
421 0x01,0xc0,0x83,0x03,0x87,0xd3,0x4f,0x54,0x8f,0x3c,0xd2,0xaa,
422 0x2a,0xfc,0x06,0xbe,0x3e,0xdf,0xdf,0xdd,0xcf,0x00,0xc8,0x0e,
423 0xff,0x7b,0xfc,0xf3,0x15,0xc0,0x7f,0xff,0xff,0xff,0xff,0xf1,
424 0x03,0xc2,0xff,0x87,0xff,0x50,0xf8,0x00,0xff,0x03,0xc7,0x83,
425 0xe3,0x61,0xf1,0xb6,0x53,0x7c,0xdf,0xda,0xaf,0xf4,0xa5,0x4a,
426 0xd7,0xd7,0x55,0xd7,0xff,0xf1,0xe0,0x6f,0xdb,0xf0,0xf9,0xf1,
427 0x00,0xfb,0xf9,0x7f,0x7b,0xb7,0xff,0x3f,0x1e,0xd0,0x1c,0xaa,
428 0xa4,0xff,0xcf,0x00,0xfc,0x3f,0x13,0x1e,0x31,0x7c,0xf8,0xe5,
429 0xf5,0xf5,0xd7,0xd7,0x01,0xff,0x7f,0x4f,0x77,0xc7,0x22,0x9f,
430 0x03,0x7d,0x01,0x1d,0x24,0x38,0x6d,0x60,0x6d,0xcd,0xf4,0x05,
431 0x3e,0x04,0x0e,0x00,0xcb,0x20,0xf5,0xcb,0x11,0xf1,0xcb,0x11,
432 0x3d,0x20,0xf5,0x79,0x22,0x23,0x22,0x23,0xc9,0xe5,0x21,0x0f,
433 0xff,0xcb,0x86,0xcb,0x46,0x28,0xfc,0xe1,0xc9,0xcd,0x41,0x08,
434 0xcd,0x09,0x06,0x05,0x20,0xf7,0xc9,0xe0,0x13,0x3e,0x87,0xe0,
435 0x14,0xc9,0x21,0x00,0x80,0xaf,0x22,0xcb,0x6c,0x28,0xfa,0xc9,
436 0xcd,0x33,0x06,0x1a,0xa1,0x47,0x1c,0x1c,0x1a,0x1d,0x1d,0xa1,
437 0xcb,0x37,0xb0,0xcb,0x41,0x28,0x02,0xcb,0x37,0x23,0x22,0xcb,
438 0x31,0xc9,0xcd,0x4d,0x06,0xcd,0x30,0x06,0x1c,0x7b,0xc9,0x21,
439 0x96,0x04,0x11,0x7f,0x80,0x0e,0x30,0x46,0x05,0x28,0x36,0x04,
440 0x23,0x37,0xcb,0x10,0x38,0x20,0xcb,0x20,0x38,0x03,0x2a,0x18,
441 0x20,0xcb,0x20,0x20,0x05,0x46,0x23,0x37,0xcb,0x10,0x4f,0x30,
442 0x03,0xcb,0x3f,0xfe,0x87,0xcb,0x20,0x38,0x02,0xb1,0xfe,0xa1,
443 0x18,0x07,0xcb,0x20,0x38,0x03,0x1b,0x1a,0x13,0x13,0x12,0xcb,
444 0x20,0x20,0xd1,0x18,0xc6,0x62,0x2e,0x80,0x11,0x04,0x01,0x0e,
445 0xf0,0xcd,0x4a,0x06,0xc6,0x16,0x5f,0xcd,0x4a,0x06,0xd6,0x16,
446 0x5f,0xfe,0x1c,0x20,0xee,0x23,0x11,0x8e,0x04,0x0e,0x08,0x1a,
447 0x13,0x22,0x23,0x0d,0x20,0xf9,0xc9,0x3e,0x01,0xe0,0x4f,0x16,
448 0x1a,0x06,0x02,0xcd,0x15,0x06,0x21,0xc0,0x98,0x0e,0x03,0x7e,
449 0xfe,0x0f,0x28,0x05,0x34,0xe6,0x07,0x28,0x03,0x23,0x18,0xf3,
450 0x7d,0xf6,0x1f,0x6f,0x23,0x0d,0x20,0xeb,0x15,0x20,0xde,0xc9,
451 0x06,0x20,0x0e,0x20,0x21,0x81,0xff,0xc5,0x2a,0x5f,0x3a,0x57,
452 0x01,0x21,0x04,0x7b,0xe6,0x1f,0xfe,0x1f,0x20,0x01,0x0d,0x7b,
453 0xfe,0xe0,0x38,0x09,0x7a,0xe6,0x03,0xfe,0x03,0x20,0x02,0xcb,
454 0xa9,0x7a,0xe6,0x7c,0xfe,0x7c,0x20,0x02,0xcb,0x90,0x7b,0x81,
455 0x22,0x7a,0x88,0x22,0xc1,0x0d,0x20,0xcf,0xcd,0x09,0x06,0xcd,
456 0x1a,0x08,0xcd,0x09,0x06,0x05,0x20,0xbe,0x3e,0x02,0xe0,0x70,
457 0x21,0x00,0xd0,0xcd,0x29,0x06,0x3c,0xcd,0x2e,0x08,0xcd,0x33,
458 0x08,0xcd,0x2e,0x08,0xaf,0xe0,0x70,0x2f,0xe0,0x00,0x57,0x59,
459 0x2e,0x0d,0xfa,0x43,0x01,0xcb,0x7f,0xcc,0x73,0x07,0xcb,0x7f,
460 0xe0,0x4c,0xf0,0x80,0x47,0x28,0x05,0xf0,0xc1,0xa7,0x20,0x06,
461 0xaf,0x4f,0xc6,0x11,0x61,0xc9,0xcd,0x73,0x07,0xe0,0x4c,0x3e,
462 0x01,0xc9,0x21,0x7d,0x04,0x4f,0x06,0x00,0x09,0x7e,0xc9,0x3e,
463 0x01,0xe0,0x6c,0xcd,0x9e,0x07,0xcb,0x7f,0xc4,0xe1,0x08,0xcb,
464 0xbf,0x47,0x80,0x80,0x47,0xf0,0xc1,0xa7,0x28,0x05,0xcd,0x6a,
465 0x07,0x18,0x01,0x78,0xcd,0x09,0x06,0xcd,0xf5,0x07,0x3e,0x04,
466 0x11,0x08,0x00,0x2e,0x7c,0xc9,0x21,0x4b,0x01,0x7e,0xfe,0x33,
467 0x28,0x05,0x3d,0x20,0x42,0x18,0x0c,0x2e,0x44,0x2a,0xfe,0x30,
468 0x20,0x39,0x7e,0xfe,0x31,0x20,0x34,0x2e,0x34,0x0e,0x10,0xaf,
469 0x86,0x2c,0x0d,0x20,0xfb,0xe0,0x80,0x47,0x21,0x00,0x02,0x7d,
470 0xd6,0x5e,0xc8,0x2a,0xb8,0x20,0xf8,0x7d,0xd6,0x42,0x38,0x0e,
471 0xe5,0x7d,0xc6,0x7a,0x6f,0x7e,0xe1,0x4f,0xfa,0x37,0x01,0xb9,
472 0x20,0xe5,0x7d,0xc6,0x5d,0x6f,0x78,0xe0,0x80,0x7e,0xc9,0xaf,
473 0xc9,0x21,0xd9,0x02,0x06,0x00,0x4f,0x09,0xc9,0xcd,0xed,0x07,
474 0x1e,0x00,0x2a,0xe5,0x21,0x7e,0x03,0x4f,0x09,0x16,0x08,0x0e,
475 0x6a,0xcd,0x23,0x08,0xe1,0xcb,0x5b,0x20,0x04,0x1e,0x08,0x18,
476 0xe9,0x4e,0x21,0x7e,0x03,0x09,0x16,0x08,0x18,0x05,0x21,0x81,
477 0xff,0x16,0x40,0x1e,0x00,0x0e,0x68,0x3e,0x80,0xb3,0xe2,0x0c,
478 0x2a,0xe2,0x15,0x20,0xfb,0xc9,0xe0,0x4f,0x21,0xef,0x00,0xcd,
479 0x09,0x06,0x0e,0x51,0x06,0x05,0x2a,0xe2,0x0c,0x05,0x20,0xfa,
480 0xc9,0x3e,0x20,0xe0,0x00,0xf0,0x00,0x2f,0xe6,0x0f,0xc8,0x2e,
481 0x00,0x2c,0x1f,0x30,0xfc,0x3e,0x10,0xe0,0x00,0xf0,0x00,0x2f,
482 0x17,0x17,0xe6,0x0c,0x85,0x6f,0xf0,0xc1,0xbd,0xc8,0x7d,0xe0,
483 0xc1,0xc5,0xd5,0xcd,0x6a,0x07,0xcd,0xed,0x07,0x2c,0x2c,0x4e,
484 0x21,0x7f,0x03,0x09,0x3a,0xfe,0x7f,0x20,0x02,0x23,0x23,0xf5,
485 0x2a,0xe5,0x21,0x81,0xff,0xcd,0xd7,0x08,0x2e,0x83,0xcd,0xd7,
486 0x08,0xe1,0xe0,0x87,0x2a,0xe5,0x21,0x82,0xff,0xcd,0xd7,0x08,
487 0x2e,0x84,0xcd,0xd7,0x08,0xe1,0xe0,0x88,0xf1,0x28,0x02,0x23,
488 0x23,0xf0,0xbb,0xe6,0xde,0x47,0x2a,0xe6,0xde,0x80,0x47,0xfa,
489 0xbc,0xff,0xcb,0x97,0x4e,0xcb,0x91,0x89,0x1f,0xea,0xbc,0xff,
490 0x78,0x1f,0xea,0xbb,0xff,0x2d,0x2a,0xe0,0xbf,0x2a,0xe0,0xc0,
491 0x2a,0xe0,0x85,0x2a,0xe0,0x86,0xcd,0x09,0x06,0xcd,0x1a,0x08,
492 0x3e,0x30,0xe0,0xc2,0xd1,0xc1,0xc9,0x11,0x08,0x00,0x4b,0x77,
493 0x19,0x0d,0x20,0xfb,0xc9,0xf5,0xcd,0x09,0x06,0x3e,0x19,0xea,
494 0x10,0x99,0x21,0x2f,0x99,0x0e,0x0c,0x3d,0x28,0x08,0x32,0x0d,
495 0x20,0xf9,0x2e,0x0f,0x18,0xf5,0xf1,0xc9,0x00,0x00,0x00,0x00,
496 };
497  
498 /* Pick the default boot ROM for a GB_model_t value (see Core/model.h). */
499 16 static inline const unsigned char *sb_default_bootrom(int model, size_t *len)
500 {
501 16 switch (model) {
502 3 case 0x002: *len = sizeof(sb_bootrom_dmg); return sb_bootrom_dmg;
503 0 case 0x100: *len = sizeof(sb_bootrom_mgb); return sb_bootrom_mgb;
504 0 case 0x004: *len = sizeof(sb_bootrom_sgb); return sb_bootrom_sgb;
505 0 case 0x101: *len = sizeof(sb_bootrom_sgb2); return sb_bootrom_sgb2;
506 13 default:
507 13 ▶ if ((model & 0xF00) == 0x200) { *len = sizeof(sb_bootrom_cgb); return sb_bootrom_cgb; }
Branch: 1 branch
BranchTrueFalseTotal
if ((model & 0xF00) == 0x200) { *len = sizeof(sb_bootrom_cgb); return sb_bootrom_cgb; } 13 0 13
508 0 *len = sizeof(sb_bootrom_dmg); return sb_bootrom_dmg;
509 }
510 }
511  
512 #endif /* SB_BOOTROMS_H */
« src/Core/sm83_cpu.c ↑ Summary src/Core/random.c »