cpu/decoder - Reset carry flag for PREFIX SWAP instruction
This commit is contained in:
parent
b6f0f4416f
commit
28bc389644
1 changed files with 1 additions and 0 deletions
|
@ -263,6 +263,7 @@ void Cpu::executeInstruction()
|
||||||
break;
|
break;
|
||||||
case 0x30: // SWAP
|
case 0x30: // SWAP
|
||||||
data = ((data >> 4) & 0x0F) | ((data << 4) & 0xF0);
|
data = ((data >> 4) & 0x0F) | ((data << 4) & 0xF0);
|
||||||
|
state.carry = false;
|
||||||
break;
|
break;
|
||||||
case 0x38: // SRL
|
case 0x38: // SRL
|
||||||
state.carry = (data & 0x01);
|
state.carry = (data & 0x01);
|
||||||
|
|
Loading…
Reference in a new issue