Decompollaborate / spimdisasm

MIPS disassembler
https://pypi.org/project/spimdisasm/
MIT License
42 stars 13 forks source link

Allow .ovl entries in file splits #145

Closed cadmic closed 10 months ago

cadmic commented 10 months ago

Overlay file splits need some way to specify the end of the rodata section, since the reloc section is between rodata and bss. We could add a dummy section there instead, but it's nice to use .ovl especially when autogenerating these from a mapfile.

Example:

offset,vram,.text
0,80803D40,z_file_copy_erase
3070,80806DB0,z_file_nameset_PAL
7210,8080AF50,z_file_choose

offset,vram,.data
DE70,80811BB0,z_file_nameset_data
E740,80812480,z_file_copy_erase
E780,808124C0,z_file_nameset_PAL
E9E0,80812720,z_file_choose

offset,vram,.rodata
ED20,80812A60,z_file_copy_erase
ED50,80812A90,z_file_nameset_PAL
EFB0,80812CF0,z_file_choose

offset,vram,.ovl
F2E0,80813020,ovl_file_choose_reloc

offset,vram,.bss
FAC0,80813800,z_file_copy_erase
FAD0,80813810,z_file_nameset_PAL
FAE0,80813820,.end