mirror of
https://github.com/SAT-R/sa2.git
synced 2026-10-28 09:43:38 +00:00
extract build info and sound_test palette data
This commit is contained in:
1 parent
d64642eb2d
commit
58990cd0bd
9 files changed
+197
-13
No files matched your search
@@ -0,0 +1,10 @@
|
||||
.include "asm/macros.inc"
|
||||
.include "constants/constants.inc"
|
||||
|
||||
.syntax unified
|
||||
.arm
|
||||
|
||||
.section .rodata
|
||||
|
||||
RomBuildInfo:
|
||||
.ascii "0.94 Thu Oct 25 00:00:00 2002\r\n"
|
||||
@@ -27,8 +27,3 @@ gUnknown_08C8793C:
|
||||
.global gUnknown_08C87960
|
||||
gUnknown_08C87960:
|
||||
.incbin "baserom.gba", 0x00C87960, 0xC
|
||||
|
||||
.global gUnknown_08C8796C
|
||||
gUnknown_08C8796C:
|
||||
.incbin "baserom.gba", 0x00C8796C, 0x140
|
||||
|
||||
+1
-1
@@ -11,4 +11,4 @@ gUnknown_08C88408:
|
||||
|
||||
.global gUnknown_08C92208
|
||||
gUnknown_08C92208:
|
||||
.incbin "baserom.gba", 0x00C92208, 0x36DDF8
|
||||
.incbin "baserom.gba", 0x00C92208, 0x44448
|
||||
@@ -0,0 +1,163 @@
|
||||
JASC-PAL
|
||||
0100
|
||||
160
|
||||
0 0 0
|
||||
255 255 139
|
||||
205 222 156
|
||||
180 172 205
|
||||
156 115 255
|
||||
115 98 172
|
||||
255 255 255
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
255 255 139
|
||||
213 230 164
|
||||
189 180 213
|
||||
164 123 255
|
||||
123 106 180
|
||||
255 255 255
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
255 255 148
|
||||
222 238 172
|
||||
197 189 222
|
||||
172 131 255
|
||||
131 115 189
|
||||
255 255 255
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
255 255 156
|
||||
230 246 172
|
||||
205 197 230
|
||||
172 139 255
|
||||
139 123 197
|
||||
255 255 255
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
255 255 164
|
||||
238 255 180
|
||||
213 205 238
|
||||
180 148 255
|
||||
148 131 205
|
||||
255 255 255
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
255 255 172
|
||||
246 255 189
|
||||
222 213 246
|
||||
189 156 255
|
||||
156 139 213
|
||||
255 255 255
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
255 255 180
|
||||
255 255 197
|
||||
222 213 255
|
||||
197 164 255
|
||||
164 148 213
|
||||
255 255 255
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
255 255 189
|
||||
255 255 205
|
||||
230 222 255
|
||||
205 172 255
|
||||
172 156 222
|
||||
255 255 255
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
255 255 197
|
||||
255 255 213
|
||||
238 230 255
|
||||
213 180 255
|
||||
180 164 230
|
||||
255 255 255
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
255 255 205
|
||||
255 255 222
|
||||
246 238 255
|
||||
222 189 255
|
||||
189 172 238
|
||||
255 255 255
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
+1
-1
@@ -2,6 +2,6 @@
|
||||
#define GUARD_PALETTES_H
|
||||
#include "global.h"
|
||||
|
||||
extern const u8 gUnknown_08C8796C[10 * 32];
|
||||
extern const u8 gUnknown_08C8796C[];
|
||||
|
||||
#endif // GUARD_PALETTES_H
|
||||
@@ -379,8 +379,11 @@ SECTIONS
|
||||
|
||||
/* Asset data */
|
||||
build/sa2/data/data3.o(.rodata);
|
||||
build/sa2/src/palettes.o(.rodata);
|
||||
build/sa2/src/recordings.o(.rodata);
|
||||
build/sa2/data/data4.o(.rodata);
|
||||
|
||||
build/sa2/asm/rom_footer.o(.rodata);
|
||||
} = 0
|
||||
|
||||
/* DWARF debug sections.
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
address = int(sys.argv[1], 16)
|
||||
length = int(sys.argv[2], 16)
|
||||
|
||||
with open('baserom.gba', 'rb') as rom:
|
||||
rom.seek(address)
|
||||
with open("graphics/" + str(hex(0x8000000 + address).upper())[2:] + ".gbapal", "wb") as bin:
|
||||
bin.write(rom.read(length))
|
||||
os.system(f"tools/gbagfx/gbagfx graphics/8C8796C.gbapal graphics/8C8796C.pal")
|
||||
@@ -26,10 +26,8 @@ def format_hex(val):
|
||||
|
||||
with open('baserom.gba', 'rb') as rom:
|
||||
rom.seek(address)
|
||||
for i in range(length):
|
||||
print(repr(chr(read_u8(rom))), end="")
|
||||
# for i in range(length // 2):
|
||||
# print(str(read_u16(rom)) + ", ", end="")
|
||||
for i in range(length // 16):
|
||||
print("\"", end="")
|
||||
for j in range(16):
|
||||
print(chr(read_u8(rom)), end="")
|
||||
print("\",",)
|
||||
# print(chr(read_u8(rom)), end="")
|
||||
# print("\",",)
|
||||
@@ -0,0 +1,4 @@
|
||||
#include "global.h"
|
||||
#include "palettes.h"
|
||||
|
||||
const u8 gUnknown_08C8796C[] = INCBIN_U8("graphics/8C8796C.gbapal");
|
||||
Reference in new issue
Block a user