cpu/decoder - Reset carry flag for PREFIX SWAP instruction

This commit is contained in:
madmaurice 2023-08-29 23:06:28 +02:00
parent b6f0f4416f
commit 28bc389644

View file

@ -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);