/// <summary> /// Create a Dissembled Instruction. /// </summary> /// <param name="nativeInstruction"> /// A native instruction. /// </param> /// <returns> /// A dissembled instruction. /// </returns> protected override Instruction <ArmInstruction, ArmRegister, ArmInstructionGroup, ArmInstructionDetail> CreateInstruction(NativeInstruction nativeInstruction) { var @object = nativeInstruction.AsArmInstruction(); // x1nix: removed NativeInstruction lookup return(@object); }
private static bool OnX86DisassembledInstruction(NativeInstruction instruction, int size, ulong address) { return true; }
/// <summary> /// Create a Dissembled Instruction. /// </summary> /// <param name="nativeInstruction"> /// A native instruction. /// </param> /// <returns> /// A dissembled instruction. /// </returns> protected override Instruction <ArmInstruction, ArmRegister, ArmInstructionGroup, ArmInstructionDetail> CreateInstruction(NativeInstruction nativeInstruction) { var @object = nativeInstruction.AsArmInstruction(); // Get Native Instruction's Managed Independent Detail. // // Retrieves the native instruction's managed independent detail once to avoid having to allocate // new memory every time it is retrieved. var nativeIndependentInstructionDetail = nativeInstruction.ManagedIndependentDetail; if (nativeIndependentInstructionDetail != null) { @object.ArchitectureDetail = nativeInstruction.NativeArmDetail.AsArmInstructionDetail(); @object.IndependentDetail = nativeIndependentInstructionDetail.Value.AsArmIndependentInstructionDetail(); } return(@object); }
private static bool OnX86DisassembledInstruction(NativeInstruction instruction, int size, ulong address) { return(true); }