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
7namespace openmsx {
8
9class RomMSXtra final : public MSXRom
10{
11public:
12 RomMSXtra(const DeviceConfig& config, Rom&& rom);
13
14 [[nodiscard]] byte readMem(word address, EmuTime::param time) override;
15 [[nodiscard]] const byte* getReadCacheLine(word address) const override;
16 void writeMem(word address, byte value, EmuTime::param time) override;
17 [[nodiscard]] byte* getWriteCacheLine(word address) const override;
18
19 template<typename Archive>
20 void serialize(Archive& ar, unsigned version);
21
22private:
23 Ram ram;
24};
25
26} // namespace openmsx
27
28#endif
void serialize(Archive &ar, unsigned version)
Definition RomMSXtra.cc:57
byte readMem(word address, EmuTime::param time) override
Read a byte from a location at a certain time from this device.
Definition RomMSXtra.cc:16
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:40
byte * getWriteCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
Definition RomMSXtra.cc:47
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:27
This file implemented 3 utility functions:
Definition Autofire.cc:11
uint16_t word
16 bit unsigned integer
Definition openmsx.hh:29