SMS/GG: PowerOn Z80 SP init - stops some games from crashing/note loading

This commit is contained in:
Asnivor 2018-09-25 09:25:54 +01:00
parent 57fd6051e9
commit b747ac22d7
1 changed files with 5 additions and 0 deletions

View File

@ -206,6 +206,11 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem
Cpu.ReadMemory = ReadMemory;
Cpu.WriteMemory = WriteMemory;
// Z80 SP initialization
// stops a few SMS and GG games from crashing
Cpu.Regs[Cpu.SPl] = 0xF0;
Cpu.Regs[Cpu.SPh] = 0xDF;
}
// Constants