diff --git a/cpu/decoder.cpp b/cpu/decoder.cpp index a84826e..9607fbc 100644 --- a/cpu/decoder.cpp +++ b/cpu/decoder.cpp @@ -139,9 +139,7 @@ void Cpu::executeInstruction() mcycles = 4; } else - { - mcycles = 3; - } + mcycles = 3; } else if((op & 0xE7) == 0x20) // JR cc, e { @@ -154,9 +152,7 @@ void Cpu::executeInstruction() mcycles = 3; } else - { - mcycles = 2; - } + mcycles = 2; } else if((op & 0xE7) == 0xC4) // CALL cc, nn { @@ -168,9 +164,7 @@ void Cpu::executeInstruction() mcycles = 6; } else - { - mcycles = 3; - } + mcycles = 3; } else if((op & 0xCF) == 0x09) // ADD HL, rr { @@ -185,9 +179,7 @@ void Cpu::executeInstruction() mcycles = 5; } else - { - mcycles = 2; - } + mcycles = 2; } else if((op & 0xC7) == 0xC7) // RST { @@ -494,18 +486,14 @@ void Cpu::executeInstruction() break; case 0xE8: // ADD SP, e8 - { - add16(*this, state.SP, state.SP, (s8)readPC8()); - state.zero = false; - mcycles = 4; - } + add16(*this, state.SP, state.SP, (s8)readPC8()); + state.zero = false; + mcycles = 4; break; case 0xF8: // LD HL, SP + e8 - { - add16(*this, state.HL, state.SP, (s32)((s8)readPC8())); - state.zero = false; - mcycles = 3; - } + add16(*this, state.HL, state.SP, (s32)((s8)readPC8())); + state.zero = false; + mcycles = 3; break; default: