shadPS4/src/Util/Disassembler.h

17 lines
333 B
C
Raw Normal View History

2023-05-30 12:33:52 +02:00
#pragma once
#include "zydis/Zydis.h"
2023-05-30 15:27:11 +02:00
#include "../types.h"
2023-05-30 12:33:52 +02:00
class Disassembler
{
public:
Disassembler();
~Disassembler();
2023-05-30 15:27:11 +02:00
void printInst(ZydisDecodedInstruction& inst, ZydisDecodedOperand* operands,u64 address);
void printInstruction(void* code,u64 address);
2023-05-30 12:33:52 +02:00
private:
ZydisDecoder m_decoder;
ZydisFormatter m_formatter;
};