mirror of
https://github.com/libretro/Mesen.git
synced 2024-11-23 17:19:39 +00:00
40 lines
960 B
C++
40 lines
960 B
C++
#pragma once
|
|
#include "stdafx.h"
|
|
#include <unordered_map>
|
|
#include "CPU.h"
|
|
|
|
class LabelManager;
|
|
|
|
class DisassemblyInfo
|
|
{
|
|
public:
|
|
static string OPName[256];
|
|
static AddrMode OPMode[256];
|
|
static uint32_t OPSize[256];
|
|
|
|
private:
|
|
string _byteCode;
|
|
uint8_t *_opPointer = nullptr;
|
|
bool _isSubEntryPoint = false;
|
|
bool _isSubExitPoint = false;
|
|
uint32_t _opSize = 0;
|
|
AddrMode _opMode;
|
|
|
|
public:
|
|
DisassemblyInfo(uint8_t* opPointer, bool isSubEntryPoint);
|
|
|
|
void SetSubEntryPoint();
|
|
|
|
int32_t GetEffectiveAddress(State& cpuState, shared_ptr<MemoryManager> memoryManager);
|
|
string GetEffectiveAddressString(State& cpuState, shared_ptr<MemoryManager> memoryManager, shared_ptr<LabelManager> labelManager);
|
|
|
|
string ToString(uint32_t memoryAddr, shared_ptr<MemoryManager> memoryManager, shared_ptr<LabelManager> labelManager);
|
|
string GetByteCode();
|
|
uint32_t GetSize();
|
|
uint16_t GetOpAddr(uint16_t memoryAddr);
|
|
|
|
bool IsSubEntryPoint();
|
|
bool IsSubExitPoint();
|
|
};
|
|
|