grpc
third_party
bloaty
third_party
capstone
arch
EVM
EVMInstPrinter.c
Go to the documentation of this file.
1
/* Capstone Disassembly Engine */
2
/* By Nguyen Anh Quynh, 2018 */
3
4
#include "
EVMInstPrinter.h
"
5
#include "
EVMMapping.h
"
6
7
8
void
EVM_printInst
(
MCInst
*MI,
struct
SStream
*O,
void
*PrinterInfo)
9
{
10
SStream_concat
(O,
EVM_insn_name
((
csh
)MI->
csh
, MI->
Opcode
));
11
12
if
(MI->
Opcode
>=
EVM_INS_PUSH1
&& MI->
Opcode
<=
EVM_INS_PUSH32
) {
13
unsigned
int
i
;
14
15
SStream_concat0
(O,
"\t"
);
16
for
(
i
= 0;
i
< MI->
Opcode
-
EVM_INS_PUSH1
+ 1;
i
++) {
17
SStream_concat
(O,
"%02x"
, MI->
evm_data
[
i
]);
18
}
19
}
20
}
EVM_printInst
void EVM_printInst(MCInst *MI, struct SStream *O, void *PrinterInfo)
Definition:
EVMInstPrinter.c:8
MCInst::Opcode
unsigned Opcode
Definition:
MCInst.h:93
EVM_INS_PUSH1
@ EVM_INS_PUSH1
Definition:
evm.h:83
EVMInstPrinter.h
MCInst::csh
cs_struct * csh
Definition:
MCInst.h:97
EVM_insn_name
const char * EVM_insn_name(csh handle, unsigned int id)
SStream
Definition:
SStream.h:9
SStream_concat0
void SStream_concat0(SStream *ss, const char *s)
Definition:
SStream.c:31
csh
size_t csh
Definition:
capstone.h:71
MCInst
Definition:
MCInst.h:88
EVMMapping.h
MCInst::evm_data
unsigned char evm_data[32]
Definition:
MCInst.h:110
SStream_concat
void SStream_concat(SStream *ss, const char *fmt,...)
Definition:
SStream.c:42
EVM_INS_PUSH32
@ EVM_INS_PUSH32
Definition:
evm.h:114
i
uint64_t i
Definition:
abseil-cpp/absl/container/btree_benchmark.cc:230
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:19