0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-20 08:18:36 +03:00

move handlers, remove bases

This commit is contained in:
bird_egop
2025-04-12 23:03:07 +03:00
parent acccf5169a
commit bb695cf3bb
30 changed files with 74 additions and 482 deletions

View File

@ -1,11 +1,9 @@
using X86Disassembler.X86.Handlers.Group1;
namespace X86Disassembler.X86.Handlers.Xor;
/// <summary>
/// Handler for XOR r/m32, imm32 instruction (0x81 /6)
/// </summary>
public class XorImmWithRm32Handler : Group1BaseHandler
public class XorImmWithRm32Handler : InstructionHandler
{
/// <summary>
/// Initializes a new instance of the XorImmWithRm32Handler class
@ -67,7 +65,7 @@ public class XorImmWithRm32Handler : Group1BaseHandler
byte rm = (byte)(modRM & 0x07);
// Decode the destination operand
string destOperand = _modRMDecoder.DecodeModRM(mod, rm, false);
string destOperand = ModRMDecoder.DecodeModRM(mod, rm, false);
// Read the immediate value
if (position + 3 >= Length)

View File

@ -1,11 +1,9 @@
using X86Disassembler.X86.Handlers.Group1;
namespace X86Disassembler.X86.Handlers.Xor;
/// <summary>
/// Handler for XOR r/m32, imm8 (sign-extended) instruction (0x83 /6)
/// </summary>
public class XorImmWithRm32SignExtendedHandler : Group1BaseHandler
public class XorImmWithRm32SignExtendedHandler : InstructionHandler
{
/// <summary>
/// Initializes a new instance of the XorImmWithRm32SignExtendedHandler class
@ -67,7 +65,7 @@ public class XorImmWithRm32SignExtendedHandler : Group1BaseHandler
byte rm = (byte)(modRM & 0x07);
// Decode the destination operand
string destOperand = _modRMDecoder.DecodeModRM(mod, rm, false);
string destOperand = ModRMDecoder.DecodeModRM(mod, rm, false);
// Read the immediate value (sign-extended from 8 to 32 bits)
if (position >= Length)