openMSX
RomAscii8_8.hh
Go to the documentation of this file.
1#ifndef ROMASCII8_8_HH
2#define ROMASCII8_8_HH
3
4#include "RomBlocks.hh"
5#include <array>
6
7namespace openmsx {
8
9class RomAscii8_8 final : public Rom8kBBlocks
10{
11public:
13 RomAscii8_8(const DeviceConfig& config,
14 Rom&& rom, SubType subType);
15
16 void reset(EmuTime::param time) override;
17 [[nodiscard]] byte readMem(word address, EmuTime::param time) override;
18 void writeMem(word address, byte value, EmuTime::param time) override;
19 [[nodiscard]] const byte* getReadCacheLine(word address) const override;
20 [[nodiscard]] byte* getWriteCacheLine(word address) const override;
21
22 template<typename Archive>
23 void serialize(Archive& ar, unsigned version);
24
25private:
26 const byte sramEnableBit;
27 const byte sramPages;
28 byte sramEnabled;
29 std::array<byte, NUM_BANKS> sramBlock;
30};
31
32} // namespace openmsx
33
34#endif
byte * getWriteCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
byte readMem(word address, EmuTime::param time) override
Read a byte from a location at a certain time from this device.
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.
const byte * getReadCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for reading.
void serialize(Archive &ar, unsigned version)
void reset(EmuTime::param time) override
This method is called on reset.
This file implemented 3 utility functions:
Definition Autofire.cc:11
uint16_t word
16 bit unsigned integer
Definition openmsx.hh:29