1 /* Capstone Disassembly Engine */ 2 /* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2015 */ 3 4 #ifndef CS_XCORE_MAP_H 5 #define CS_XCORE_MAP_H 6 7 #include "capstone/capstone.h" 8 9 // return name of regiser in friendly string 10 const char *XCore_reg_name(csh handle, unsigned int reg); 11 12 // given internal insn id, return public instruction info 13 void XCore_get_insn_id(cs_struct *h, cs_insn *insn, unsigned int id); 14 15 const char *XCore_insn_name(csh handle, unsigned int id); 16 17 const char *XCore_group_name(csh handle, unsigned int id); 18 19 // map internal raw register to 'public' register 20 xcore_reg XCore_map_register(unsigned int r); 21 22 // map register name to register ID 23 xcore_reg XCore_reg_id(char *name); 24 25 #endif 26 27