I am looking for a way to tell if an instruction is a jump instruction. Of course, I would like to avoid checking all possible jump mnemonics for all possible CPU architectures.
I thought one may check the belonging xref type. Yet, there are several different types possible: Code_Near_Jump Code_Far_Jump but also Data_Read (for indirect jumps). This approach looks complicated and not very reliable to me.
For call instructions, there is idaapi.is_call_insn(addr). Is there a similar thing for jumps?
MIPS_null = 0 MIPS_add = 1 MIPS_addu = 2– JoeKir Jul 16 '15 at 00:13