diff --git a/cpu/decoder.cpp b/cpu/decoder.cpp index fe54a2e..a34dcdd 100644 --- a/cpu/decoder.cpp +++ b/cpu/decoder.cpp @@ -119,6 +119,16 @@ void Cpu::executeInstruction() break; } } + else if((op & 0xCF) == 0x03) // INC rr + { + state.reg16((op >> 4) & 0x3) += 1; + mcycles = 2; + } + else if((op & 0xCF) == 0x0B) // INC rr + { + state.reg16((op >> 4) & 0x3) -= 1; + mcycles = 2; + } else if((op & 0xE7) == 0xC2) // JP cc, nn: { u16 nn = readPC16();