Go to the documentation of this file.
13 #define X86_CODE32 "\x75\x01"
35 printf(
"\t%s\t%s\n", insn[0].mnemonic, insn[0].op_str);
39 printf(
"ERROR: Failed to disasm given code!\n");
55 printf(
"Failed on cs_open() with error returned: %u\n",
err);
60 printf(
"Disassemble X86 code with default instruction mnemonic\n");
64 printf(
"\nNow customize engine to change mnemonic from 'JNE' to 'JNZ'\n");
71 printf(
"\nReset engine to use the default mnemonic\n");
CAPSTONE_EXPORT cs_err CAPSTONE_API cs_close(csh *handle)
static void print_insn(csh handle)
@ CS_MODE_32
32-bit mode (X86)
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)
_Use_decl_annotations_ int __cdecl printf(const char *_Format,...)
CAPSTONE_EXPORT cs_err CAPSTONE_API cs_open(cs_arch arch, cs_mode mode, csh *handle)
CAPSTONE_EXPORT cs_err CAPSTONE_API cs_option(csh ud, cs_opt_type type, size_t value)
static void print_string_hex(unsigned char *str, size_t len)
@ CS_ARCH_X86
X86 architecture (including x86 & x86-64)
CAPSTONE_EXPORT void CAPSTONE_API cs_free(cs_insn *insn, size_t count)
@ CS_OPT_MNEMONIC
Customize instruction mnemonic.
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:28