Наследование: X86_Instruction
Пример #1
0
 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);
     }
 }
Пример #2
0
        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;
            }
        }