Skip to content
Permalink
Browse files

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

…ding
  • Loading branch information...
Asnivor committed Sep 25, 2018
1 parent 57fd605 commit b747ac22d79a49d165fcaae7e611a3d3695a34a8
Showing with 5 additions and 0 deletions.
  1. +5 −0 BizHawk.Emulation.Cores/Consoles/Sega/SMS/SMS.cs
@@ -206,6 +206,11 @@ public SMS(CoreComm comm, GameInfo game, byte[] rom, object settings, object syn

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

0 comments on commit b747ac2

Please sign in to comment.
You can’t perform that action at this time.