openMSX
RomMSXWrite.hh
Go to the documentation of this file.
1 #ifndef ROMMSXWRITE_HH
2 #define ROMMSXWRITE_HH
3 
4 #include "RomBlocks.hh"
5 
6 namespace openmsx {
7 
8 class RomMSXWrite final : public Rom16kBBlocks
9 {
10 public:
11  RomMSXWrite(const DeviceConfig& config, Rom&& rom);
12 
13  void reset(EmuTime::param time) override;
14  void writeMem(word address, byte value, EmuTime::param time) override;
15  byte* getWriteCacheLine(word address) const override;
16 };
17 
18 REGISTER_BASE_CLASS(RomMSXWrite, "RomMSXWrite");
19 
20 } // namespace openmsx
21 
22 #endif
openmsx::DeviceConfig
Definition: DeviceConfig.hh:19
openmsx::REGISTER_BASE_CLASS
REGISTER_BASE_CLASS(Connector, "Connector")
openmsx::RomMSXWrite
Definition: RomMSXWrite.hh:8
openmsx::RomMSXWrite::reset
void reset(EmuTime::param time) override
This method is called on reset.
Definition: RomMSXWrite.cc:17
openmsx::RomBlocks
Definition: RomBlocks.hh:13
openmsx::MSXRom::rom
Rom rom
Definition: MSXRom.hh:20
openmsx::Rom
Definition: Rom.hh:20
openmsx::word
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29
openmsx::RomMSXWrite::RomMSXWrite
RomMSXWrite(const DeviceConfig &config, Rom &&rom)
Definition: RomMSXWrite.cc:11
openmsx::RomMSXWrite::writeMem
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: RomMSXWrite.cc:25
openmsx::RomMSXWrite::getWriteCacheLine
byte * getWriteCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
Definition: RomMSXWrite.cc:34
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
RomBlocks.hh