blob: 10866fb20e160765260a4a075a90203369be5910 [file] [log] [blame]
Nguyen Anh Quynh26ee41a2013-11-27 12:11:31 +08001/* 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
pancakef0e4eed2013-12-11 22:14:42 +010012const char *ARM_reg_name(csh handle, unsigned int reg);
Nguyen Anh Quynh26ee41a2013-11-27 12:11:31 +080013
14// given internal insn id, return public instruction ID
Nguyen Anh Quynh4d3e8522013-12-14 10:45:09 +080015void ARM_get_insn_id(cs_insn *insn, unsigned int id, int detail);
Nguyen Anh Quynh26ee41a2013-11-27 12:11:31 +080016
17// given public insn id, return internal instruction info
18unsigned int ARM_get_insn_id2(unsigned int id);
19
pancakef0e4eed2013-12-11 22:14:42 +010020const char *ARM_insn_name(csh handle, unsigned int id);
Nguyen Anh Quynh26ee41a2013-11-27 12:11:31 +080021
22// map instruction name to instruction ID
pancakef0e4eed2013-12-11 22:14:42 +010023arm_reg ARM_map_insn(const char *name);
Nguyen Anh Quynh26ee41a2013-11-27 12:11:31 +080024
25// check if this insn is relative branch
26bool ARM_rel_branch(unsigned int insn_id);
27
28#endif