public X86Operand(X86OperandUsage operandUsage, object value, X86ScaledIndex scaledIndex, int offset, X86OffsetType offsetType) { OperandUsage = operandUsage; Value = value; ScaledIndex = scaledIndex; Offset = offset; OffsetType = offsetType; }
public override string FormatOperandUsagePrefix(X86OperandUsage operandUsage) { switch (operandUsage) { case X86OperandUsage.Normal: return null; case X86OperandUsage.BytePointer: return "byte"; case X86OperandUsage.WordPointer: return "word"; case X86OperandUsage.DwordPointer: return "dword"; case X86OperandUsage.FwordPointer: return "fword"; } throw new ArgumentException(); }
public override string FormatOperandUsagePrefix(X86OperandUsage operandUsage) { switch (operandUsage) { case X86OperandUsage.Normal: return(null); case X86OperandUsage.BytePointer: return("byte"); case X86OperandUsage.WordPointer: return("word"); case X86OperandUsage.DwordPointer: return("dword"); case X86OperandUsage.FwordPointer: return("fword"); } throw new ArgumentException(); }
public X86Operand(X86OperandUsage operandUsage, object value, X86ScaledIndex scaledIndex) : this(operandUsage, value, scaledIndex, 0, X86OffsetType.None) { }
public X86Operand(X86OperandUsage operandUsage, object value, int offset) : this(operandUsage, value, null, offset, offset >= sbyte.MinValue && offset <= sbyte.MaxValue ? X86OffsetType.Short : X86OffsetType.Long) { }
public X86Operand(X86OperandUsage operandUsage, object value) : this(operandUsage, value, null, 0, X86OffsetType.None) { }
/// <summary> /// Formats a operand usage to a readable string. /// </summary> /// <param name="operandUsage">The operand usage to format.</param> /// <returns>The formatted operand usage prefix.</returns> public abstract string FormatOperandUsagePrefix(X86OperandUsage operandUsage);