openMSX
MSXRom.hh
Go to the documentation of this file.
1#ifndef MSXROM_HH
2#define MSXROM_HH
3
4#include "MSXDevice.hh"
5#include "Rom.hh"
6
7namespace openmsx {
8
9class MSXRom : public MSXDevice
10{
11public:
12 void writeMem(word address, byte value, EmuTime::param time) override;
13 [[nodiscard]] byte* getWriteCacheLine(word address) const override;
14
15 void getExtraDeviceInfo(TclObject& result) const override;
16
17protected:
18 MSXRom(const DeviceConfig& config, Rom&& rom);
19
20protected:
22};
23
24} // namespace openmsx
25
26#endif
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
Definition: MSXDevice.hh:33
MSXRom(const DeviceConfig &config, Rom &&rom)
Definition: MSXRom.cc:7
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: MSXRom.cc:13
void getExtraDeviceInfo(TclObject &result) const override
Definition: MSXRom.cc:23
byte * getWriteCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
Definition: MSXRom.cc:18
This file implemented 3 utility functions:
Definition: Autofire.cc:9
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29