mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-05-18 19:31:17 +03:00
more fixes
This commit is contained in:
parent
6719cff2af
commit
deb98183b1
@ -38,9 +38,9 @@ public class OrInstructionTests
|
||||
|
||||
// Check the second operand (AL)
|
||||
var alOperand = instruction.StructuredOperands[1];
|
||||
Assert.IsType<RegisterOperand>(alOperand);
|
||||
var registerOperand2 = (RegisterOperand)alOperand;
|
||||
Assert.Equal(RegisterIndex.A, registerOperand2.Register);
|
||||
Assert.IsType<Register8Operand>(alOperand);
|
||||
var registerOperand2 = (Register8Operand)alOperand;
|
||||
Assert.Equal(RegisterIndex8.AL, registerOperand2.Register);
|
||||
Assert.Equal(8, registerOperand2.Size); // Validate that it's an 8-bit register (AL)
|
||||
}
|
||||
|
||||
|
@ -81,9 +81,9 @@ public class OrRm8R8HandlerTests
|
||||
|
||||
// Check the second operand (CH)
|
||||
var chOperand = instruction.StructuredOperands[1];
|
||||
Assert.IsType<RegisterOperand>(chOperand);
|
||||
var registerOperand2 = (RegisterOperand)chOperand;
|
||||
Assert.Equal(RegisterIndex.C, registerOperand2.Register);
|
||||
Assert.IsType<Register8Operand>(chOperand);
|
||||
var registerOperand2 = (Register8Operand)chOperand;
|
||||
Assert.Equal(RegisterIndex8.CH, registerOperand2.Register);
|
||||
Assert.Equal(8, registerOperand2.Size); // Validate that it's an 8-bit register (CH)
|
||||
}
|
||||
}
|
||||
|
@ -80,9 +80,9 @@ public class TestInstructionHandlerTests
|
||||
|
||||
// Check the second operand (AL)
|
||||
var alOperand = instruction.StructuredOperands[1];
|
||||
Assert.IsType<RegisterOperand>(alOperand);
|
||||
var registerOperand2 = (RegisterOperand)alOperand;
|
||||
Assert.Equal(RegisterIndex.A, registerOperand2.Register);
|
||||
Assert.IsType<Register8Operand>(alOperand);
|
||||
var registerOperand2 = (Register8Operand)alOperand;
|
||||
Assert.Equal(RegisterIndex8.AL, registerOperand2.Register);
|
||||
Assert.Equal(8, registerOperand2.Size); // Validate that it's an 8-bit register (AL)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user