0

I want to get an instruction with IDAPython by address of this instruction.

For example from mov r0 r1 I want to get only mov.

How can I do that with IDAPython?

1 Answer 1

1

To get the full disassembly, you can use:

GetDisasm(<address_of_instruction>)

To get the instruction only, you can use:

ida_ua.ua_mnem(<address_of_instruction>)
4
  • I need only the instruction. For example from mov r0 r1 O want to get only mov
    – Python
    Commented Oct 27, 2021 at 15:56
  • Added to the answer Commented Oct 27, 2021 at 16:25
  • Thanks. And how can I get the r0 and r1 please?
    – Python
    Commented Oct 27, 2021 at 21:27
  • 1
    @Python, it's not fair to ask additional questions, moreover if you even didn't appreciate the right answer by accepting it and/or voting it up.
    – MarianD
    Commented Nov 27, 2021 at 9:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.