From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:Mega Drive ROM image" |
|---|
| claim | "Genesis Plus GX decides a file has a 512-byte copier header when 'SEGA' is not at 0x100 and the size is a multiple of 512 with an odd count of 512-byte units; it drops 512 bytes and, for Mega Drive, deinterleaves each 0x4000 block (the second half 0x2000-0x3FFF supplies the even bytes, the first half the odd bytes of the output)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Mega Drive ROM image" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "loading a .smd style file" |
|---|
| effect | "out[2i]=block[0x2000+i], out[2i+1]=block[i] for i<0x2000, per 0x4000 block after the 512-byte header" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "deinterleave_block() and the 'auto-detect 512 byte extra header' block" |
|---|
| repo | "ekeeke/Genesis-Plus-GX" |
|---|
| commit | "49c584764893b0505ac7f768a754f97330fa4392" |
|---|
| path | "core/loadrom.c" |
|---|
| lines | "216-232, 668-686" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Copier header and SMD deinterleave" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T00:08:07.719Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T04:13:45.497Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read loadrom.c at the cited commit: the 512-byte header test (memcmp SEGA at 0x100, (size/512)&1, size%512==0), memmove, and deinterleave_block per 0x4000 block for system_hw MD; header removal also applies to non-MD cartridges, deinterleave only to MD." |
|---|
|
|
|---|