mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-18 01:14:56 +00:00
initial disasm class using zydis
This commit is contained in:
parent
b124bac0f7
commit
dfc234f363
4 changed files with 60 additions and 2 deletions
16
src/Util/Disassembler.h
Normal file
16
src/Util/Disassembler.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
#pragma once
|
||||
|
||||
#include "zydis/Zydis.h"
|
||||
|
||||
class Disassembler
|
||||
{
|
||||
public:
|
||||
Disassembler();
|
||||
~Disassembler();
|
||||
void printInst(ZydisDecodedInstruction& inst, ZydisDecodedOperand* operands);
|
||||
void printInstruction(void* code);
|
||||
|
||||
private:
|
||||
ZydisDecoder m_decoder;
|
||||
ZydisFormatter m_formatter;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue