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#include "RomTypes.hh"
7
8namespace openmsx {
9
10class MSXRom : public MSXDevice
11{
12public:
13 void writeMem(word address, byte value, EmuTime::param time) override;
14 [[nodiscard]] byte* getWriteCacheLine(word address) override;
15
16 void getExtraDeviceInfo(TclObject& result) const override;
17
21 void getInfo(TclObject& result) const;
22
23 RomType getRomType() const;
24
25protected:
26 MSXRom(const DeviceConfig& config, Rom&& rom);
27
28private:
29 std::string_view getMapperTypeString() const;
30
31protected:
33};
34
35} // namespace openmsx
36
37#endif
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
Definition MSXDevice.hh:36
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:14
void getExtraDeviceInfo(TclObject &result) const override
Definition MSXRom.cc:56
RomType getRomType() const
Definition MSXRom.cc:33
void getInfo(TclObject &result) const
Add dict values with info to result.
Definition MSXRom.cc:40
byte * getWriteCacheLine(word address) override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
Definition MSXRom.cc:19
This file implemented 3 utility functions:
Definition Autofire.cc:11
uint16_t word
16 bit unsigned integer
Definition openmsx.hh:29