| 1 | /* Capstone Disassembly Engine */cxx . . $ `<file>/arch/EVM/EVMInstPrinter.c`/ |
| 2 | /* By Nguyen Anh Quynh, 2018 */ |
| 3 | |
| 4 | #include "EVMInstPrinter.h"cxx . . $ `<file>/arch/EVM/EVMInstPrinter.h`/ |
| 5 | #include "EVMMapping.h"cxx . . $ `<file>/arch/EVM/EVMMapping.h`/ |
| 6 | |
| 7 | |
| 8 | void EVM_printInstcxx . . $ EVM_printInst(6238f66e5ea10f57).(MCInstcxx . . $ MCInst# *MI, struct SStreamcxx . . $ SStream# *O, void *PrinterInfo) |
| 9 | { |
| 10 | SStream_concat0cxx . . $ SStream_concat0(a720692b9b1c0c27).(O, EVM_insn_namecxx . . $ EVM_insn_name(efd1348d9ae5172e).((cshcxx . . $ csh#)MI->cshcxx . . $ MCInst#csh., MI->Opcodecxx . . $ MCInst#Opcode.)); |
| 11 | |
| 12 | if (MI->Opcodecxx . . $ MCInst#Opcode. >= EVM_INS_PUSH1cxx . . $ EVM_INS_PUSH1. && MI->Opcodecxx . . $ MCInst#Opcode. <= EVM_INS_PUSH32cxx . . $ EVM_INS_PUSH32.) { |
| 13 | unsigned int i; |
| 14 | |
| 15 | SStream_concat0cxx . . $ SStream_concat0(a720692b9b1c0c27).(O, "\t"); |
| 16 | for (i = 0; i < MI->Opcodecxx . . $ MCInst#Opcode. - EVM_INS_PUSH1cxx . . $ EVM_INS_PUSH1. + 1; i++) { |
| 17 | SStream_concatcxx . . $ SStream_concat(72515e07697b04b4).(O, "%02x", MI->evm_datacxx . . $ MCInst#evm_data.[i]); |
| 18 | } |
| 19 | } |
| 20 | } |