diff --git a/cpu/decoder.cpp b/cpu/decoder.cpp index 0a599e0..fa318f4 100644 --- a/cpu/decoder.cpp +++ b/cpu/decoder.cpp @@ -263,6 +263,7 @@ void Cpu::executeInstruction() break; case 0x30: // SWAP data = ((data >> 4) & 0x0F) | ((data << 4) & 0xF0); + state.carry = false; break; case 0x38: // SRL state.carry = (data & 0x01);