mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-20 08:18:36 +03:00
Updated instruction handlers to use Type and StructuredOperands instead of Mnemonic and Operands
This commit is contained in:
22
X86Disassembler/X86/Operand.cs
Normal file
22
X86Disassembler/X86/Operand.cs
Normal file
@ -0,0 +1,22 @@
|
||||
namespace X86Disassembler.X86;
|
||||
|
||||
/// <summary>
|
||||
/// Base class for all x86 instruction operands
|
||||
/// </summary>
|
||||
public abstract class Operand
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the type of this operand
|
||||
/// </summary>
|
||||
public OperandType Type { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the size of the operand in bits (8, 16, 32)
|
||||
/// </summary>
|
||||
public int Size { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns a string representation of this operand
|
||||
/// </summary>
|
||||
public abstract override string ToString();
|
||||
}
|
Reference in New Issue
Block a user