/// <summary> /// Looks up mnemonic code in the mnemonic string table. /// Returns NULL if the mnemonic code is invalid. /// </summary> /// <param name="c">TODO c.</param> /// <returns>TODO TODO.</returns> public static String UdLookupMnemonic(UdMnemonicCode c) { if (c < UdMnemonicCode.UD_MAX_MNEMONIC_CODE) { return(InstructionTables.ud_mnemonics_str[(Int32)c]); } else { return(null); } }
/// <summary> /// Initializes a new instance of the <see cref="UdItabEntry" /> class. /// </summary> /// <param name="mnemonic">TODO mnemonic.</param> /// <param name="operand1">TODO operand1.</param> /// <param name="operand2">TODO operand2.</param> /// <param name="operand3">TODO operand3.</param> /// <param name="operand4">TODO operand4.</param> /// <param name="prefix">TODO prefix.</param> internal UdItabEntry( UdMnemonicCode mnemonic, UdItabEntryOperand operand1, UdItabEntryOperand operand2, UdItabEntryOperand operand3, UdItabEntryOperand operand4, UInt32 prefix) { this.Mnemonic = mnemonic; this.Operand1 = operand1; this.Operand2 = operand2; this.Operand3 = operand3; this.Operand4 = operand4; this.Prefix = prefix; }