namespace X86Disassembler.X86.Operands; /// /// Represents an 8-bit register operand in an x86 instruction /// public class Register8Operand : Operand { /// /// Gets or sets the 8-bit register /// public RegisterIndex8 Register { get; set; } /// /// Initializes a new instance of the Register8Operand class /// /// The 8-bit register public Register8Operand(RegisterIndex8 register) { Type = OperandType.Register; Register = register; Size = 8; // Always 8 bits for this operand type } /// /// Returns a string representation of this operand /// public override string ToString() { return ModRMDecoder.GetRegisterName(Register); } }