You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
524 B
27 lines
524 B
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#include <capstone/capstone.h>
|
|
|
|
void print_string_hex(char *comment, unsigned char *str, size_t len);
|
|
|
|
void print_insn_detail_evm(csh handle, cs_insn *ins)
|
|
{
|
|
cs_evm *evm;
|
|
|
|
// detail can be NULL on "data" instruction if SKIPDATA option is turned ON
|
|
if (ins->detail == NULL)
|
|
return;
|
|
|
|
evm = &(ins->detail->evm);
|
|
|
|
if (evm->pop)
|
|
printf("\tPop: %u\n", evm->pop);
|
|
|
|
if (evm->push)
|
|
printf("\tPush: %u\n", evm->push);
|
|
|
|
if (evm->fee)
|
|
printf("\tGas fee: %u\n", evm->fee);
|
|
}
|