-
Notifications
You must be signed in to change notification settings - Fork 0
/
sunpal.py
29 lines (28 loc) · 3.54 KB
/
sunpal.py
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
paldata = [
# s0:
0x78, 0xd8, 0x29, 0x88, 0xf8, 0x49, 0x19, 0x79, 0xb9, 0x1a, 0x2a, 0xc9, 0x2a, 0x2a, 0xd9, 0x4a, 0x5a, 0xd9, 0xaa, 0x8a, 0xd9, 0x0b, 0xaa, 0x99, 0x5b, 0xda, 0x69, 0xcb, 0x0b, 0x29, 0x5c, 0x5b, 0xd8, 0xdc, 0x7b, 0x88, 0x7d, 0xcb, 0x28, 0xae, 0x1c, 0xb7, 0x0f, 0x1c, 0x77, 0x4f, 0x2c, 0x57,
# s1:
0x98, 0x09, 0x49, 0xf8, 0x39, 0x59, 0x29, 0x59, 0x59, 0xc9, 0xb9, 0x69, 0x1a, 0x0a, 0x69, 0xf9, 0xf9, 0x69, 0x2a, 0x1a, 0x59, 0x9a, 0x6a, 0x29, 0x4b, 0x9a, 0xd8, 0xbb, 0xea, 0xb8, 0x3c, 0x1b, 0x68, 0xdc, 0x4b, 0x18, 0xdd, 0x9b, 0x77, 0x8e, 0xbb, 0x07, 0xde, 0xbb, 0xc6, 0x0f, 0xbb, 0xa6,
# s2:
0x97, 0x18, 0x78, 0x48, 0x88, 0x88, 0xc8, 0xe8, 0x98, 0x29, 0x29, 0x98, 0xf8, 0x09, 0x98, 0x59, 0x49, 0xa8, 0xc9, 0x89, 0x88, 0x4a, 0xc9, 0x68, 0xca, 0x1a, 0x28, 0x6b, 0x5a, 0xe7, 0xfb, 0x8a, 0x87, 0x9c, 0xca, 0x27, 0xdd, 0x1b, 0x86, 0xed, 0xda, 0xf5, 0xae, 0xfa, 0xb5, 0xed, 0x8a, 0xd5,
# s3:
0x96, 0x07, 0x47, 0xe6, 0x37, 0x57, 0x47, 0x77, 0x77, 0xd7, 0xd7, 0x87, 0x18, 0x28, 0x97, 0x68, 0x48, 0x87, 0xe8, 0x88, 0x57, 0x49, 0xc8, 0x37, 0xe9, 0x09, 0x17, 0x9a, 0x69, 0xc6, 0x2b, 0x99, 0x76, 0x0c, 0xe9, 0x16, 0xfc, 0xf9, 0x75, 0xdc, 0xc9, 0x25, 0x9d, 0xc9, 0xb4, 0xcc, 0x39, 0xa4,
# s4:
0x15, 0xa5, 0x06, 0xd5, 0x26, 0x36, 0x46, 0x66, 0x46, 0x66, 0x86, 0x56, 0xa6, 0xa6, 0x46, 0xd6, 0xe6, 0x56, 0x67, 0x27, 0x26, 0xe7, 0x67, 0xf5, 0x98, 0xb7, 0xd5, 0x09, 0xe7, 0x85, 0xc9, 0x38, 0x15, 0x9a, 0x78, 0xc4, 0x1b, 0x28, 0x14, 0x2b, 0xf7, 0xa3, 0x1c, 0xf7, 0x63, 0xca, 0x07, 0x33,
# s5:
0xf3, 0x54, 0xa4, 0x04, 0x64, 0xc4, 0x34, 0x74, 0x94, 0x94, 0xb4, 0xc4, 0xe4, 0xe4, 0xb4, 0x55, 0x35, 0xa4, 0x06, 0x85, 0x84, 0x56, 0xb5, 0x64, 0xc6, 0xd5, 0x04, 0x67, 0x06, 0xa3, 0x28, 0x36, 0x53, 0xa8, 0x36, 0xd2, 0xa9, 0x36, 0x62, 0xd9, 0x06, 0xf1, 0x8a, 0xd5, 0xc1, 0x98, 0x84, 0x71,
# s6:
0x72, 0xb2, 0x43, 0xa2, 0xd2, 0x53, 0x13, 0x23, 0x23, 0x43, 0x43, 0x23, 0x93, 0x73, 0x53, 0xd3, 0x93, 0x13, 0xe3, 0xa3, 0x03, 0x14, 0xb3, 0xd2, 0xa4, 0xd3, 0x82, 0x25, 0xf3, 0x32, 0xa5, 0xf3, 0xd1, 0x86, 0x14, 0x51, 0x07, 0xd3, 0xe0, 0xe6, 0x73, 0x50, 0xa6, 0xc2, 0x10, 0xe4, 0x02, 0x60,
# s7:
0x81, 0x12, 0x92, 0xd1, 0x42, 0x92, 0xe1, 0x42, 0xa2, 0x12, 0x62, 0x92, 0x52, 0x62, 0x82, 0x72, 0x82, 0x72, 0xa2, 0xa2, 0x62, 0xc2, 0xb2, 0x42, 0x13, 0xb2, 0x12, 0x53, 0xc2, 0x91, 0x93, 0xb2, 0x31, 0xf3, 0xb2, 0xd0, 0x25, 0xa2, 0x40, 0x34, 0x12, 0x10, 0x83, 0x81, 0x20, 0x82, 0x11, 0x70,
# s8:
0x21, 0x81, 0xf1, 0x81, 0xb1, 0x02, 0x91, 0xb1, 0x02, 0x91, 0xd1, 0xf1, 0x02, 0xf1, 0xf1, 0xe1, 0xe1, 0xe1, 0xf1, 0x02, 0xc1, 0x02, 0x02, 0xb1, 0x32, 0x12, 0x91, 0x82, 0x02, 0x31, 0xb2, 0xf1, 0xf0, 0x03, 0xf1, 0x80, 0x93, 0xc1, 0x30, 0x13, 0x71, 0x00, 0x52, 0x01, 0x20, 0xb1, 0xd0, 0x70,
# s9:
0xd0, 0xf0, 0x21, 0x51, 0x01, 0xe0, 0x21, 0x01, 0x21, 0x01, 0x21, 0x31, 0x11, 0x31, 0x41, 0x21, 0x41, 0x41, 0x51, 0x41, 0x41, 0x41, 0x41, 0x11, 0x71, 0x51, 0x01, 0xa1, 0x41, 0xc0, 0xb1, 0x41, 0x90, 0xf1, 0x31, 0x60, 0x32, 0x01, 0x10, 0xc1, 0xd0, 0x00, 0x61, 0x90, 0x00, 0x11, 0x70, 0x30,
# s10:
0x70, 0x80, 0xa0, 0xc0, 0x90, 0x70, 0xa0, 0x90, 0xa0, 0x90, 0xa0, 0xa0, 0xa0, 0xa0, 0xb0, 0xa0, 0xb0, 0xb0, 0xc0, 0xb0, 0xb0, 0xb0, 0xb0, 0xa0, 0xd0, 0xc0, 0x90, 0xf0, 0xb0, 0x60, 0xf0, 0xb0, 0x40, 0x11, 0xa0, 0x30, 0x41, 0x90, 0x00, 0x01, 0x70, 0x00, 0xc0, 0x40, 0x00, 0xa0, 0x30, 0x10,
# s11:
0x10, 0x20, 0x20, 0x30, 0x20, 0x10, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x30, 0x20, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x20, 0x30, 0x30, 0x20, 0x40, 0x30, 0x10, 0x40, 0x30, 0x00, 0x50, 0x20, 0x00, 0x60, 0x20, 0x00, 0x40, 0x10, 0x00, 0x30, 0x00, 0x00, 0x20, 0x00, 0x00 ]
bdata = bytearray(paldata)
with open('pal.bin', 'wb') as file:
file.write(bdata)