2014-05-27 10:45:58 +08:00
|
|
|
/* Capstone Disassembly Engine */
|
2015-03-04 17:45:23 +08:00
|
|
|
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2015 */
|
2013-11-27 12:11:31 +08:00
|
|
|
|
|
|
|
#ifndef CS_ARM_MAP_H
|
|
|
|
#define CS_ARM_MAP_H
|
|
|
|
|
2015-02-24 11:55:55 +08:00
|
|
|
#include "../../include/capstone/capstone.h"
|
2013-11-27 12:11:31 +08:00
|
|
|
#include "../../utils.h"
|
|
|
|
|
|
|
|
// return name of regiser in friendly string
|
2013-12-12 05:14:42 +08:00
|
|
|
const char *ARM_reg_name(csh handle, unsigned int reg);
|
2014-09-01 23:27:24 +08:00
|
|
|
const char *ARM_reg_name2(csh handle, unsigned int reg);
|
2013-11-27 12:11:31 +08:00
|
|
|
|
|
|
|
// given internal insn id, return public instruction ID
|
2014-01-06 10:56:59 +08:00
|
|
|
void ARM_get_insn_id(cs_struct *h, cs_insn *insn, unsigned int id);
|
2013-11-27 12:11:31 +08:00
|
|
|
|
2013-12-12 05:14:42 +08:00
|
|
|
const char *ARM_insn_name(csh handle, unsigned int id);
|
2013-11-27 12:11:31 +08:00
|
|
|
|
2014-07-08 08:59:27 +08:00
|
|
|
const char *ARM_group_name(csh handle, unsigned int id);
|
|
|
|
|
2014-05-07 14:12:50 +08:00
|
|
|
// check if this insn is relative branch
|
|
|
|
bool ARM_rel_branch(cs_struct *h, unsigned int insn_id);
|
|
|
|
|
2014-06-30 13:45:40 +08:00
|
|
|
bool ARM_blx_to_arm_mode(cs_struct *h, unsigned int insn_id);
|
|
|
|
|
2015-04-07 11:59:26 +08:00
|
|
|
uint8_t *ARM_get_op_access(cs_struct *h, unsigned int id);
|
|
|
|
|
|
|
|
void ARM_reg_access(const cs_insn *insn,
|
|
|
|
cs_regs regs_read, uint8_t *regs_read_count,
|
|
|
|
cs_regs regs_write, uint8_t *regs_write_count);
|
|
|
|
|
2013-11-27 12:11:31 +08:00
|
|
|
#endif
|