8 constexpr
byte ID = 0xF7;
13 , rom(
getName(),
"Kanji-12 ROM", config)
16 throw MSXException(
"MSXKanji12: wrong kanji ROM, it should be either 128kB or 256kB.");
19 reset(EmuTime::dummy());
30 switch (port & 0x0F) {
40 switch (port & 0x0F) {
58 switch (port & 0x0F) {
64 byte col = ((address - 0x800) / 18) % 192;
65 address = 0x800 + (row * 192 + col) * 18;
69 byte row = (address - 0x800) / (18 * 192);
71 address = 0x800 + (row * 192 + col) * 18;
77 template<
typename Archive>
80 ar.template serializeBase<MSXDevice>(*
this);
83 ar.serialize(
"address", address);
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
byte readSwitchedIO(word port, EmuTime::param time) override
byte peekSwitchedIO(word port, EmuTime::param time) const override
void reset(EmuTime::param time) override
This method is called on reset.
void writeSwitchedIO(word port, byte value, EmuTime::param time) override
MSXKanji12(const DeviceConfig &config)
void serialize(Archive &ar, unsigned version)
string getName(KeyCode keyCode)
Translate key code to key name.
This file implemented 3 utility functions:
uint8_t byte
8 bit unsigned integer
REGISTER_MSXDEVICE(ChakkariCopy, "ChakkariCopy")
uint16_t word
16 bit unsigned integer
#define INSTANTIATE_SERIALIZE_METHODS(CLASS)