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;
}
}