Files
ircolib/arch/SystemZ/SystemZMapping.h
T
iris 802798ce3c Squashed 'external/capstone/' content from commit e46f64fa
git-subtree-dir: external/capstone
git-subtree-split: e46f64fadb351e9ecd05264fab26f2772feb0994
2026-05-11 11:55:07 +02:00

43 lines
1.4 KiB
C

/* Capstone Disassembly Engine */
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2015 */
#ifndef CS_SYSTEMZ_MAP_H
#define CS_SYSTEMZ_MAP_H
#include <capstone/capstone.h>
#include "../../Mapping.h"
#include "../../cs_priv.h"
typedef enum {
#include "SystemZGenCSOpGroup.inc"
} systemz_op_group;
// return name of register in friendly string
const char *SystemZ_reg_name(csh handle, unsigned int reg);
// given internal insn id, return public instruction info
void SystemZ_get_insn_id(cs_struct *h, cs_insn *insn, unsigned int id);
const char *SystemZ_insn_name(csh handle, unsigned int id);
const char *SystemZ_group_name(csh handle, unsigned int id);
void SystemZ_printer(MCInst *MI, SStream *O, void * /* MCRegisterInfo* */ info);
bool SystemZ_getInstruction(csh handle, const uint8_t *bytes, size_t bytes_len,
MCInst *MI, uint16_t *size, uint64_t address,
void *info);
void SystemZ_init_mri(MCRegisterInfo *MRI);
void SystemZ_init_cs_detail(MCInst *MI);
void SystemZ_set_detail_op_reg(MCInst *MI, unsigned op_num, systemz_reg Reg);
void SystemZ_set_detail_op_imm(MCInst *MI, unsigned op_num, int64_t Imm,
size_t width);
void SystemZ_set_detail_op_mem(MCInst *MI, unsigned op_num, systemz_reg base,
int64_t disp, uint64_t length, systemz_reg index,
systemz_addr_mode am);
void SystemZ_add_cs_detail_0(MCInst *MI, int /* systemz_op_group */ op_group,
size_t op_num);
#endif // CS_SYSTEMZ_MAP_H