0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-05-19 11:51:17 +03:00

more fixes

This commit is contained in:
bird_egop 2025-04-16 18:32:41 +03:00
parent 6719cff2af
commit deb98183b1
3 changed files with 9 additions and 9 deletions

View File

@ -38,9 +38,9 @@ public class OrInstructionTests
// Check the second operand (AL) // Check the second operand (AL)
var alOperand = instruction.StructuredOperands[1]; var alOperand = instruction.StructuredOperands[1];
Assert.IsType<RegisterOperand>(alOperand); Assert.IsType<Register8Operand>(alOperand);
var registerOperand2 = (RegisterOperand)alOperand; var registerOperand2 = (Register8Operand)alOperand;
Assert.Equal(RegisterIndex.A, registerOperand2.Register); Assert.Equal(RegisterIndex8.AL, registerOperand2.Register);
Assert.Equal(8, registerOperand2.Size); // Validate that it's an 8-bit register (AL) Assert.Equal(8, registerOperand2.Size); // Validate that it's an 8-bit register (AL)
} }

View File

@ -81,9 +81,9 @@ public class OrRm8R8HandlerTests
// Check the second operand (CH) // Check the second operand (CH)
var chOperand = instruction.StructuredOperands[1]; var chOperand = instruction.StructuredOperands[1];
Assert.IsType<RegisterOperand>(chOperand); Assert.IsType<Register8Operand>(chOperand);
var registerOperand2 = (RegisterOperand)chOperand; var registerOperand2 = (Register8Operand)chOperand;
Assert.Equal(RegisterIndex.C, registerOperand2.Register); Assert.Equal(RegisterIndex8.CH, registerOperand2.Register);
Assert.Equal(8, registerOperand2.Size); // Validate that it's an 8-bit register (CH) Assert.Equal(8, registerOperand2.Size); // Validate that it's an 8-bit register (CH)
} }
} }

View File

@ -80,9 +80,9 @@ public class TestInstructionHandlerTests
// Check the second operand (AL) // Check the second operand (AL)
var alOperand = instruction.StructuredOperands[1]; var alOperand = instruction.StructuredOperands[1];
Assert.IsType<RegisterOperand>(alOperand); Assert.IsType<Register8Operand>(alOperand);
var registerOperand2 = (RegisterOperand)alOperand; var registerOperand2 = (Register8Operand)alOperand;
Assert.Equal(RegisterIndex.A, registerOperand2.Register); Assert.Equal(RegisterIndex8.AL, registerOperand2.Register);
Assert.Equal(8, registerOperand2.Size); // Validate that it's an 8-bit register (AL) Assert.Equal(8, registerOperand2.Size); // Validate that it's an 8-bit register (AL)
} }