openMSX
RomDRAM.hh
Go to the documentation of this file.
1#ifndef ROMDRAM_HH
2#define ROMDRAM_HH
3
4#include "MSXRom.hh"
5
6namespace openmsx {
7
8class PanasonicMemory;
9
10class RomDRAM final : public MSXRom
11{
12public:
13 RomDRAM(const DeviceConfig& config, Rom&& rom);
14
15 [[nodiscard]] byte readMem(word address, EmuTime::param time) override;
16 [[nodiscard]] const byte* getReadCacheLine(word address) const override;
17
18private:
19 PanasonicMemory& panasonicMemory;
20 const unsigned baseAddr;
21};
22
23} // namespace openmsx
24
25#endif
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
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
This file implemented 3 utility functions:
Definition Autofire.cc:9
uint16_t word
16 bit unsigned integer
Definition openmsx.hh:29