openMSX
MSXKanji12.hh
Go to the documentation of this file.
1#ifndef MSXKANJI12_HH
2#define MSXKANJI12_HH
3
4#include "MSXDevice.hh"
6#include "Rom.hh"
7
8namespace openmsx {
9
10class MSXKanji12 final : public MSXDevice, public MSXSwitchedDevice
11{
12public:
13 explicit MSXKanji12(const DeviceConfig& config);
14
15 // MSXDevice
16 void reset(EmuTime::param time) override;
17
18 // MSXSwitchedDevice
19 [[nodiscard]] byte readSwitchedIO(word port, EmuTime::param time) override;
20 [[nodiscard]] byte peekSwitchedIO(word port, EmuTime::param time) const override;
21 void writeSwitchedIO(word port, byte value, EmuTime::param time) override;
22
23 void getExtraDeviceInfo(TclObject& result) const override;
24
25 template<typename Archive>
26 void serialize(Archive& ar, unsigned version);
27
28private:
29 Rom rom;
30 unsigned address;
31};
32
33} // namespace openmsx
34
35#endif
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
Definition MSXDevice.hh:36
byte readSwitchedIO(word port, EmuTime::param time) override
Definition MSXKanji12.cc:29
byte peekSwitchedIO(word port, EmuTime::param time) const override
Definition MSXKanji12.cc:40
void getExtraDeviceInfo(TclObject &result) const override
Definition MSXKanji12.cc:79
void reset(EmuTime::param time) override
This method is called on reset.
Definition MSXKanji12.cc:24
void writeSwitchedIO(word port, byte value, EmuTime::param time) override
Definition MSXKanji12.cc:58
void serialize(Archive &ar, unsigned version)
Definition MSXKanji12.cc:85
This file implemented 3 utility functions:
Definition Autofire.cc:11
uint16_t word
16 bit unsigned integer
Definition openmsx.hh:29