mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
22 lines
731 B
C++
22 lines
731 B
C++
#pragma once
|
|
#include "pch.h"
|
|
#include "Debugger/DisassemblyInfo.h"
|
|
|
|
class LabelManager;
|
|
class EmuSettings;
|
|
class MemoryDumper;
|
|
struct Cx4State;
|
|
|
|
class Cx4DisUtils
|
|
{
|
|
public:
|
|
static void GetDisassembly(DisassemblyInfo &info, string &out, uint32_t memoryAddr, LabelManager* labelManager, EmuSettings* settings);
|
|
static EffectiveAddressInfo GetEffectiveAddress(DisassemblyInfo& info, Cx4State& state, MemoryDumper* memoryDumper);
|
|
static bool IsConditionalJump(uint8_t opCode, uint8_t param);
|
|
static bool IsUnconditionalJump(uint8_t opCode);
|
|
static bool IsJumpToSub(uint8_t opCode);
|
|
static bool IsReturnInstruction(uint8_t opCode);
|
|
static uint8_t GetOpSize() { return 2; }
|
|
|
|
static bool CanDisassembleNextOp(uint8_t opCode);
|
|
};
|