Skip to content

PSP overlay header raw notes

Luciano Ciccariello edited this page May 3, 2024 · 1 revision

PSP overlay header

I am not sure if this header is specific of Castlevania Dracula X Chronicles or is it generated by the MetroWerk compiler. The magic code MWo3 suggests something along the lines of MetroWerk overlay v3, but it is all speculation.

Each overlay header is 0x80 bytes long. The first Overlay is dra.bin, identified as Overlay ID 0x01.

4D57 6F33 3900 0000 0076 2E09 144C 0000 | MWo39...........
2C12 0000 0005 0000 80D4 2E09 80D4 2E09 | ................
7474 5F30 3030 2E62 696E 0000 0000 0000 | tt_000.bin......
0000 0000 0000 0000 0000 0000 0000 0000 | ................
0000 0000 0000 0000 0000 0000 0000 0000 | ................
0000 0000 0000 0000 0000 0000 0000 0000 | ................
0000 0000 0000 0000 0000 0000 0000 0000 | ................
0000 0000 0000 0000 0000 0000 0000 0000 | ................
Offset Name Example
0x00 Magic code 0x336F574D
0x04 Overlay ID 0x39
0x08 Load address 0x092E7600
0x0C .text section size? 0x4C14
0x10 .data section size? 0x122C
0x14 .bss section size? 0x500
0x18 .bss section begin? 0x092ED480
0x1C .bss section begin? 0x092ED480
0x20 Overlay name tt_000.bin