CPU: Fixed regression - SP was initialized to the wrong value
This commit is contained in:
parent
e5698ae7c5
commit
ae2cec058a
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ Cpu::Cpu(Console *console)
|
|||
_state = {};
|
||||
_state.PC = ReadDataWord(Cpu::ResetVector);
|
||||
_state.SP = 0x1FF;
|
||||
_state.SP = ProcFlags::IrqDisable;
|
||||
_state.PS = ProcFlags::IrqDisable;
|
||||
_state.EmulationMode = true;
|
||||
_nmiFlag = false;
|
||||
_prevNmiFlag = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue