openMSX
PanasonicRam.hh
Go to the documentation of this file.
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(word address, byte value, EmuTime::param time) override;
16  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 
22 private:
23  PanasonicMemory& panasonicMemory;
24 };
25 
26 } // namespace openmsx
27 
28 #endif
openmsx::PanasonicRam::writeIO
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.
Definition: PanasonicRam.cc:33
openmsx::DeviceConfig
Definition: DeviceConfig.hh:19
MSXMemoryMapperBase.hh
openmsx::PanasonicRam::writeMem
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.
Definition: PanasonicRam.cc:15
openmsx::PanasonicRam::PanasonicRam
PanasonicRam(const DeviceConfig &config)
Definition: PanasonicRam.cc:8
openmsx::PanasonicRam::getWriteCacheLine
byte * getWriteCacheLine(word start) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
Definition: PanasonicRam.cc:23
openmsx::PanasonicMemory
Definition: PanasonicMemory.hh:14
openmsx::PanasonicRam::serialize
void serialize(Archive &ar, unsigned version)
Definition: PanasonicRam.cc:48
openmsx::word
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29
openmsx::MSXMemoryMapperBase
Definition: MSXMemoryMapperBase.hh:11
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
openmsx::PanasonicRam
Definition: PanasonicRam.hh:10