namespace X86Disassembler.X86.Operands; /// /// Represents a relative offset operand in an x86 instruction (used for jumps and calls) /// public class RelativeOffsetOperand : Operand { /// /// Gets or sets the target address /// public uint TargetAddress { get; set; } /// /// Initializes a new instance of the RelativeOffsetOperand class /// /// The target address /// The size of the offset in bits (8 or 32) public RelativeOffsetOperand(uint targetAddress, int size = 32) { Type = OperandType.RelativeOffset; TargetAddress = targetAddress; Size = size; } /// /// Returns a string representation of this operand /// public override string ToString() { return $"0x{TargetAddress:X}"; } }