1#ifndef MSXVICTORHC9XSYSTEMCONTROL_HH
2#define MSXVICTORHC9XSYSTEMCONTROL_HH
13 [[nodiscard]]
byte readMem(
word address, EmuTime::param time)
override;
14 [[nodiscard]]
byte peekMem(
word address, EmuTime::param time)
const override;
15 void writeMem(
word address,
byte value, EmuTime::param time)
override;
18 template<
typename Archive>
19 void serialize(Archive& ar,
unsigned version);
22 byte systemControlRegister = 0x80;
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.
This file implemented 3 utility functions:
uint16_t word
16 bit unsigned integer