4 #ifdef CAPSTONE_HAS_EVM
8 #include "../../cs_priv.h"
9 #include "../../utils.h"
21 static int evm_insn_find(
cs_evm *
insns,
unsigned int max,
unsigned int id)
26 if (
insns[
id].fee == 0xffffffff)
47 static name_map insn_name_maps[256] = {
309 #ifndef CAPSTONE_DIET
313 return insn_name_maps[
id].
name;
319 #ifndef CAPSTONE_DIET
338 #ifndef CAPSTONE_DIET
const char * EVM_insn_name(csh handle, unsigned int id)
const char * EVM_group_name(csh handle, unsigned int id)
void EVM_get_insn_id(cs_struct *h, cs_insn *insn, unsigned int id)
static name_map group_name_maps[]
static mcore_handle handle
@ EVM_GRP_MATH
math instructions
@ EVM_GRP_STORE_READ
instructions read from storage
@ EVM_GRP_STACK_WRITE
instructions write to stack
@ EVM_GRP_JUMP
all jump instructions
@ EVM_GRP_MEM_WRITE
instructions write to memory
@ EVM_GRP_MEM_READ
instructions read from memory
@ EVM_GRP_INVALID
= CS_GRP_INVALID
@ EVM_GRP_STACK_READ
instructions read from stack
@ EVM_GRP_HALT
instructions halt execution
@ EVM_GRP_STORE_WRITE
instructions write to storage
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
const char * id2name(const name_map *map, int max, const unsigned int id)
static struct insnlist * insns[64]