2015-05-31 21:21:47 +00:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
|
|
|
|
class HostDisassembler
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual ~HostDisassembler() {}
|
2015-08-07 07:43:54 +00:00
|
|
|
virtual std::string DisassembleHostBlock(const u8* code_start, const u32 code_size, u32* host_instructions_count, u64 starting_pc) { return "(No disassembler)"; }
|
2015-05-31 21:21:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
HostDisassembler* GetNewDisassembler(const std::string& arch);
|
|
|
|
std::string DisassembleBlock(HostDisassembler* disasm, u32* address, u32* host_instructions_count, u32* code_size);
|