mirror of
https://github.com/libretro/Mesen.git
synced 2024-12-11 10:54:01 +00:00
26 lines
570 B
C++
26 lines
570 B
C++
#pragma once
|
|
#include "stdafx.h"
|
|
#include "IMemoryHandler.h"
|
|
|
|
class Debugger;
|
|
class DisassemblyInfo;
|
|
|
|
class CodeRunner : public IMemoryHandler
|
|
{
|
|
private:
|
|
vector<uint8_t> _byteCode;
|
|
Debugger *_debugger;
|
|
bool _running;
|
|
|
|
public:
|
|
static constexpr uint16_t BaseAddress = 0x3000;
|
|
|
|
CodeRunner(vector<uint8_t> byteCode, Debugger *debugger);
|
|
|
|
bool IsRunning();
|
|
DisassemblyInfo GetDisassemblyInfo(uint16_t cpuAddress);
|
|
|
|
void GetMemoryRanges(MemoryRanges &ranges) override;
|
|
uint8_t ReadRAM(uint16_t addr) override;
|
|
void WriteRAM(uint16_t addr, uint8_t value) override;
|
|
}; |