OXYGENHUB
◆ main openmsx / src / memory / RomAscii8kB.hh
618 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
e8555c89 Andy McCall 1
#ifndef ROMASCII8KB_HH
2
#define ROMASCII8KB_HH
3
4
#include "RomBlocks.hh"
5
6
namespace openmsx {
7
8
class RomAscii8kB : public Rom8kBBlocks
9
{
10
public:
11
	/** @param reversedRegs when true the four bank registers map to the
12
	  *   memory regions in the opposite order (see writeMem()).
13
	  */
14
	RomAscii8kB(const DeviceConfig& config, Rom&& rom,
15
	            bool reversedRegs = false);
16
17
	void reset(EmuTime time) override;
18
	void writeMem(uint16_t address, byte value, EmuTime time) override;
19
	[[nodiscard]] byte* getWriteCacheLine(uint16_t address) override;
20
21
private:
22
	const bool reversedRegs;
23
};
24
25
} // namespace openmsx
26
27
#endif