Nguyen Anh Quynh | 26ee41a | 2013-11-27 12:11:31 +0800 | [diff] [blame] | 1 | /* Capstone Disassembler Engine */ |
| 2 | /* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013> */ |
| 3 | |
| 4 | #ifndef CS_ARM_MAP_H |
| 5 | #define CS_ARM_MAP_H |
| 6 | |
| 7 | #include "../../include/capstone.h" |
| 8 | #include "../../include/arm.h" |
| 9 | #include "../../utils.h" |
| 10 | |
| 11 | // return name of regiser in friendly string |
pancake | f0e4eed | 2013-12-11 22:14:42 +0100 | [diff] [blame] | 12 | const char *ARM_reg_name(csh handle, unsigned int reg); |
Nguyen Anh Quynh | 26ee41a | 2013-11-27 12:11:31 +0800 | [diff] [blame] | 13 | |
| 14 | // given internal insn id, return public instruction ID |
Nguyen Anh Quynh | 4d3e852 | 2013-12-14 10:45:09 +0800 | [diff] [blame^] | 15 | void ARM_get_insn_id(cs_insn *insn, unsigned int id, int detail); |
Nguyen Anh Quynh | 26ee41a | 2013-11-27 12:11:31 +0800 | [diff] [blame] | 16 | |
| 17 | // given public insn id, return internal instruction info |
| 18 | unsigned int ARM_get_insn_id2(unsigned int id); |
| 19 | |
pancake | f0e4eed | 2013-12-11 22:14:42 +0100 | [diff] [blame] | 20 | const char *ARM_insn_name(csh handle, unsigned int id); |
Nguyen Anh Quynh | 26ee41a | 2013-11-27 12:11:31 +0800 | [diff] [blame] | 21 | |
| 22 | // map instruction name to instruction ID |
pancake | f0e4eed | 2013-12-11 22:14:42 +0100 | [diff] [blame] | 23 | arm_reg ARM_map_insn(const char *name); |
Nguyen Anh Quynh | 26ee41a | 2013-11-27 12:11:31 +0800 | [diff] [blame] | 24 | |
| 25 | // check if this insn is relative branch |
| 26 | bool ARM_rel_branch(unsigned int insn_id); |
| 27 | |
| 28 | #endif |