openMSX
CanonWordProcessor.hh
Go to the documentation of this file.
1#ifndef CANONWORDPROCESSOR_HH
2#define CANONWORDPROCESSOR_HH
3
4#include "MSXDevice.hh"
5#include "Rom.hh"
6
7namespace openmsx {
8
10{
11public:
12 explicit CanonWordProcessor(const DeviceConfig& config);
13
14 void reset(EmuTime::param time) override;
15
16 [[nodiscard]] byte readMem(word address, EmuTime::param time) override;
17 [[nodiscard]] byte peekMem(word address, EmuTime::param time) const override;
18 void writeMem(word address, byte value, EmuTime::param time) override;
19 [[nodiscard]] const byte* getReadCacheLine (word start) const override;
20 [[nodiscard]] byte* getWriteCacheLine(word start) const override;
21
22 template<typename Archive>
23 void serialize(Archive& ar, unsigned version);
24
25private:
26 [[nodiscard]] const byte* readHelper(word address) const;
27
28private:
29 Rom programRom;
30 Rom dictionaryRom;
31 byte select;
32};
33
34} // namespace openmsx
35
36#endif
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.
byte * getWriteCacheLine(word start) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
CanonWordProcessor(const DeviceConfig &config)
void reset(EmuTime::param time) override
This method is called on reset.
byte readMem(word address, EmuTime::param time) override
Read a byte from a location at a certain time from this device.
void serialize(Archive &ar, unsigned version)
byte peekMem(word address, EmuTime::param time) const override
Read a byte from a given memory location.
const byte * getReadCacheLine(word start) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for reading.
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
Definition: MSXDevice.hh:34
This file implemented 3 utility functions:
Definition: Autofire.cc:9
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29