| 1 | /* Capstone Disassembly Engine */cxx . . $ `<file>/arch/XCore/XCoreMapping.h`/ |
| 2 | /* By Nguyen Anh Quynh <[email protected]>, 2013-2015 */ |
| 3 | |
| 4 | #ifndef CS_XCORE_MAP_H |
| 5 | #define CS_XCORE_MAP_Hcxx . . $ `arch/XCore/XCoreMapping.h:5:9`! |
| 6 | |
| 7 | #include "capstone/capstone.h"cxx . . $ `<file>/include/capstone/capstone.h`/ |
| 8 | |
| 9 | // return name of regiser in friendly string |
| 10 | const char *XCore_reg_namecxx . . $ XCore_reg_name(efd1348d9ae5172e).(cshcxx . . $ csh# handle, unsigned int reg); |
| 11 | |
| 12 | // given internal insn id, return public instruction info |
| 13 | void XCore_get_insn_idcxx . . $ XCore_get_insn_id(b32a94ba649bfb5a).(cs_structcxx . . $ cs_struct# *h, cs_insncxx . . $ cs_insn# *insn, unsigned int id); |
| 14 | |
| 15 | const char *XCore_insn_namecxx . . $ XCore_insn_name(efd1348d9ae5172e).(cshcxx . . $ csh# handle, unsigned int id); |
| 16 | |
| 17 | const char *XCore_group_namecxx . . $ XCore_group_name(efd1348d9ae5172e).(cshcxx . . $ csh# handle, unsigned int id); |
| 18 | |
| 19 | // map internal raw register to 'public' register |
| 20 | xcore_regcxx . . $ xcore_reg# XCore_map_registercxx . . $ XCore_map_register(7a5e20811a7fae0).(unsigned int r); |
| 21 | |
| 22 | // map register name to register ID |
| 23 | xcore_regcxx . . $ xcore_reg# XCore_reg_idcxx . . $ XCore_reg_id(fbc3349276a8bd32).(char *name); |
| 24 | |
| 25 | #endif |
| 26 |