1#ifndef MSXMATSUSHITA_HH
2#define MSXMATSUSHITA_HH
25 void reset(EmuTime::param time)
override;
26 [[nodiscard]]
byte readIO(
word port, EmuTime::param time)
override;
27 [[nodiscard]]
byte peekIO(
word port, EmuTime::param time)
const override;
28 void writeIO(
word port,
byte value, EmuTime::param time)
override;
35 template<
typename Archive>
36 void serialize(Archive& ar,
unsigned version);
40 void delay(EmuTime::param time);
49 const std::unique_ptr<SRAM> sram;
53 const bool turboAvailable;
54 bool turboEnabled =
false;
Represents a clock with a fixed frequency.
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
void writeIO(word port, byte value, EmuTime::param time) override
Write a byte to a given IO port at a certain time to this device.
byte readIO(word port, EmuTime::param time) override
Read a byte from an IO port at a certain time from this device.
void serialize(Archive &ar, unsigned version)
void reset(EmuTime::param time) override
This method is called on reset.
byte peekSwitchedIO(word port, EmuTime::param time) const override
~MSXMatsushita() override
byte peekIO(word port, EmuTime::param time) const override
Read a byte from a given IO port.
void writeSwitchedIO(word port, byte value, EmuTime::param time) override
byte readSwitchedIO(word port, EmuTime::param time) override
Unified implementation of MSX Video Display Processors (VDPs).
This file implemented 3 utility functions:
uint8_t nibble
4 bit integer
uint16_t word
16 bit unsigned integer