improve data disasm, si.c rodata

This commit is contained in:
Ethan Roseman 2020-11-29 14:37:53 -05:00
parent 0a38d165d2
commit b7e649c1e1
4 changed files with 109 additions and 2 deletions

View File

@ -155,6 +155,11 @@ $(BUILD_DIR)/data/%.data.o: asm/data/%.data.s
@mkdir -p $(shell dirname $@)
$(AS) $(ASFLAGS) -o $@ $<
# Rodata
$(BUILD_DIR)/rodata/%.rodata.o: asm/data/%.rodata.s
@mkdir -p $(shell dirname $@)
$(AS) $(ASFLAGS) -o $@ $<
# Images
$(BUILD_DIR)/%.png.o: $(BUILD_DIR)/%.png
$(LD) -r -b binary -o $@ $<

102
asm/data/si.rodata.s Normal file
View File

@ -0,0 +1,102 @@
.include "macro.inc"
.section .rodata
glabel D_802D9D98
.ascii "ADDR [%08X]\0"
glabel D_802D9DA8
.ascii "FLOAT [%4.2f]\0\0\0\0"
glabel D_802D9DBC
.ascii "UF(%3d) [%d]\0\0\0"
glabel D_802D9DCC
.ascii "UW(%3d) [%08X]\0"
glabel D_802D9DDC
.ascii "UW(%3d) [%4.2f]\0\0\0\0"
glabel D_802D9DF0
.ascii "UW(%3d) [%d]\0\0\0"
glabel D_802D9E00
.ascii "GSW(%3d) [%08X]\0"
glabel D_802D9E10
.ascii "GSW(%3d) [%4.2f]\0\0\0\0"
glabel D_802D9E24
.ascii "GSW(%3d) [%d]\0\0\0"
glabel D_802D9E34
.ascii "LSW(%3d) [%08X]\0"
glabel D_802D9E44
.ascii "LSW(%3d) [%4.2f]\0\0\0"
glabel D_802D9E58
.ascii "LSW(%3d) [%d]\0\0\0"
glabel D_802D9E68
.ascii "GSWF(%3d)[%d]\0\0\0"
glabel D_802D9E78
.ascii "LSWF(%3d)[%d]\0\0\0"
glabel D_802D9E88
.ascii "GF(%3d) [%d]\0\0\0"
glabel D_802D9E98
.ascii "LF(%3d) [%d]\0\0\0"
glabel D_802D9EA8
.ascii "GW(%3d) [%08X]\0"
glabel D_802D9EB8
.ascii "GW(%3d) [%4.2f]\0\0\0\0"
glabel D_802D9ECC
.ascii "GW(%3d) [%d]\0\0\0"
glabel D_802D9EDC
.ascii "LW(%3d) [%08X]\0"
glabel D_802D9EEC
.ascii "LW(%3d) [%4.2f]\0\0\0\0"
glabel D_802D9F00
.ascii "LW(%3d) [%d]\0\0\0"
glabel D_802D9F10
.ascii " [%d]\0\0\0"
glabel D_802D9F20
.word 0x802C743C, 0x802C7A54, 0x802C747C, 0x802C748C, 0x802C749C, 0x802C74AC, 0x802C74BC, 0x802C74CC, 0x802C74DC, 0x802C74EC, 0x802C74FC, 0x802C750C, 0x802C751C, 0x802C752C, 0x802C753C, 0x802C754C, 0x802C755C, 0x802C756C, 0x802C757C, 0x802C758C, 0x802C759C, 0x802C75AC, 0x802C75BC, 0x802C75CC, 0x802C75DC, 0x802C75FC, 0x802C75EC, 0x802C760C, 0x802C761C, 0x802C763C, 0x802C765C, 0x802C766C, 0x802C764C, 0x802C767C, 0x802C762C, 0x802C768C, 0x802C769C, 0x802C76AC, 0x802C76BC, 0x802C76CC, 0x802C76DC, 0x802C76EC, 0x802C76FC, 0x802C770C, 0x802C771C, 0x802C772C, 0x802C773C, 0x802C774C, 0x802C775C, 0x802C776C, 0x802C777C, 0x802C778C, 0x802C779C, 0x802C77AC, 0x802C77BC, 0x802C77CC, 0x802C77DC, 0x802C77EC, 0x802C77FC, 0x802C780C, 0x802C781C, 0x802C782C, 0x802C783C, 0x802C785C, 0x802C786C, 0x802C787C, 0x802C788C, 0x802C789C, 0x802C78AC, 0x802C78BC, 0x802C78CC, 0x802C78DC, 0x802C78EC, 0x802C784C, 0x802C792C, 0x802C78FC, 0x802C790C, 0x802C791C, 0x802C793C, 0x802C794C, 0x802C795C, 0x802C796C, 0x802C797C, 0x802C798C, 0x802C799C, 0x802C79AC, 0x802C79BC, 0x802C79CC, 0x802C79DC, 0x802C79EC, 0x802C79FC, 0x802C7A0C, 0x802C7A1C, 0x802C7A2C, 0x802C7A3C, 0x00000000
glabel D_802DA0A0
.word 0x802C8944, 0x802C890C, 0x802C890C, 0x802C890C, 0x802C890C, 0x802C890C, 0x802C890C, 0x802C890C, 0x802C890C, 0x802C8960, 0x802C8960, 0x802C8960, 0x802C8960, 0x802C8960, 0x802C8960, 0x802C8960, 0x802C8960, 0x802C8968, 0x802C894C, 0x00000000
glabel D_802DA0F0
.word 0x802C89C0, 0x802C8988, 0x802C8988, 0x802C8988, 0x802C8988, 0x802C8988, 0x802C8988, 0x802C8988, 0x802C8988, 0x802C89DC, 0x802C89DC, 0x802C89DC, 0x802C89DC, 0x802C89DC, 0x802C89DC, 0x802C89DC, 0x802C89DC, 0x802C8988, 0x802C89C8, 0x00000000
glabel D_802DA140
.word 0x802C8AB0, 0x802C8A74, 0x802C8A74, 0x802C8A74, 0x802C8A74, 0x802C8A74, 0x802C8A74, 0x802C8A74, 0x802C8A74, 0x802C8A74, 0x802C8A74, 0x802C8A74, 0x802C8A74, 0x802C8A74, 0x802C8A74, 0x802C8A74, 0x802C8A74, 0x802C8A74, 0x802C8A74, 0x802C8AB8, 0x802C8A74, 0x802C8AD4, 0x802C8AD4, 0x802C8AD4, 0x802C8AD4, 0x802C8AD4, 0x802C8AD4, 0x802C8AD4, 0x802C8AD4, 0x802C8AD4, 0x802C8A74, 0x802C8AD4, 0x802C8AD4, 0x802C8A74, 0x802C8AC0, 0x00000000
glabel D_802DA1D0
.word 0xBFE99999, 0x9999999A, 0x00000000, 0x00000000
glabel D_802DA1E0
.word 0x40668000, 0x00000000, 0x00000000, 0x00000000
glabel D_802DA1F0
.word 0x802D0668, 0x802D0674, 0x802D0680, 0x802D068C, 0x802D0698, 0x802D069C
glabel D_802DA208
.word 0x802D25A8, 0x802D25DC, 0x802D25D4, 0x802D25D4, 0x802D2604, 0x802D2760, 0x802D2664, 0x802D26C4, 0x802D2704, 0x802D283C, 0x802D283C, 0x802D283C, 0x802D283C, 0x802D27C0
glabel D_802DA240
.word 0x802D40D4, 0x802D40E0, 0x802D4148, 0x802D40EC, 0x802D40F8, 0x802D4104
glabel D_802DA258
.word 0x802D8560, 0x802D858C, 0x802D9688, 0x802D9688, 0x802D9688, 0x802D9688, 0x802D85A4, 0x802D85C0, 0x802D85E0, 0x802D85FC, 0x802D861C, 0x802D8638, 0x802D8654, 0x802D8674, 0x802D8698, 0x802D86B4, 0x802D86E0, 0x802D870C, 0x802D8728, 0x802D8750, 0x802D8770, 0x802D878C, 0x802D87A8, 0x802D87C4, 0x802D87E0, 0x802D8808, 0x802D8824, 0x802D8840, 0x802D8864, 0x802D8880, 0x802D88A8, 0x802D88E8, 0x802D8A68, 0x802D8914, 0x802D893C, 0x802D8968, 0x802D8984, 0x802D89A4, 0x802D89C0, 0x802D89DC, 0x802D89FC, 0x802D8A24, 0x802D9688, 0x802D8A4C, 0x802D8A8C, 0x802D8AA8, 0x802D8AC8, 0x802D8AE8, 0x802D8B20, 0x802D8B3C, 0x802D8B58, 0x802D8B74, 0x802D8B94, 0x802D8BB8, 0x802D8BDC, 0x802D8BFC, 0x802D8C30, 0x802D8C50, 0x802D8C70, 0x802D8C9C, 0x802D8CC0, 0x802D8CF4, 0x802D8D34, 0x802D8D54, 0x802D8D70, 0x802D8D8C, 0x802D8DA8, 0x802D8DC8, 0x802D8DE8, 0x802D8E08, 0x802D8E1C, 0x802D8E30, 0x802D8E50, 0x802D8E70, 0x802D8E90, 0x802D8EB0, 0x802D8ED0, 0x802D8F00, 0x802D8F44, 0x802D8F60, 0x802D9688, 0x802D8FBC, 0x802D8F80, 0x802D8FA0, 0x802D9688, 0x802D94A0, 0x802D8FDC, 0x802D8FFC, 0x802D901C, 0x802D903C, 0x802D906C, 0x802D908C, 0x802D90AC, 0x802D90CC, 0x802D90EC, 0x802D911C, 0x802D913C, 0x802D915C, 0x802D917C, 0x802D919C, 0x802D91D4, 0x802D9204, 0x802D9224, 0x802D9244, 0x802D9264, 0x802D9284, 0x802D9688, 0x802D92A4, 0x802D92C4, 0x802D92E4, 0x802D9304, 0x802D932C, 0x802D934C, 0x802D9388, 0x802D93A8, 0x802D93D4, 0x802D93FC, 0x802D9430, 0x802D9688, 0x802D9450, 0x802D9480, 0x802D94BC, 0x802D94DC, 0x802D94FC, 0x802D951C, 0x802D953C, 0x802D955C, 0x802D957C, 0x802D959C, 0x802D95BC, 0x802D95DC, 0x802D95FC, 0x802D961C, 0x802D9648, 0x802D9668, 0x00000000, 0x00000000, 0x00000000

@ -1 +1 @@
Subproject commit 19f24f535d41dd776fe33e667da323be3cfbec2c
Subproject commit a660fdb6b00eaad065bde69cb7b4243143ddcf05

View File

@ -270,7 +270,7 @@ segments:
- [0xFE650, .data, code_e79b0_len_1920]
- [0xFE660, data, si]
- [0xFE730, .rodata, code_e79b0_len_1920]
- [0xFE748, bin] # rodata chunk for above overlay; here to avoid the 0x10 alignment
- [0xFE748, rodata, si]
- type: code
start: 0xFEE30
vram: 0x802DBD40