cpu/decoder - Fix decoding of JR e instruction

This commit is contained in:
madmaurice 2023-08-29 19:42:42 +02:00
parent 8383256d7e
commit 40b5d1d370

View file

@ -288,10 +288,8 @@ void Cpu::executeInstruction()
state.PC = state.HL; state.PC = state.HL;
break; break;
case 0x18: // JR e case 0x18: // JR e
{ state.PC += (s8)readPC8();
s8 e = readPC8(); break;
state.PC += e;
}
case 0xCD: // CALL nn case 0xCD: // CALL nn
doCall(readPC16()); mcycles = 6; break; doCall(readPC16()); mcycles = 6; break;
case 0xC9: // RET case 0xC9: // RET