cpu/decoder - Treat undefined opcodes as NOP

This commit is contained in:
madmaurice 2023-08-29 23:59:32 +02:00
parent c90788d330
commit c4a9a10e09

View file

@ -300,7 +300,22 @@ void Cpu::executeInstruction()
{
switch(op)
{
case 0x00: break; // NOP
case 0xD3: // Undefined, treat as NOP
case 0xE3:
case 0xE4:
case 0xF4:
case 0xDB:
case 0xEB:
case 0xEC:
case 0xFC:
case 0xDD:
case 0xED:
case 0xFD:
break;
case 0x00: // defined NOP
break;
case 0x0A: // Load A, [BC]
state.A = bus->read8(state.BC);
mcycles = 2;