shadPS4/src/common/disassembler.h
GPUCode 6f4c6ae0bb
code: Add clang-format target and CI workflow (#82)
* code: Add clang format target, rules and CI workflow

* code: Run clang format on sources
2024-02-23 22:57:57 +02:00

21 lines
400 B
C++

#pragma once
#include <Zydis/Zydis.h>
#include "common/types.h"
namespace Common {
class Disassembler {
public:
Disassembler();
~Disassembler();
void printInst(ZydisDecodedInstruction& inst, ZydisDecodedOperand* operands, u64 address);
void printInstruction(void* code, u64 address);
private:
ZydisDecoder m_decoder;
ZydisFormatter m_formatter;
};
} // namespace Common