2020-05-18 16:10:53 -04:00
|
|
|
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
|
|
class DisassemblyInfo;
|
|
|
|
class Console;
|
|
|
|
class LabelManager;
|
|
|
|
class EmuSettings;
|
|
|
|
struct GbCpuState;
|
|
|
|
|
|
|
|
class GameboyDisUtils
|
|
|
|
{
|
|
|
|
public:
|
2020-12-19 23:30:09 +03:00
|
|
|
static void GetDisassembly(DisassemblyInfo& info, string& out, uint32_t memoryAddr, LabelManager* labelManager,
|
|
|
|
EmuSettings* settings);
|
2020-05-18 16:10:53 -04:00
|
|
|
static int32_t GetEffectiveAddress(DisassemblyInfo& info, Console* console, GbCpuState& state);
|
|
|
|
static uint8_t GetOpSize(uint8_t opCode);
|
|
|
|
static bool IsJumpToSub(uint8_t opCode);
|
|
|
|
static bool IsReturnInstruction(uint8_t opCode);
|
2020-06-06 22:27:54 -04:00
|
|
|
static string GetOpTemplate(uint8_t op, bool prefixed);
|
2020-05-18 16:10:53 -04:00
|
|
|
};
|