CPU: Fixed regression - SP was initialized to the wrong value

This commit is contained in:
Sour 2019-03-08 17:10:03 -05:00
parent e5698ae7c5
commit ae2cec058a

View file

@ -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;