From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:PS-X EXE" |
|---|
| claim | "PCSX-Redux's PS-X EXE loader reads the magic as the 64-bit value 0x45584520582D5350, pc at 0x10, load address at 0x18, size at 0x1C, initial sp at 0x30 (used when non-zero), a region byte at 0x71, and copies size bytes from file offset 0x800 to the load address." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:PS-X EXE" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "PS-X EXE header (PCSX-Redux loader)" |
|---|
| size | 2048 |
|---|
| endianness | "little" |
|---|
| fields | | offset | 0 |
|---|
| size | 8 |
|---|
| name | "id" |
|---|
| type | "char[8]" |
|---|
| notes | "PS-X EXE" |
|---|
|
| offset | 16 |
|---|
| size | 4 |
|---|
| name | "pc0" |
|---|
| type | "u32" |
|---|
|
| offset | 20 |
|---|
| size | 4 |
|---|
| name | "gp0" |
|---|
| type | "u32" |
|---|
| notes | "skipped by this loader" |
|---|
|
| offset | 24 |
|---|
| size | 4 |
|---|
| name | "t_addr" |
|---|
| type | "u32" |
|---|
|
| offset | 28 |
|---|
| size | 4 |
|---|
| name | "t_size" |
|---|
| type | "u32" |
|---|
|
| offset | 48 |
|---|
| size | 4 |
|---|
| name | "s_addr" |
|---|
| type | "u32" |
|---|
| notes | "used as sp when non-zero" |
|---|
|
| offset | 113 |
|---|
| size | 1 |
|---|
| name | "region_byte" |
|---|
| type | "u8" |
|---|
| notes | "'A' or 'J' selects NTSC, 'E' selects PAL" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "loadPSEXE: reads in this order, seeks 0x71 for the region byte, then 2048 for the data." |
|---|
| repo | "https://github.com/grumpycoders/pcsx-redux" |
|---|
| commit | "e58d0892c8e824bd7d5da847290f6811331215e5" |
|---|
| path | "src/supportpsx/binloader.cc" |
|---|
| lines | "121-155" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "PCSX-Redux loader view" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T23:16:10.406Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T07:12:55.384Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read binloader.cc loadPSEXE at the cited commit: 8-byte magic 0x45584520582d5350, reads sequence gives pc 0x10, (gp skipped 0x14), addr 0x18, size 0x1C, sp 0x30 used when non-zero, seek 0x71 region byte (A/J NTSC, E PAL), then seek 2048 and copy size bytes." |
|---|
|
|
|---|