/src/capstonenext/arch/EVM/EVMInstPrinter.c
| Line | Count | Source | 
| 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 | 8.42k | { | 
| 10 | 8.42k |   SStream_concat0(O, EVM_insn_name((csh)MI->csh, MI->Opcode)); | 
| 11 |  |  | 
| 12 | 8.42k |   if (MI->Opcode >= EVM_INS_PUSH1 && MI->Opcode <= EVM_INS_PUSH32) { | 
| 13 | 409 |     unsigned int i; | 
| 14 |  |  | 
| 15 | 409 |     SStream_concat0(O, "\t"); | 
| 16 | 5.63k |     for (i = 0; i < MI->Opcode - EVM_INS_PUSH1 + 1; i++) { | 
| 17 | 5.22k |       SStream_concat(O, "%02x", MI->evm_data[i]); | 
| 18 | 5.22k |     } | 
| 19 | 409 |   } | 
| 20 | 8.42k | } |