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 template<typename Archive>
24 void serialize(Archive& ar, unsigned version);
25
26private:
27 Rom rom;
28 unsigned address;
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:33
byte readSwitchedIO(word port, EmuTime::param time) override
Definition: MSXKanji12.cc:27
byte peekSwitchedIO(word port, EmuTime::param time) const override
Definition: MSXKanji12.cc:38
void reset(EmuTime::param time) override
This method is called on reset.
Definition: MSXKanji12.cc:22
void writeSwitchedIO(word port, byte value, EmuTime::param time) override
Definition: MSXKanji12.cc:56
MSXKanji12(const DeviceConfig &config)
Definition: MSXKanji12.cc:10
void serialize(Archive &ar, unsigned version)
Definition: MSXKanji12.cc:78
This file implemented 3 utility functions:
Definition: Autofire.cc:9
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29