| 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 |
|
| 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 |
} |
| 36 |
|
| 37 |
#endif |