From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:Sega 32X ROM header" |
|---|
| claim | "PicoDrive's BIOS-less 32X start reads these ROM fields: u32 at 0x3D4 (initial-data-load source, top nibble masked off and 0x2000000 added), 0x3D8 (destination, masked and 0x6000000 added), 0x3DC (size in bytes, copied in 4-byte units), 0x3E0 (master SH-2 start address, jumped to through a stub that loads it via 0x220003E0), 0x3E4 (slave start address, via 0x220003E4), 0x3E8 (master VBR), 0x3EC (slave VBR); the 16-bit word at 0x18E (Mega Drive header checksum) is copied to 32X register 0x28. The initial data load and master VBR are only applied for a cartridge (Pico.m.ncart_in false); the slave VBR is set whenever no slave BIOS is present. Values are read big-endian (CPU_BE2); the 0x18E word is read raw. Not covered: the injected master/slave stubs also contain a cd_start path for Sega CD 32X that takes the entry and VBRs from the data at 0x24000018 (master VBR +0x10, entry +8; slave VBR +0x14, entry +0x0C), not from these ROM fields." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Sega 32X ROM header" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "Header32X" |
|---|
| size_min | "0x3F0" |
|---|
| endianness | "big" |
|---|
| fields | | offset | "0x3D4" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "idl_source" |
|---|
|
| offset | "0x3D8" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "idl_destination" |
|---|
|
| offset | "0x3DC" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "idl_size" |
|---|
|
| offset | "0x3E0" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "master_sh2_start" |
|---|
|
| offset | "0x3E4" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "slave_sh2_start" |
|---|
|
| offset | "0x3E8" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "master_sh2_vbr" |
|---|
|
| offset | "0x3EC" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "slave_sh2_vbr" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "p32x_reset_sh2s(): idl_src/dst/size, vbr and 0x18e reads; slave vbr at 0x3ec" |
|---|
| repo | "https://github.com/irixxxx/picodrive" |
|---|
| commit | "63fa85c41821b395f4d06cb9b751570c6b17a331" |
|---|
| path | "pico/32x/32x.c" |
|---|
| lines | "165-209" |
|---|
|
| type | "source" |
|---|
| detail | "master and slave stub code containing the 0x220003E0 / 0x220003E4 start pointers" |
|---|
| repo | "https://github.com/irixxxx/picodrive" |
|---|
| commit | "63fa85c41821b395f4d06cb9b751570c6b17a331" |
|---|
| path | "pico/32x/memory.c" |
|---|
| lines | "2132, 2189" |
|---|
|
|
|---|
| confidence | "medium" |
|---|
| related | |
|---|
| key | "32X header fields at 0x3D4" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T16:40:01.572Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T17:46:44.773Z" |
|---|
| summary | "Scope: the stub code in memory.c also has a cd_start path (Sega CD 32X) that takes entry and VBRs from the data at 0x24000018 instead of these ROM fields; the fact described only the cartridge path…" |
|---|
| changed | |
|---|
|
|
|---|