mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-19 16:08:02 +03:00
Fixed ModRM handling for 8-bit operands with SIB byte. Updated test to match implementation.
This commit is contained in:
@ -43,10 +43,10 @@ public class OrRm8R8HandlerTests
|
||||
|
||||
// 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.Equal(8, registerOperand.Size); // Validate that it's an 8-bit register (AL)
|
||||
Assert.IsType<Register8Operand>(alOperand);
|
||||
var register8Operand = (Register8Operand)alOperand;
|
||||
Assert.Equal(RegisterIndex8.AL, register8Operand.Register);
|
||||
Assert.Equal(8, register8Operand.Size); // Validate that it's an 8-bit register (AL)
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Reference in New Issue
Block a user