openMSX
MSXKanji.hh
Go to the documentation of this file.
1#ifndef MSXKANJI_HH
2#define MSXKANJI_HH
3
4#include "MSXDevice.hh"
5#include "Rom.hh"
6
7namespace openmsx {
8
9class MSXKanji final : public MSXDevice
10{
11public:
12 explicit MSXKanji(const DeviceConfig& config);
13
14 [[nodiscard]] byte readIO(word port, EmuTime::param time) override;
15 [[nodiscard]] byte peekIO(word port, EmuTime::param time) const override;
16 void writeIO(word port, byte value, EmuTime::param time) override;
17 void reset(EmuTime::param time) override;
18
19 void getExtraDeviceInfo(TclObject& result) const override;
20
21 template<typename Archive>
22 void serialize(Archive& ar, unsigned version);
23
24private:
25 Rom rom;
26 unsigned adr1, adr2;
27 const bool isLascom;
28 const byte highAddressMask;
29};
30
31} // namespace openmsx
32
33#endif
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
Definition MSXDevice.hh:36
void reset(EmuTime::param time) override
This method is called on reset.
Definition MSXKanji.cc:26
void getExtraDeviceInfo(TclObject &result) const override
Definition MSXKanji.cc:90
void serialize(Archive &ar, unsigned version)
Definition MSXKanji.cc:96
byte peekIO(word port, EmuTime::param time) const override
Read a byte from a given IO port.
Definition MSXKanji.cc:69
byte readIO(word port, EmuTime::param time) override
Read a byte from an IO port at a certain time from this device.
Definition MSXKanji.cc:50
void writeIO(word port, byte value, EmuTime::param time) override
Write a byte to a given IO port at a certain time to this device.
Definition MSXKanji.cc:32
This file implemented 3 utility functions:
Definition Autofire.cc:11
uint16_t word
16 bit unsigned integer
Definition openmsx.hh:29