34 assert (address == 0x7FFD);
35 return systemControlRegister;
40 assert (address == 0x7FFD);
41 systemControlRegister = (value & 0x3F) | 0x80;
50template<
typename Archive>
53 ar.template serializeBase<MSXDevice>(*
this);
54 ar.serialize(
"systemControlRegister", systemControlRegister);
#define REGISTER_MSXDEVICE(CLASS, NAME)
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
byte peekMem(word address, EmuTime::param time) const override
Read a byte from a given memory location.
void writeMem(word address, byte value, EmuTime::param time) override
Write a given byte to a given location at a certain time to this device.
void serialize(Archive &ar, unsigned version)
bool allowUnaligned() const override
By default we don't allow unaligned <mem> specifications in the config file.
byte readMem(word address, EmuTime::param time) override
Read a byte from a location at a certain time from this device.
MSXVictorHC9xSystemControl(const DeviceConfig &config)
This file implemented 3 utility functions:
uint16_t word
16 bit unsigned integer
#define INSTANTIATE_SERIALIZE_METHODS(CLASS)