shadPS4/src/common/disassembler.h

25 lines
513 B
C
Raw Normal View History

2024-02-23 22:32:32 +01:00
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2023-05-30 12:33:52 +02:00
#pragma once
2023-11-05 12:22:18 +01:00
#include <Zydis/Zydis.h>
2023-11-05 12:41:10 +01:00
#include "common/types.h"
2023-05-30 12:33:52 +02:00
namespace Common {
class Disassembler {
2023-05-30 12:33:52 +02:00
public:
Disassembler();
~Disassembler();
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;
2023-06-23 03:48:55 +02:00
};
} // namespace Common