openMSX
PanasonicRam.hh
Go to the documentation of this file.
1 #ifndef PANASONICRAM_HH
2 #define PANASONICRAM_HH
3 
4 #include "MSXMemoryMapper.hh"
5 
6 namespace openmsx {
7 
8 class PanasonicMemory;
9 
10 class PanasonicRam final : public MSXMemoryMapper
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 
18  template<typename Archive>
19  void serialize(Archive& ar, unsigned version);
20 
21 private:
22  PanasonicMemory& panasonicMemory;
23 };
24 
25 } // namespace openmsx
26 
27 #endif
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
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
PanasonicRam(const DeviceConfig &config)
Definition: PanasonicRam.cc:8
uint8_t byte
8 bit unsigned integer
Definition: openmsx.hh:26
void serialize(Archive &ar, unsigned version)
Definition: PanasonicRam.cc:34
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29