openMSX
RomMSXtra.hh
Go to the documentation of this file.
1 #ifndef ROMMSXTRA_HH
2 #define ROMMSXTRA_HH
3 
4 #include "MSXRom.hh"
5 #include "Ram.hh"
6 
7 namespace openmsx {
8 
9 class RomMSXtra final : public MSXRom
10 {
11 public:
12  RomMSXtra(const DeviceConfig& config, Rom&& rom);
13 
14  byte readMem(word address, EmuTime::param time) override;
15  const byte* getReadCacheLine(word address) const override;
16  void writeMem(word address, byte value, EmuTime::param time) override;
17  byte* getWriteCacheLine(word address) const override;
18 
19  template<typename Archive>
20  void serialize(Archive& ar, unsigned version);
21 
22 private:
23  Ram ram;
24 };
25 
26 } // namespace openmsx
27 
28 #endif
bool getEnum() const noexcept
Definition: EnumSetting.hh:96
byte * getWriteCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing...
Definition: RomMSXtra.cc:46
byte readMem(word address, EmuTime::param time) override
Read a byte from a location at a certain time from this device.
Definition: RomMSXtra.cc:15
void serialize(Archive &ar, unsigned version)
Definition: RomMSXtra.cc:56
RomMSXtra(const DeviceConfig &config, Rom &&rom)
Definition: RomMSXtra.cc:6
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: RomMSXtra.cc:39
const byte * getReadCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for reading...
Definition: RomMSXtra.cc:26