OXYGENHUB
◆ main openmsx / src / memory / RomDRAM.hh
456 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
e8555c89 Andy McCall 1
#ifndef ROMDRAM_HH
2
#define ROMDRAM_HH
3
4
#include "MSXRom.hh"
5
6
namespace openmsx {
7
8
class PanasonicMemory;
9
10
class RomDRAM final : public MSXRom
11
{
12
public:
13
	RomDRAM(const DeviceConfig& config, Rom&& rom);
14
15
	[[nodiscard]] byte readMem(uint16_t address, EmuTime time) override;
16
	[[nodiscard]] const byte* getReadCacheLine(uint16_t address) const override;
17
18
private:
19
	PanasonicMemory& panasonicMemory;
20
	const unsigned baseAddr;
21
};
22
23
} // namespace openmsx
24
25
#endif