openMSX
RomMatraInk.hh
Go to the documentation of this file.
1 #ifndef ROMMATRAINK_HH
2 #define ROMMATRAINK_HH
3 
4 #include "MSXRom.hh"
5 #include "AmdFlash.hh"
6 
7 namespace openmsx {
8 
9 class RomMatraInk final : public MSXRom
10 {
11 public:
12  RomMatraInk(const DeviceConfig& config, Rom&& rom);
13 
14  void reset(EmuTime::param time) override;
15  byte peekMem(word address, EmuTime::param time) const override;
16  byte readMem(word address, EmuTime::param time) override;
17  void writeMem(word address, byte value, EmuTime::param time) override;
18  const byte* getReadCacheLine(word address) const override;
19  byte* getWriteCacheLine(word address) const override;
20 
21  template<typename Archive>
22  void serialize(Archive& ar, unsigned version);
23 
24 private:
25  AmdFlash flash;
26 };
27 
28 } // namespace openmsx
29 
30 #endif
openmsx::RomMatraInk::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: RomMatraInk.cc:29
openmsx::RomMatraInk::RomMatraInk
RomMatraInk(const DeviceConfig &config, Rom &&rom)
Definition: RomMatraInk.cc:6
openmsx::RomMatraInk::peekMem
byte peekMem(word address, EmuTime::param time) const override
Read a byte from a given memory location.
Definition: RomMatraInk.cc:19
openmsx::RomMatraInk::readMem
byte readMem(word address, EmuTime::param time) override
Read a byte from a location at a certain time from this device.
Definition: RomMatraInk.cc:24
openmsx::AmdFlash
Definition: AmdFlash.hh:18
openmsx::DeviceConfig
Definition: DeviceConfig.hh:20
openmsx::RomMatraInk::serialize
void serialize(Archive &ar, unsigned version)
Definition: RomMatraInk.cc:45
openmsx::MSXRom
Definition: MSXRom.hh:10
AmdFlash.hh
MSXRom.hh
openmsx::RomMatraInk::getWriteCacheLine
byte * getWriteCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
Definition: RomMatraInk.cc:39
openmsx::MSXRom::rom
Rom rom
Definition: MSXRom.hh:20
openmsx::Rom
Definition: Rom.hh:21
openmsx::RomMatraInk::getReadCacheLine
const byte * getReadCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for reading.
Definition: RomMatraInk.cc:34
openmsx::RomMatraInk
Definition: RomMatraInk.hh:10
openmsx::word
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29
openmsx::RomMatraInk::reset
void reset(EmuTime::param time) override
This method is called on reset.
Definition: RomMatraInk.cc:14
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5