AsmResolver.X86.X86FormatterExtensions.FormatInstruction C# (CSharp) Метод

FormatInstruction() публичный статический Метод

Formats an instruction to a readable string.
public static FormatInstruction ( this formatter, X86Instruction instruction ) : string
formatter this The formatter to use.
instruction X86Instruction The isntruction to format.
Результат string
        public static string FormatInstruction(this IX86Formatter formatter, X86Instruction instruction)
        {
            var mnemonicString = formatter.FormatMnemonic(instruction.Mnemonic);

            if (instruction.Operand2 == null)
            {
                return instruction.Operand1 == null
                    ? mnemonicString
                    : mnemonicString + ' ' + formatter.FormatOperand(instruction.Operand1);
            }

            return mnemonicString + ' ' + formatter.FormatOperand(instruction.Operand1) + ", " +
                   formatter.FormatOperand(instruction.Operand2);
        }
X86FormatterExtensions