GB: Make invalid op codes freeze cpu

This commit is contained in:
Sour 2020-06-20 21:37:26 -04:00
parent d0ec40be37
commit 084bb70402

View file

@ -709,7 +709,11 @@ void GbCpu::NOP()
void GbCpu::InvalidOp()
{
STOP();
//Disable all IRQs
_memoryManager->Write(0xFFFF, 0);
//Halt CPU to lock it up permanently
_state.Halted = true;
}
void GbCpu::STOP()