| 1 | /* Capstone Disassembly Engine */cxx . . $ `<file>/arch/ARM/ARMMapping.h`/ |
| 2 | /* By Nguyen Anh Quynh <[email protected]>, 2013-2019 */ |
| 3 | |
| 4 | #ifndef CS_ARM_MAP_H |
| 5 | #define CS_ARM_MAP_Hcxx . . $ `arch/ARM/ARMMapping.h:5:9`! |
| 6 | |
| 7 | #include "../../include/capstone/capstone.h"cxx . . $ `<file>/include/capstone/capstone.h`/ |
| 8 | #include "../../utils.h"cxx . . $ `<file>/utils.h`/ |
| 9 | |
| 10 | // return name of regiser in friendly string |
| 11 | const char *ARM_reg_namecxx . . $ ARM_reg_name(efd1348d9ae5172e).(cshcxx . . $ csh# handle, unsigned int reg); |
| 12 | const char *ARM_reg_name2cxx . . $ ARM_reg_name2(efd1348d9ae5172e).(cshcxx . . $ csh# handle, unsigned int reg); |
| 13 | |
| 14 | // given internal insn id, return public instruction ID |
| 15 | void ARM_get_insn_idcxx . . $ ARM_get_insn_id(b32a94ba649bfb5a).(cs_structcxx . . $ cs_struct# *h, cs_insncxx . . $ cs_insn# *insn, unsigned int id); |
| 16 | |
| 17 | const char *ARM_insn_namecxx . . $ ARM_insn_name(efd1348d9ae5172e).(cshcxx . . $ csh# handle, unsigned int id); |
| 18 | |
| 19 | const char *ARM_group_namecxx . . $ ARM_group_name(efd1348d9ae5172e).(cshcxx . . $ csh# handle, unsigned int id); |
| 20 | |
| 21 | // check if this insn is relative branch |
| 22 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! ARM_rel_branchcxx . . $ ARM_rel_branch(39412e1dc8bf7218).(cs_structcxx . . $ cs_struct# *h, unsigned int insn_id); |
| 23 | |
| 24 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! ARM_blx_to_arm_modecxx . . $ ARM_blx_to_arm_mode(39412e1dc8bf7218).(cs_structcxx . . $ cs_struct# *h, unsigned int insn_id); |
| 25 | |
| 26 | const uint8_tcxx . . $ uint8_t# *ARM_get_op_accesscxx . . $ ARM_get_op_access(76a777cf16cd607d).(cs_structcxx . . $ cs_struct# *h, unsigned int id); |
| 27 | |
| 28 | void ARM_reg_accesscxx . . $ ARM_reg_access(a4e53139cd2f126c).(const cs_insncxx . . $ cs_insn# *insn, |
| 29 | cs_regscxx . . $ cs_regs# regs_read, uint8_tcxx . . $ uint8_t# *regs_read_count, |
| 30 | cs_regscxx . . $ cs_regs# regs_write, uint8_tcxx . . $ uint8_t# *regs_write_count); |
| 31 | |
| 32 | typedef struct BankedRegcxx . . $ BankedReg# { |
| 33 | const char *Namecxx . . $ BankedReg#Name.; |
| 34 | arm_sysregcxx . . $ arm_sysreg# sysregcxx . . $ BankedReg#sysreg.; |
| 35 | uint16_tcxx . . $ uint16_t# Encodingcxx . . $ BankedReg#Encoding.; |
| 36 | } BankedRegcxx . . $ BankedReg#; |
| 37 | |
| 38 | const BankedRegcxx . . $ BankedReg# *lookupBankedRegByEncodingcxx . . $ lookupBankedRegByEncoding(1b5648b4fa6cc92f).(uint8_tcxx . . $ uint8_t# encoding); |
| 39 | |
| 40 | #endif |