mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
SNES: Fixed freeze after reset in some games
Affects Ranma Chounai Gekitou Hen (and possibly others)
This commit is contained in:
parent
08301e122a
commit
7a4a9b5e45
1 changed files with 6 additions and 0 deletions
|
@ -76,6 +76,12 @@ void Spc::Reset()
|
|||
_state.OutputReg[2] = 0;
|
||||
_state.OutputReg[3] = 0;
|
||||
|
||||
//Reset the values the SPC can read from the port, too (not doing this freezes Ranma Chounai Gekitou Hen on reset)
|
||||
_state.CpuRegs[0] = 0;
|
||||
_state.CpuRegs[1] = 0;
|
||||
_state.CpuRegs[2] = 0;
|
||||
_state.CpuRegs[3] = 0;
|
||||
|
||||
_state.RomEnabled = true;
|
||||
_state.Cycle = 0;
|
||||
_state.PC = ReadWord(Spc::ResetVector);
|
||||
|
|
Loading…
Add table
Reference in a new issue