OXYGENHUB
◆ main openmsx / src / memory / MSXRom.hh
658 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
1
#ifndef MSXROM_HH
2
#define MSXROM_HH
3
4
#include "MSXDevice.hh"
5
#include "Rom.hh"
6
#include "RomTypes.hh"
7
8
namespace openmsx {
9
10
class MSXRom : public MSXDevice
11
{
12
public:
13
	void writeMem(uint16_t address, byte value, EmuTime time) override;
14
	[[nodiscard]] byte* getWriteCacheLine(uint16_t address) override;
15
16
	void getExtraDeviceInfo(TclObject& result) const override;
17
18
	/**
19
	 * Add dict values with info to result
20
	 */
21
	void getInfo(TclObject& result) const;
22
23
	RomType getRomType() const;
24
25
protected:
26
	MSXRom(const DeviceConfig& config, Rom&& rom);
27
28
private:
29
	std::string_view getMapperTypeString() const;
30
31
protected:
32
	Rom rom;
33
};
34
35
} // namespace openmsx
36
37
#endif