openMSX
RomNeo8.hh
Go to the documentation of this file.
1#ifndef ROMNEO8_HH
2#define ROMNEO8_HH
3
4#include "RomBlocks.hh"
5
6namespace openmsx {
7
8class RomNeo8 final : public Rom8kBBlocks
9{
10public:
11 RomNeo8(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 [[nodiscard]] byte* getWriteCacheLine(word address) override;
16
17 template<typename Archive>
18 void serialize(Archive& ar, unsigned version);
19
20private:
21 std::array<uint16_t, 6> blockReg;
22};
23
24} // namespace openmsx
25
26#endif
byte * getWriteCacheLine(word address) override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
Definition RomNeo8.cc:36
void serialize(Archive &ar, unsigned version)
Definition RomNeo8.cc:43
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 RomNeo8.cc:23
void reset(EmuTime::param time) override
This method is called on reset.
Definition RomNeo8.cc:13
This file implemented 3 utility functions:
Definition Autofire.cc:11
uint16_t word
16 bit unsigned integer
Definition openmsx.hh:29