openMSX
PanasonicRam.hh
Go to the documentation of this file.
1#ifndef PANASONICRAM_HH
2#define PANASONICRAM_HH
3
5
6namespace openmsx {
7
8class PanasonicMemory;
9
11{
12public:
13 explicit PanasonicRam(const DeviceConfig& config);
14
15 void writeMem(word address, byte value, EmuTime::param time) override;
16 [[nodiscard]] byte* getWriteCacheLine(word start) const override;
17 void writeIO(word port, byte value, EmuTime::param time) override;
18
19 template<typename Archive>
20 void serialize(Archive& ar, unsigned version);
21
22private:
23 PanasonicMemory& panasonicMemory;
24};
25
26} // namespace openmsx
27
28#endif
void serialize(Archive &ar, unsigned version)
byte * getWriteCacheLine(word start) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
void writeMem(word address, byte value, EmuTime::param time) override
Write a given byte to a given location at a certain time to this device.
void writeIO(word port, byte value, EmuTime::param time) override
Write a byte to a given IO port at a certain time to this device.
This file implemented 3 utility functions:
Definition Autofire.cc:9
uint16_t word
16 bit unsigned integer
Definition openmsx.hh:29