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
20 void getInfo(TclObject& result) const;
21
22protected:
23 MSXRom(const DeviceConfig& config, Rom&& rom);
24
25protected:
27};
28
29} // namespace openmsx
30
31#endif
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
Definition: MSXDevice.hh:36
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:42
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
void getInfo(TclObject &result) const
Add dict values with info to result.
Definition: MSXRom.cc:23
This file implemented 3 utility functions:
Definition: Autofire.cc:9
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29