2015-05-31 15:21:47 -06:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2017-03-02 19:21:03 -07:00
|
|
|
#include <memory>
|
2015-05-31 15:21:47 -06:00
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
|
|
|
|
class HostDisassembler
|
|
|
|
{
|
|
|
|
public:
|
2016-06-24 02:43:46 -06:00
|
|
|
virtual ~HostDisassembler() {}
|
|
|
|
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 15:21:47 -06:00
|
|
|
};
|
|
|
|
|
2017-03-02 19:21:03 -07:00
|
|
|
std::unique_ptr<HostDisassembler> GetNewDisassembler(const std::string& arch);
|
2016-06-24 02:43:46 -06:00
|
|
|
std::string DisassembleBlock(HostDisassembler* disasm, u32* address, u32* host_instructions_count,
|
|
|
|
u32* code_size);
|