Go to the documentation of this file.
37 if (ins->detail == NULL)
40 evm = &(ins->detail->evm);
51 if (ins->detail->groups_count) {
55 for(j = 0; j < ins->detail->groups_count; j++) {
64 #define EVM_CODE "\x60\x61\x50"
84 printf(
"Failed on cs_open() with error returned: %u\n",
err);
93 printf(
"****************\n");
98 for (j = 0; j <
count; j++) {
99 printf(
"0x%" PRIx64
":\t%s\t%s\n", insn[j].address, insn[j].mnemonic, insn[j].op_str);
102 printf(
"0x%" PRIx64
":\n", insn[j-1].address + insn[j-1].
size);
107 printf(
"****************\n");
110 printf(
"ERROR: Failed to disasm given code!\n");
CAPSTONE_EXPORT cs_err CAPSTONE_API cs_close(csh *handle)
unsigned int fee
gas fee for the instruction
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)
cs_arch
Architecture type.
@ CS_OPT_DETAIL
Break down instruction structure into details.
@ CS_ARCH_EVM
Ethereum architecture.
CAPSTONE_EXPORT cs_err CAPSTONE_API cs_option(csh ud, cs_opt_type type, size_t value)
static void print_string_hex(const char *comment, unsigned char *str, size_t len)
unsigned __int64 uint64_t
@ CS_OPT_ON
Turn ON an option (CS_OPT_DETAIL, CS_OPT_SKIPDATA).
const CAPSTONE_EXPORT char *CAPSTONE_API cs_group_name(csh ud, unsigned int group)
static void print_insn_detail(csh cs_handle, cs_insn *ins)
CAPSTONE_EXPORT void CAPSTONE_API cs_free(cs_insn *insn, size_t count)
struct platform platforms[]
unsigned char pop
number of items popped from the stack
unsigned char push
number of items pushed into the stack
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:31