mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-07-25 22:43:55 +00:00
Initial Commit
This commit is contained in:
20
thirdparty/capstone/arch/EVM/EVMInstPrinter.c
vendored
Normal file
20
thirdparty/capstone/arch/EVM/EVMInstPrinter.c
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
/* Capstone Disassembly Engine */
|
||||
/* By Nguyen Anh Quynh, 2018 */
|
||||
|
||||
#include "EVMInstPrinter.h"
|
||||
#include "EVMMapping.h"
|
||||
|
||||
|
||||
void EVM_printInst(MCInst *MI, struct SStream *O, void *PrinterInfo)
|
||||
{
|
||||
SStream_concat0(O, EVM_insn_name((csh)MI->csh, MI->Opcode));
|
||||
|
||||
if (MI->Opcode >= EVM_INS_PUSH1 && MI->Opcode <= EVM_INS_PUSH32) {
|
||||
unsigned int i;
|
||||
|
||||
SStream_concat0(O, "\t");
|
||||
for (i = 0; i < MI->Opcode - EVM_INS_PUSH1 + 1; i++) {
|
||||
SStream_concat(O, "%02x", MI->evm_data[i]);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user