17 #ifdef CAPSTONE_HAS_SYSZ
22 #include <capstone/platform.h>
25 #include "../../MCInst.h"
26 #include "../../utils.h"
27 #include "../../SStream.h"
28 #include "../../MCRegisterInfo.h"
29 #include "../../MathExtras.h"
32 static const char *getRegisterName(
unsigned RegNo);
56 MI->
flat_insn->detail->sysz.operands[MI->
flat_insn->detail->sysz.op_count].mem.disp = Disp;
71 MI->
flat_insn->detail->sysz.operands[MI->
flat_insn->detail->sysz.op_count].mem.disp = Disp;
112 MI->
flat_insn->detail->sysz.operands[MI->
flat_insn->detail->sysz.op_count].imm = Value;
241 static void printAccessRegOperand(
MCInst *MI,
int OpNum,
SStream *
O)
249 MI->
flat_insn->detail->sysz.operands[MI->
flat_insn->detail->sysz.op_count].reg = (
unsigned int)Value;
271 static void printPCRelTLSOperand(
MCInst *MI,
int OpNum,
SStream *
O)
274 printPCRelOperand(MI, OpNum,
O);
288 static void printBDXAddrOperand(
MCInst *MI,
int OpNum,
SStream *
O)
295 static void printBDLAddrOperand(
MCInst *MI,
int OpNum,
SStream *
O)
326 static const char *
const CondNames[] = {
327 "o",
"h",
"nle",
"l",
"nhe",
"lh",
"ne",
328 "e",
"nlh",
"he",
"nl",
"le",
"nh",
"no"
339 #define PRINT_ALIAS_INSTR
344 printInstruction(MI,
O, Info);
MCOperand * MCInst_getOperand(MCInst *inst, unsigned i)
bool MCOperand_isReg(const MCOperand *op)
int64_t MCOperand_getImm(MCOperand *op)
unsigned MCOperand_getReg(const MCOperand *op)
getReg - Returns the register number.
bool MCOperand_isImm(const MCOperand *op)
void printInt64(SStream *O, int64_t val)
void SStream_concat(SStream *ss, const char *fmt,...)
void SStream_concat0(SStream *ss, const char *s)
void printUInt32(SStream *O, uint32_t val)
void printInt32(SStream *O, int32_t val)
void SystemZ_printInst(MCInst *MI, SStream *O, void *Info)
void SystemZ_post_printer(csh ud, cs_insn *insn, char *insn_asm, MCInst *mci)
sysz_reg SystemZ_map_register(unsigned int r)
@ SYSZ_OP_MEM
= CS_OP_MEM (Memory operand).
@ SYSZ_OP_IMM
= CS_OP_IMM (Immediate operand).
@ SYSZ_OP_ACREG
Access register operand.
@ SYSZ_OP_REG
= CS_OP_REG (Register operand).
sysz_cc
Enums corresponding to SystemZ condition codes.