mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-19 16:08:02 +03:00
fixes
This commit is contained in:
@ -24,7 +24,7 @@ public class Int3InstructionTests
|
||||
|
||||
// Assert
|
||||
Assert.NotNull(instruction);
|
||||
Assert.Equal(InstructionType.Int, instruction.Type);
|
||||
Assert.Equal(InstructionType.Int3, instruction.Type);
|
||||
|
||||
// Check that we have no operands
|
||||
Assert.Empty(instruction.StructuredOperands);
|
||||
|
@ -154,9 +154,9 @@ public class StringInstructionHandlerTests
|
||||
|
||||
// Check the second operand (AL)
|
||||
var alOperand = instruction.StructuredOperands[1];
|
||||
Assert.IsType<RegisterOperand>(alOperand);
|
||||
var registerOperand = (RegisterOperand)alOperand;
|
||||
Assert.Equal(RegisterIndex.A, registerOperand.Register);
|
||||
Assert.IsType<Register8Operand>(alOperand);
|
||||
var registerOperand = (Register8Operand)alOperand;
|
||||
Assert.Equal(RegisterIndex8.AL, registerOperand.Register);
|
||||
Assert.Equal(8, registerOperand.Size); // Validate that it's an 8-bit register (AL)
|
||||
}
|
||||
|
||||
@ -223,9 +223,9 @@ public class StringInstructionHandlerTests
|
||||
|
||||
// Check the first operand (AL)
|
||||
var alOperand = instruction.StructuredOperands[0];
|
||||
Assert.IsType<RegisterOperand>(alOperand);
|
||||
var registerOperand = (RegisterOperand)alOperand;
|
||||
Assert.Equal(RegisterIndex.A, registerOperand.Register);
|
||||
Assert.IsType<Register8Operand>(alOperand);
|
||||
var registerOperand = (Register8Operand)alOperand;
|
||||
Assert.Equal(RegisterIndex8.AL, registerOperand.Register);
|
||||
Assert.Equal(8, registerOperand.Size); // Validate that it's an 8-bit register (AL)
|
||||
|
||||
// Check the second operand (memory operand)
|
||||
|
Reference in New Issue
Block a user