From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:Saturn IP.BIN boot header" |
|---|
| claim | "Conflict to settle: Yabause's Cs2GetIP reads the master SH-2 stack from the big-endian u32 at IP offset 0xE8 and the slave stack from 0xEC (libyaul's ip.sx emits Stack-M at 0xE4 and a reserved word at 0xE8, see the IP.BIN system header struct fact). Yabause substitutes 0x6002000 when the master value is 0 and 0x6001000 for a zero slave value, and maps a value with bit 31 set to 0x06000000 + (value & 0xFFFF) with a comment naming Panzer Dragoon Zwei; these defaults sit in the little-endian #else branch only, the WORDS_BIGENDIAN branch copies the raw values. Which offset the real BIOS uses was not settled." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Saturn IP.BIN boot header" |
|---|
| observed_in | |
|---|
|
|---|
| data | | function | "Cs2GetIP" |
|---|
| trigger | "reading the IP of a disc" |
|---|
| effect | "msh2stack from offset 0xE8, ssh2stack from 0xEC, ipsize 0xE0, first program address 0xF0, size 0xF4" |
|---|
| condition | "first 15 bytes are 'SEGA SEGASATURN'" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "offset reads and default/fix-up rules for the stacks" |
|---|
| repo | "https://github.com/Yabause/yabause" |
|---|
| commit | "7e38821dbac265490f115e163c523a939acda759" |
|---|
| path | "yabause/src/cs2.c" |
|---|
| lines | "4072-4119" |
|---|
|
| type | "source" |
|---|
| detail | "libyaul writes Stack-M, Reserved, Stack-S in this order after IP size" |
|---|
| repo | "https://github.com/yaul-org/libyaul" |
|---|
| commit | "6012f79f237773378c8014e70d8998ad95a38d98" |
|---|
| path | "libyaul/ip/ip.sx" |
|---|
| lines | "25-28" |
|---|
|
|
|---|
| confidence | "low" |
|---|
| related | |
|---|
| key | "Yabause reads the master stack at 0xE8" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T16:40:00.965Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T16:45:20.680Z" |
|---|
| result | "partial" |
|---|
| method | "Read Cs2GetIP (cs2.c 4059-4120) and Cs2GetMasterStackAdress/SlaveStackAdress (4429-4435) at Yabause 7e38821: the Yabause half is exactly as stated (0xE8 master, 0xEC slave, 0 -> 0x6002000 / 0x6001000, bit 31 -> 0x06000000 + (v & 0xFFFF) for both stacks, only in the little-endian #else branch; the getters also return those defaults when cdip is NULL). The libyaul 0xE4 half of the conflict was not read this session, so the conflict itself is unchecked." |
|---|
|
|
|---|