SMS: Remove unnecessary SP hack.

This commit is contained in:
alyosha-tas 2018-06-13 08:50:44 -04:00
parent a992e988b2
commit ac95d9eb72
1 changed files with 0 additions and 9 deletions

View File

@ -206,15 +206,6 @@ namespace BizHawk.Emulation.Cores.Sega.MasterSystem
Cpu.ReadMemory = ReadMemory;
Cpu.WriteMemory = WriteMemory;
// This particular game relies on an uninitialized Stack pointer to not be 0 or 0xFFFF
// It does not appear from documentation that the stack pointer is initialized to anything
// so just give it a value that doesn't break the game.
if (rom.HashSHA1() == "CBDBAAEB62A8483D9D5A8757B0F19233DFB9B416")
{
Cpu.Regs[Cpu.SPl] = 0x4;
Cpu.Regs[Cpu.SPh] = 0xFF;
}
}
// Constants