Esempio n. 1
0
 public X86Operand(X86OperandUsage operandUsage, object value, X86ScaledIndex scaledIndex, int offset, X86OffsetType offsetType)
 {
     OperandUsage = operandUsage;
     Value        = value;
     ScaledIndex  = scaledIndex;
     Offset       = offset;
     OffsetType   = offsetType;
 }
Esempio n. 2
0
 public X86Operand(X86OperandUsage operandUsage, object value, X86ScaledIndex scaledIndex, int offset, X86OffsetType offsetType)
 {
     OperandUsage = operandUsage;
     Value = value;
     ScaledIndex = scaledIndex;
     Offset = offset;
     OffsetType = offsetType;
 }
Esempio n. 3
0
 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();
 }
Esempio n. 4
0
        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();
        }
Esempio n. 5
0
 public X86Operand(X86OperandUsage operandUsage, object value, X86ScaledIndex scaledIndex)
     : this(operandUsage, value, scaledIndex, 0, X86OffsetType.None)
 {
 }
Esempio n. 6
0
 public X86Operand(X86OperandUsage operandUsage, object value, int offset)
     : this(operandUsage, value, null, offset, offset >= sbyte.MinValue && offset <= sbyte.MaxValue ? X86OffsetType.Short : X86OffsetType.Long)
 {
 }
Esempio n. 7
0
 public X86Operand(X86OperandUsage operandUsage, object value)
     : this(operandUsage, value, null, 0, X86OffsetType.None)
 {
 }
Esempio n. 8
0
 /// <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);
Esempio n. 9
0
 public X86Operand(X86OperandUsage operandUsage, object value, X86ScaledIndex scaledIndex)
     : this(operandUsage, value, scaledIndex, 0, X86OffsetType.None)
 {
 }
Esempio n. 10
0
 public X86Operand(X86OperandUsage operandUsage, object value, int offset)
     : this(operandUsage, value, null, offset, offset >= sbyte.MinValue && offset <= sbyte.MaxValue ? X86OffsetType.Short : X86OffsetType.Long)
 {
 }
Esempio n. 11
0
 public X86Operand(X86OperandUsage operandUsage, object value)
     : this(operandUsage, value, null, 0, X86OffsetType.None)
 {
 }
Esempio n. 12
0
 /// <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);