cpu/decoder - Fix decoding of JR e instruction
This commit is contained in:
parent
8383256d7e
commit
40b5d1d370
1 changed files with 2 additions and 4 deletions
|
@ -288,10 +288,8 @@ void Cpu::executeInstruction()
|
|||
state.PC = state.HL;
|
||||
break;
|
||||
case 0x18: // JR e
|
||||
{
|
||||
s8 e = readPC8();
|
||||
state.PC += e;
|
||||
}
|
||||
state.PC += (s8)readPC8();
|
||||
break;
|
||||
case 0xCD: // CALL nn
|
||||
doCall(readPC16()); mcycles = 6; break;
|
||||
case 0xC9: // RET
|
||||
|
|
Loading…
Reference in a new issue