| 1 |
#ifndef CANONWORDPROCESSOR_HH |
| 2 |
#define CANONWORDPROCESSOR_HH |
| 3 |
|
| 4 |
#include "MSXDevice.hh" |
| 5 |
#include "Rom.hh" |
| 6 |
|
| 7 |
namespace openmsx { |
| 8 |
|
| 9 |
class CanonWordProcessor final : public MSXDevice |
| 10 |
{ |
| 11 |
public: |
| 12 |
explicit CanonWordProcessor(DeviceConfig& config); |
| 13 |
|
| 14 |
void reset(EmuTime time) override; |
| 15 |
|
| 16 |
[[nodiscard]] byte readMem(uint16_t address, EmuTime time) override; |
| 17 |
[[nodiscard]] byte peekMem(uint16_t address, EmuTime time) const override; |
| 18 |
void writeMem(uint16_t address, byte value, EmuTime time) override; |
| 19 |
[[nodiscard]] const byte* getReadCacheLine (uint16_t start) const override; |
| 20 |
[[nodiscard]] byte* getWriteCacheLine(uint16_t start) override; |
| 21 |
|
| 22 |
template<typename Archive> |
| 23 |
void serialize(Archive& ar, unsigned version); |
| 24 |
|
| 25 |
private: |
| 26 |
[[nodiscard]] const byte* readHelper(uint16_t address) const; |
| 27 |
|
| 28 |
private: |
| 29 |
Rom programRom; |
| 30 |
Rom dictionaryRom; |
| 31 |
byte select; |
| 32 |
}; |
| 33 |
|
| 34 |
} |
| 35 |
|
| 36 |
#endif |