17 #ifdef CAPSTONE_HAS_XCORE
19 #if defined (WIN32) || defined (WIN64) || defined (_WIN32) || defined (_WIN64)
20 #pragma warning(disable : 4996)
21 #pragma warning(disable : 28719)
27 #include <capstone/platform.h>
30 #include "../../MCInst.h"
31 #include "../../utils.h"
32 #include "../../SStream.h"
33 #include "../../MCRegisterInfo.h"
34 #include "../../MathExtras.h"
37 static const char *getRegisterName(
unsigned RegNo);
76 while(*p2 && *p2 ==
' ')
81 while(*
p && *
p !=
'[')
93 MI->
flat_insn->detail->xcore.operands[MI->
flat_insn->detail->xcore.op_count].mem.disp = 0;
94 MI->
flat_insn->detail->xcore.operands[MI->
flat_insn->detail->xcore.op_count].mem.direct = 1;
100 while(*
p && *
p !=
']')
114 MI->
flat_insn->detail->xcore.operands[MI->
flat_insn->detail->xcore.op_count].mem.disp = atoi(p2);
157 if (
reg != 0xffff &&
reg != -0xffff) {
165 MI->
flat_insn->detail->xcore.operands[MI->
flat_insn->detail->xcore.op_count].mem.disp = 0;
166 MI->
flat_insn->detail->xcore.operands[MI->
flat_insn->detail->xcore.op_count].mem.direct = 1;
173 MI->
flat_insn->detail->xcore.operands[MI->
flat_insn->detail->xcore.op_count].mem.disp = 0;
175 MI->
flat_insn->detail->xcore.operands[MI->
flat_insn->detail->xcore.op_count].mem.direct = 1;
177 MI->
flat_insn->detail->xcore.operands[MI->
flat_insn->detail->xcore.op_count].mem.direct = -1;
215 MI->
flat_insn->detail->xcore.operands[MI->
flat_insn->detail->xcore.op_count].mem.disp = Imm;
218 MI->
flat_insn->detail->xcore.operands[MI->
flat_insn->detail->xcore.op_count].imm = Imm;
227 if (OpNum >= MI->
size)
241 #define PRINT_ALIAS_INSTR
246 printInstruction(MI,
O, Info);
247 set_mem_access(MI,
false, 0);
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 SStream_concat0(SStream *ss, const char *s)
void printInt32(SStream *O, int32_t val)
void XCore_insn_extract(MCInst *MI, const char *code)
void XCore_printInst(MCInst *MI, SStream *O, void *Info)
void XCore_post_printer(csh ud, cs_insn *insn, char *insn_asm, MCInst *mci)
xcore_reg XCore_reg_id(char *name)
@ CS_OPT_ON
Turn ON an option (CS_OPT_DETAIL, CS_OPT_SKIPDATA).
@ XCORE_OP_REG
= CS_OP_REG (Register operand).
@ XCORE_OP_IMM
= CS_OP_IMM (Immediate operand).
@ XCORE_OP_MEM
= CS_OP_MEM (Memory operand).
static const char struct stat static buf struct stat static buf static vhangup int status
if(dbg->bits==RZ_SYS_BITS_64)