mirror of
https://github.com/open-goal/jak-project
synced 2026-09-06 19:21:00 -04:00
bfc4c18ada
- Adds `capstone` as a disassembling library that could eventually replace Zydis (for now left that alone) - Replicates all of the existing x86 tests to ARM64, fixed a bunch of underlying issues along the way - There are a very small handful of tests remaining that need to be enabled / fixed
20 lines
482 B
C
Vendored
Generated
20 lines
482 B
C
Vendored
Generated
/* 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]);
|
|
}
|
|
}
|
|
}
|