Path: blob/master/libs/capstone/arch/AArch64/AArch64Mapping.h
4393 views
/* Capstone Disassembly Engine */1/* By Nguyen Anh Quynh <[email protected]>, 2013-2019 */23#ifndef CS_ARM64_MAP_H4#define CS_ARM64_MAP_H56#include "capstone/capstone.h"78#define ARR_SIZE(a) (sizeof(a)/sizeof(a[0]))910// return name of regiser in friendly string11const char *AArch64_reg_name(csh handle, unsigned int reg);1213// given internal insn id, return public instruction info14void AArch64_get_insn_id(cs_struct *h, cs_insn *insn, unsigned int id);1516const char *AArch64_insn_name(csh handle, unsigned int id);1718const char *AArch64_group_name(csh handle, unsigned int id);1920// map instruction name to public instruction ID21arm64_insn AArch64_map_insn(const char *name);2223// map internal vregister to public register24arm64_reg AArch64_map_vregister(unsigned int r);2526arm64_sys_op AArch64_map_sys_op(const char *name);2728void arm64_op_addReg(MCInst *MI, int reg);2930void arm64_op_addVectorArrSpecifier(MCInst * MI, int sp);3132void arm64_op_addFP(MCInst *MI, float fp);3334void arm64_op_addImm(MCInst *MI, int64_t imm);3536const uint8_t *AArch64_get_op_access(cs_struct *h, unsigned int id);3738void AArch64_reg_access(const cs_insn *insn,39cs_regs regs_read, uint8_t *regs_read_count,40cs_regs regs_write, uint8_t *regs_write_count);4142#endif434445