From deb98183b1a99f49e852df8f9f41f6188c0a6fc0 Mon Sep 17 00:00:00 2001 From: bird_egop Date: Wed, 16 Apr 2025 18:32:41 +0300 Subject: [PATCH] more fixes --- X86DisassemblerTests/InstructionTests/OrInstructionTests.cs | 6 +++--- .../InstructionTests/OrRm8R8HandlerTests.cs | 6 +++--- .../InstructionTests/TestInstructionHandlerTests.cs | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/X86DisassemblerTests/InstructionTests/OrInstructionTests.cs b/X86DisassemblerTests/InstructionTests/OrInstructionTests.cs index 0a15f39..25c1c7a 100644 --- a/X86DisassemblerTests/InstructionTests/OrInstructionTests.cs +++ b/X86DisassemblerTests/InstructionTests/OrInstructionTests.cs @@ -38,9 +38,9 @@ public class OrInstructionTests // Check the second operand (AL) var alOperand = instruction.StructuredOperands[1]; - Assert.IsType(alOperand); - var registerOperand2 = (RegisterOperand)alOperand; - Assert.Equal(RegisterIndex.A, registerOperand2.Register); + Assert.IsType(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) } diff --git a/X86DisassemblerTests/InstructionTests/OrRm8R8HandlerTests.cs b/X86DisassemblerTests/InstructionTests/OrRm8R8HandlerTests.cs index 8fa8ae9..3712408 100644 --- a/X86DisassemblerTests/InstructionTests/OrRm8R8HandlerTests.cs +++ b/X86DisassemblerTests/InstructionTests/OrRm8R8HandlerTests.cs @@ -81,9 +81,9 @@ public class OrRm8R8HandlerTests // Check the second operand (CH) var chOperand = instruction.StructuredOperands[1]; - Assert.IsType(chOperand); - var registerOperand2 = (RegisterOperand)chOperand; - Assert.Equal(RegisterIndex.C, registerOperand2.Register); + Assert.IsType(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) } } diff --git a/X86DisassemblerTests/InstructionTests/TestInstructionHandlerTests.cs b/X86DisassemblerTests/InstructionTests/TestInstructionHandlerTests.cs index c241d6b..1324b2d 100644 --- a/X86DisassemblerTests/InstructionTests/TestInstructionHandlerTests.cs +++ b/X86DisassemblerTests/InstructionTests/TestInstructionHandlerTests.cs @@ -80,9 +80,9 @@ public class TestInstructionHandlerTests // Check the second operand (AL) var alOperand = instruction.StructuredOperands[1]; - Assert.IsType(alOperand); - var registerOperand2 = (RegisterOperand)alOperand; - Assert.Equal(RegisterIndex.A, registerOperand2.Register); + Assert.IsType(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) }