2014-05-27 10:45:58 +08:00
|
|
|
/* Capstone Disassembly Engine */
|
2015-03-04 17:45:23 +08:00
|
|
|
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2015 */
|
2013-11-27 12:11:31 +08:00
|
|
|
|
|
|
|
#ifndef CS_ARM64_MAP_H
|
|
|
|
#define CS_ARM64_MAP_H
|
|
|
|
|
2015-02-24 11:55:55 +08:00
|
|
|
#include "capstone/capstone.h"
|
2013-11-27 12:11:31 +08:00
|
|
|
|
|
|
|
// return name of regiser in friendly string
|
2013-12-12 05:14:42 +08:00
|
|
|
const char *AArch64_reg_name(csh handle, unsigned int reg);
|
2013-11-27 12:11:31 +08:00
|
|
|
|
|
|
|
// given internal insn id, return public instruction info
|
2014-01-06 10:56:59 +08:00
|
|
|
void AArch64_get_insn_id(cs_struct *h, cs_insn *insn, unsigned int id);
|
2013-11-27 12:11:31 +08:00
|
|
|
|
2013-12-12 05:14:42 +08:00
|
|
|
const char *AArch64_insn_name(csh handle, unsigned int id);
|
2013-11-27 12:11:31 +08:00
|
|
|
|
2014-07-08 08:59:27 +08:00
|
|
|
const char *AArch64_group_name(csh handle, unsigned int id);
|
|
|
|
|
2013-11-30 00:54:24 +08:00
|
|
|
// map instruction name to public instruction ID
|
2013-12-12 05:14:42 +08:00
|
|
|
arm64_reg AArch64_map_insn(const char *name);
|
2013-11-27 12:11:31 +08:00
|
|
|
|
2014-08-25 16:47:12 +08:00
|
|
|
// map internal vregister to public register
|
|
|
|
arm64_reg AArch64_map_vregister(unsigned int r);
|
|
|
|
|
|
|
|
void arm64_op_addReg(MCInst *MI, int reg);
|
|
|
|
|
|
|
|
void arm64_op_addVectorArrSpecifier(MCInst * MI, int sp);
|
|
|
|
|
|
|
|
void arm64_op_addVectorElementSizeSpecifier(MCInst * MI, int sp);
|
|
|
|
|
|
|
|
void arm64_op_addFP(MCInst *MI, float fp);
|
|
|
|
|
|
|
|
void arm64_op_addImm(MCInst *MI, int64_t imm);
|
|
|
|
|
2013-11-27 12:11:31 +08:00
|
|
|
#endif
|