openMSX
RomDRAM.hh
Go to the documentation of this file.
1 #ifndef ROMDRAM_HH
2 #define ROMDRAM_HH
3 
4 #include "MSXRom.hh"
5 
6 namespace openmsx {
7 
8 class PanasonicMemory;
9 
10 class RomDRAM final : public MSXRom
11 {
12 public:
13  RomDRAM(const DeviceConfig& config, Rom&& rom);
14 
15  byte readMem(word address, EmuTime::param time) override;
16  const byte* getReadCacheLine(word address) const override;
17 
18 private:
19  PanasonicMemory& panasonicMemory;
20  const unsigned baseAddr;
21 };
22 
23 } // namespace openmsx
24 
25 #endif
openmsx::DeviceConfig
Definition: DeviceConfig.hh:19
openmsx::MSXRom
Definition: MSXRom.hh:9
openmsx::RomDRAM::getReadCacheLine
const byte * getReadCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for reading.
Definition: RomDRAM.cc:30
MSXRom.hh
openmsx::RomDRAM::readMem
byte readMem(word address, EmuTime::param time) override
Read a byte from a location at a certain time from this device.
Definition: RomDRAM.cc:25
openmsx::PanasonicMemory
Definition: PanasonicMemory.hh:14
openmsx::MSXRom::rom
Rom rom
Definition: MSXRom.hh:20
openmsx::Rom
Definition: Rom.hh:20
openmsx::RomDRAM::RomDRAM
RomDRAM(const DeviceConfig &config, Rom &&rom)
Definition: RomDRAM.cc:16
openmsx::RomDRAM
Definition: RomDRAM.hh:10
openmsx::word
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5