public static DecodeInstruction ( |
||
opcodes | ||
memory | TargetMemoryAccess | |
address | TargetAddress | |
return |
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;
}
}
internal override Instruction ReadInstruction(TargetMemoryAccess memory, TargetAddress address) { return(X86_Instruction.DecodeInstruction(this, memory, address)); }