8 #include <capstone/capstone.h>
42 op->size = insn->size;
43 char *buf_asm =
sdb_fmt(
"%s%s%s",
44 insn->mnemonic, insn->op_str[0] ?
" " :
"",
46 char *ptrstr = strstr(buf_asm,
"ptr ");
48 memmove(ptrstr, ptrstr + 4, strlen(ptrstr + 4) + 1);
59 .desc =
"SystemZ CPU disassembler",
68 #ifndef RZ_PLUGIN_INCORE
RZ_API void rz_asm_op_set_asm(RzAsmOp *op, const char *str)
RZ_API RzLibStruct rizin_plugin
static int disassemble(RzAsm *a, RzAsmOp *op, const ut8 *buf, int len)
RzAsmPlugin rz_asm_plugin_sysz
static bool the_end(void *p)
@ CS_ARCH_SYSZ
SystemZ architecture.
@ CS_MODE_BIG_ENDIAN
big-endian mode
@ CS_OPT_DETAIL
Break down instruction structure into details.
@ CS_OPT_OFF
Turn OFF an option - default for CS_OPT_DETAIL, CS_OPT_SKIPDATA, CS_OPT_UNSIGNED.
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 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_API char * sdb_fmt(const char *fmt,...)
#define RZ_SYS_ENDIAN_BIG
ut64(WINAPI *w32_GetEnabledXStateFeatures)()