From b732d5ea64f9f56ed7c3f82c6085d94238c0d0da Mon Sep 17 00:00:00 2001 From: "Eric P. Nusbaum" Date: Mon, 24 Jun 2024 07:36:24 -0400 Subject: [PATCH] Fix RCR_AX_IMM16_CF_SET --- MBBSEmu.Tests/CPU/RCR_Tests.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/MBBSEmu.Tests/CPU/RCR_Tests.cs b/MBBSEmu.Tests/CPU/RCR_Tests.cs index 01fe2c64..42841c15 100644 --- a/MBBSEmu.Tests/CPU/RCR_Tests.cs +++ b/MBBSEmu.Tests/CPU/RCR_Tests.cs @@ -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)] @@ -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]