OXYGENHUB
◆ main openmsx / src / memory / PanasonicRam.hh
602 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
1
#ifndef PANASONICRAM_HH
2
#define PANASONICRAM_HH
3
4
#include "MSXMemoryMapperBase.hh"
5
6
namespace openmsx {
7
8
class PanasonicMemory;
9
10
class PanasonicRam final : public MSXMemoryMapperBase
11
{
12
public:
13
	explicit PanasonicRam(const DeviceConfig& config);
14
15
	void writeMem(uint16_t address, byte value, EmuTime time) override;
16
	[[nodiscard]] byte* getWriteCacheLine(uint16_t start) override;
17
	void writeIO(uint16_t port, byte value, EmuTime time) override;
18
19
	template<typename Archive>
20
	void serialize(Archive& ar, unsigned version);
21
22
private:
23
	PanasonicMemory& panasonicMemory;
24
};
25
26
} // namespace openmsx
27
28
#endif