From af1a266670d040d2f4083ff309d732d648afba2a Mon Sep 17 00:00:00 2001 From: Angelos Mouzakitis Date: Tue, 10 Oct 2023 14:33:42 +0000 Subject: Add submodule dependency files Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec --- capstone/cstool/cstool_evm.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 capstone/cstool/cstool_evm.c (limited to 'capstone/cstool/cstool_evm.c') diff --git a/capstone/cstool/cstool_evm.c b/capstone/cstool/cstool_evm.c new file mode 100644 index 000000000..d3ecb5c34 --- /dev/null +++ b/capstone/cstool/cstool_evm.c @@ -0,0 +1,26 @@ +#include +#include + +#include + +void print_insn_detail_evm(csh handle, cs_insn *ins); + +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); +} -- cgit