cpu/decoder - Improve code formatting
This commit is contained in:
parent
40b5d1d370
commit
8160037ffc
1 changed files with 12 additions and 9 deletions
|
@ -276,13 +276,9 @@ void Cpu::executeInstruction()
|
||||||
state.subtract = true;
|
state.subtract = true;
|
||||||
state.halfcarry = true;
|
state.halfcarry = true;
|
||||||
|
|
||||||
|
|
||||||
case 0xC3: // JP nn
|
case 0xC3: // JP nn
|
||||||
{
|
state.PC = readPC16();
|
||||||
u16 nn = readPC16();
|
|
||||||
state.PC = nn;
|
|
||||||
mcycles = 4;
|
mcycles = 4;
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 0xE9: // JP HL
|
case 0xE9: // JP HL
|
||||||
state.PC = state.HL;
|
state.PC = state.HL;
|
||||||
|
@ -291,11 +287,18 @@ void Cpu::executeInstruction()
|
||||||
state.PC += (s8)readPC8();
|
state.PC += (s8)readPC8();
|
||||||
break;
|
break;
|
||||||
case 0xCD: // CALL nn
|
case 0xCD: // CALL nn
|
||||||
doCall(readPC16()); mcycles = 6; break;
|
doCall(readPC16());
|
||||||
|
mcycles = 6;
|
||||||
|
break;
|
||||||
case 0xC9: // RET
|
case 0xC9: // RET
|
||||||
doRet(); mcycles = 4; break;
|
doRet();
|
||||||
|
mcycles = 4;
|
||||||
|
break;
|
||||||
case 0xD9: // RETI
|
case 0xD9: // RETI
|
||||||
doRet(); state.IME = IME_ON; mcycles = 4; break;
|
doRet();
|
||||||
|
state.IME = IME_ON;
|
||||||
|
mcycles = 4;
|
||||||
|
break;
|
||||||
|
|
||||||
case 0xF3: // DI
|
case 0xF3: // DI
|
||||||
state.IME = IME_OFF;
|
state.IME = IME_OFF;
|
||||||
|
|
Loading…
Reference in a new issue