Mesen/Core/Disassembler.h
Souryo 48409ae82b -Rewrote entire GUI in .NET
-Several other fixes (bugfixes, refactoring, etc.)
-Added a few more features to debugger
2015-07-01 23:17:14 -04:00

23 lines
534 B
C++

#pragma once
#include "stdafx.h"
class DisassemblyInfo;
class Disassembler
{
private:
vector<shared_ptr<DisassemblyInfo>> _disassembleCache;
vector<shared_ptr<DisassemblyInfo>> _disassembleMemoryCache;
uint8_t* _internalRAM;
uint8_t* _prgROM;
uint32_t _prgSize;
public:
Disassembler(uint8_t* internalRAM, uint8_t* prgROM, uint32_t prgSize);
~Disassembler();
void BuildCache(uint32_t absoluteAddr, uint16_t memoryAddr);
string GetRAMCode();
string GetCode(uint32_t startAddr, uint32_t endAddr, uint16_t &memoryAddr);
};