Mono.Debugger.Architectures.X86_Instruction.DecodeInstruction C# (CSharp) Method

DecodeInstruction() public static method

public static DecodeInstruction ( X86_Opcodes opcodes, TargetMemoryAccess memory, TargetAddress address ) : X86_Instruction
opcodes X86_Opcodes
memory TargetMemoryAccess
address TargetAddress
return X86_Instruction
        public static X86_Instruction DecodeInstruction(X86_Opcodes opcodes,
								 TargetMemoryAccess memory,
								 TargetAddress address)
        {
            try {
                X86_Instruction insn;
                if (memory.TargetMemoryInfo.TargetAddressSize == 8)
                    insn = new Instruction_X86_64 (opcodes, address);
                else
                    insn = new Instruction_I386 (opcodes, address);
                insn.DoDecodeInstruction (memory, address);
                return insn;
            } catch {
                return null;
            }
        }

Usage Example

Example #1
0
 internal override Instruction ReadInstruction(TargetMemoryAccess memory,
                                               TargetAddress address)
 {
     return(X86_Instruction.DecodeInstruction(this, memory, address));
 }