openMSX
RomMatraCompilation.hh
Go to the documentation of this file.
1 #ifndef ROMMATRACOMPILATION_HH
2 #define ROMMATRACOMPILATION_HH
3 
4 #include "RomBlocks.hh"
5 
6 namespace openmsx {
7 
8 class RomMatraCompilation final : public Rom8kBBlocks
9 {
10 public:
11  RomMatraCompilation(const DeviceConfig& config, Rom&& rom);
12 
13  void reset(EmuTime::param time) override;
14  void writeMem(word address, byte value, EmuTime::param time) override;
15  byte* getWriteCacheLine(word address) const override;
16 
17  template<typename Archive>
18  void serialize(Archive& ar, unsigned version);
19 
20 private:
21  byte blockOffset;
22 };
23 
24 } // namespace openmsx
25 
26 #endif
openmsx::DeviceConfig
Definition: DeviceConfig.hh:20
openmsx::RomMatraCompilation::serialize
void serialize(Archive &ar, unsigned version)
Definition: RomMatraCompilation.cc:63
openmsx::RomBlocks
Definition: RomBlocks.hh:14
openmsx::RomMatraCompilation::getWriteCacheLine
byte * getWriteCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
Definition: RomMatraCompilation.cc:53
openmsx::MSXRom::rom
Rom rom
Definition: MSXRom.hh:20
openmsx::Rom
Definition: Rom.hh:21
openmsx::RomMatraCompilation
Definition: RomMatraCompilation.hh:9
openmsx::RomMatraCompilation::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: RomMatraCompilation.cc:36
openmsx::word
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29
openmsx::RomMatraCompilation::RomMatraCompilation
RomMatraCompilation(const DeviceConfig &config, Rom &&rom)
Definition: RomMatraCompilation.cc:17
openmsx::RomMatraCompilation::reset
void reset(EmuTime::param time) override
This method is called on reset.
Definition: RomMatraCompilation.cc:23
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5
RomBlocks.hh