| 1 | /* Capstone Disassembly Engine */cxx . . $ `<file>/arch/AArch64/AArch64Mapping.h`/ |
| 2 | /* By Nguyen Anh Quynh <[email protected]>, 2013-2019 */ |
| 3 | |
| 4 | #ifndef CS_ARM64_MAP_H |
| 5 | #define CS_ARM64_MAP_Hcxx . . $ `arch/AArch64/AArch64Mapping.h:5:9`! |
| 6 | |
| 7 | #include "capstone/capstone.h"cxx . . $ `<file>/include/capstone/capstone.h`/ |
| 8 | |
| 9 | #define ARR_SIZEcxx . . $ `arch/AArch64/AArch64Mapping.h:9:9`!(a) (sizeof(a)/sizeof(a[0])) |
| 10 | |
| 11 | // return name of regiser in friendly string |
| 12 | const char *AArch64_reg_namecxx . . $ AArch64_reg_name(efd1348d9ae5172e).(cshcxx . . $ csh# handle, unsigned int reg); |
| 13 | |
| 14 | // given internal insn id, return public instruction info |
| 15 | void AArch64_get_insn_idcxx . . $ AArch64_get_insn_id(b32a94ba649bfb5a).(cs_structcxx . . $ cs_struct# *h, cs_insncxx . . $ cs_insn# *insn, unsigned int id); |
| 16 | |
| 17 | const char *AArch64_insn_namecxx . . $ AArch64_insn_name(efd1348d9ae5172e).(cshcxx . . $ csh# handle, unsigned int id); |
| 18 | |
| 19 | const char *AArch64_group_namecxx . . $ AArch64_group_name(efd1348d9ae5172e).(cshcxx . . $ csh# handle, unsigned int id); |
| 20 | |
| 21 | // map instruction name to public instruction ID |
| 22 | arm64_insncxx . . $ arm64_insn# AArch64_map_insncxx . . $ AArch64_map_insn(5ded058125bb7971).(const char *name); |
| 23 | |
| 24 | // map internal vregister to public register |
| 25 | arm64_regcxx . . $ arm64_reg# AArch64_map_vregistercxx . . $ AArch64_map_vregister(3362e394aca47b8c).(unsigned int r); |
| 26 | |
| 27 | arm64_sys_opcxx . . $ arm64_sys_op# AArch64_map_sys_opcxx . . $ AArch64_map_sys_op(d5452f1f4be20c87).(const char *name); |
| 28 | |
| 29 | void arm64_op_addRegcxx . . $ arm64_op_addReg(cff03ea8bb8460e7).(MCInstcxx . . $ MCInst# *MI, int reg); |
| 30 | |
| 31 | void arm64_op_addVectorArrSpecifiercxx . . $ arm64_op_addVectorArrSpecifier(cff03ea8bb8460e7).(MCInstcxx . . $ MCInst# * MI, int sp); |
| 32 | |
| 33 | void arm64_op_addFPcxx . . $ arm64_op_addFP(3d4c3f12874b80ff).(MCInstcxx . . $ MCInst# *MI, float fp); |
| 34 | |
| 35 | void arm64_op_addImmcxx . . $ arm64_op_addImm(c25c894236a70359).(MCInstcxx . . $ MCInst# *MI, int64_tcxx . . $ int64_t# imm); |
| 36 | |
| 37 | const uint8_tcxx . . $ uint8_t# *AArch64_get_op_accesscxx . . $ AArch64_get_op_access(76a777cf16cd607d).(cs_structcxx . . $ cs_struct# *h, unsigned int id); |
| 38 | |
| 39 | void AArch64_reg_accesscxx . . $ AArch64_reg_access(a4e53139cd2f126c).(const cs_insncxx . . $ cs_insn# *insn, |
| 40 | cs_regscxx . . $ cs_regs# regs_read, uint8_tcxx . . $ uint8_t# *regs_read_count, |
| 41 | cs_regscxx . . $ cs_regs# regs_write, uint8_tcxx . . $ uint8_t# *regs_write_count); |
| 42 | |
| 43 | #endif |