openMSX
RomMSXDOS2.hh
Go to the documentation of this file.
1#ifndef ROMMSXDOS2_HH
2#define ROMMSXDOS2_HH
3
4#include "RomBlocks.hh"
5
6namespace openmsx {
7
8class RomMSXDOS2 final : public Rom16kBBlocks
9{
10public:
11 RomMSXDOS2(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 [[nodiscard]] byte* getWriteCacheLine(word address) const override;
16
17private:
18 const byte range;
19};
20
21} // namespace openmsx
22
23#endif
byte * getWriteCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
Definition RomMSXDOS2.cc:48
void reset(EmuTime::param time) override
This method is called on reset.
Definition RomMSXDOS2.cc:22
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 RomMSXDOS2.cc:30
This file implemented 3 utility functions:
Definition Autofire.cc:9
uint16_t word
16 bit unsigned integer
Definition openmsx.hh:29