6 #include <capstone/capstone.h>
8 #ifdef CAPSTONE_TMS320C64X_H
9 #define CAPSTONE_HAS_TMS320C64X 1
11 #define CAPSTONE_HAS_TMS320C64X 0
12 #warning Cannot find capstone-tms320c64x support
16 #undef CAPSONT_HAS_TMS320C64X
17 #define CAPSTONE_HAS_TMS320C64X 0
20 #if CAPSTONE_HAS_TMS320C64X
22 #define INSOP(n) insn->detail->tms320c64x.operands[n]
23 #define INSCC insn->detail->tms320c64x.cc
32 pj_ka(pj,
"operands");
34 for (
i = 0;
i <
x->op_count;
i++) {
39 pj_ks(pj,
"type",
"reg");
43 pj_ks(pj,
"type",
"imm");
47 pj_ks(pj,
"type",
"mem");
54 pj_ks(pj,
"type",
"invalid");
93 op->size = insn->size;
131 op->jump =
INSOP(0).imm + (
addr & 0xFFFFFFFF00000000);
static void opex(RzStrBuf *buf, csh handle, cs_insn *insn)
static mcore_handle handle
@ CS_ARCH_TMS320C64X
TMS320C64x architecture.
@ CS_OPT_DETAIL
Break down instruction structure into details.
@ CS_OPT_ON
Turn ON an option (CS_OPT_DETAIL, CS_OPT_SKIPDATA).
CAPSTONE_EXPORT size_t CAPSTONE_API cs_disasm(csh ud, const uint8_t *buffer, size_t size, uint64_t offset, size_t count, cs_insn **insn)
CAPSTONE_EXPORT cs_err CAPSTONE_API cs_open(cs_arch arch, cs_mode mode, csh *handle)
CAPSTONE_EXPORT void CAPSTONE_API cs_free(cs_insn *insn, size_t count)
CAPSTONE_EXPORT const char *CAPSTONE_API cs_reg_name(csh ud, unsigned int reg)
CAPSTONE_EXPORT cs_err CAPSTONE_API cs_close(csh *handle)
CAPSTONE_EXPORT cs_err CAPSTONE_API cs_option(csh ud, cs_opt_type type, size_t value)
@ RZ_ANALYSIS_OP_MASK_OPEX
@ RZ_ANALYSIS_OP_TYPE_CMP
@ RZ_ANALYSIS_OP_TYPE_SUB
@ RZ_ANALYSIS_OP_TYPE_LOAD
@ RZ_ANALYSIS_OP_TYPE_JMP
@ RZ_ANALYSIS_OP_TYPE_AND
@ RZ_ANALYSIS_OP_TYPE_ADD
@ RZ_ANALYSIS_OP_TYPE_STORE
@ RZ_ANALYSIS_OP_TYPE_MOV
@ RZ_ANALYSIS_OP_TYPE_ILL
@ RZ_ANALYSIS_OP_TYPE_NOT
@ RZ_ANALYSIS_OP_TYPE_NOP
RZ_API PJ * pj_ka(PJ *j, const char *k)
RZ_API PJ * pj_ki(PJ *j, const char *k, int d)
RZ_API PJ * pj_end(PJ *j)
RZ_API const char * pj_string(PJ *pj)
RZ_API void pj_free(PJ *j)
RZ_API PJ * pj_ks(PJ *j, const char *k, const char *v)
RZ_API PJ * pj_kN(PJ *j, const char *k, st64 n)
RZ_API bool rz_strbuf_append(RzStrBuf *sb, const char *s)
RZ_API void rz_strbuf_init(RzStrBuf *sb)
@ TMS320C64X_OP_REG
= CS_OP_REG (Register operand).
@ TMS320C64X_OP_IMM
= CS_OP_IMM (Immediate operand).
@ TMS320C64X_OP_MEM
= CS_OP_MEM (Memory operand).
ut64(WINAPI *w32_GetEnabledXStateFeatures)()