blob: 66abcf4f5900db12d3290402e1ed3926ef9444ab [file] [log] [blame]
Nguyen Anh Quynhf721e312014-05-27 10:45:58 +08001/* Capstone Disassembly Engine */
2/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
Nguyen Anh Quynhf1d489b2014-01-05 00:00:05 +08003
4#ifndef CS_PPC_MAP_H
5#define CS_PPC_MAP_H
6
7#include "../../include/capstone.h"
Nguyen Anh Quynhf1d489b2014-01-05 00:00:05 +08008
9// return name of regiser in friendly string
10const char *PPC_reg_name(csh handle, unsigned int reg);
11
12// given internal insn id, return public instruction info
Nguyen Anh Quynh1acfd0b2014-01-06 10:56:59 +080013void PPC_get_insn_id(cs_struct *h, cs_insn *insn, unsigned int id);
Nguyen Anh Quynhf1d489b2014-01-05 00:00:05 +080014
Nguyen Anh Quynhf1d489b2014-01-05 00:00:05 +080015const char *PPC_insn_name(csh handle, unsigned int id);
Nguyen Anh Quynh650f96c2014-07-08 08:59:27 +080016const char *PPC_group_name(csh handle, unsigned int id);
Nguyen Anh Quynhf1d489b2014-01-05 00:00:05 +080017
Nguyen Anh Quynhf1d489b2014-01-05 00:00:05 +080018// map internal raw register to 'public' register
19ppc_reg PPC_map_register(unsigned int r);
20
Nguyen Anh Quynh7e57e792014-09-21 13:04:50 +080021struct ppc_alias {
22 unsigned int id; // instruction id
23 int cc; // code condition
24 const char *mnem;
25};
26
27// given alias mnemonic, return instruction ID & CC
28bool PPC_alias_insn(const char *name, struct ppc_alias *alias);
Nguyen Anh Quynh721d07f2014-09-04 12:03:31 +080029
Nguyen Anh Quynhf1d489b2014-01-05 00:00:05 +080030#endif
31