Skip to content

Commit

Permalink
Fix RCR_AX_IMM16_CF_SET
Browse files Browse the repository at this point in the history
  • Loading branch information
enusbaum committed Jun 24, 2024
1 parent bee8408 commit b732d5e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions MBBSEmu.Tests/CPU/RCR_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ public void RCR_AX_IMM16_CF_CLEAR(ushort axValue, byte bitsToRotate, ushort expe
}

[Theory]
[InlineData(0xF, 1, 0x8007, true, false)]
[InlineData(0xF, 2, 0xC003, true, true)]
[InlineData(0xE, 1, 0x8007, false, false)]
[InlineData(0x1FF, 1, 0x80FF, true, false)]
[InlineData(0x1FE, 1, 0x80FF, false, false)]
[InlineData(0xF, 1, 0x8007, true, true)]
[InlineData(0xF, 2, 0xC003, true, false)]
[InlineData(0xE, 1, 0x8007, false, true)]
[InlineData(0x1FF, 1, 0x80FF, true, true)]
[InlineData(0x1FE, 1, 0x80FF, false, true)]
[InlineData(0x3C, 2, 0x400F, false, false)]
[InlineData(0x3E, 2, 0x400F, true, false)]
[InlineData(0xFFFF, 2, 0xFFFF, true, false)]
Expand All @@ -58,6 +58,7 @@ public void RCR_AX_IMM16_CF_SET(ushort axValue, byte bitsToRotate, ushort expect

Assert.Equal(expectedValue, mbbsEmuCpuRegisters.AX);
Assert.Equal(expectedCFValue, mbbsEmuCpuRegisters.CarryFlag);
Assert.Equal(expectedOFValue, mbbsEmuCpuRegisters.OverflowFlag);
}

[Theory]
Expand Down

0 comments on commit b732d5e

Please sign in to comment.