blob: 2a6d6c7f019f8f2eaafb2bc8ccf0f4e579435098 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
#include "include/disassemble.hpp"
int Disasm::disassemble(const uint8_t* buffer, uint32_t pos, uint32_t offset)
{
Instruction* instr = new Instruction(&((uint8_t*)buffer)[pos + offset], offset, pos);
printf("<0x%x:0x%x> - %s - %02x - %s - %d\n", instr->offset, instr->pos, instr->bits, instr->hex, instr->string.c_str(), instr->type);
return sizeof(uint8_t) * 4;
}
|