12class PrinterPortDevice;
20 void reset(EmuTime::param time)
override;
22 [[nodiscard]]
byte readMem(
word address, EmuTime::param time)
override;
23 [[nodiscard]]
byte peekMem(
word address, EmuTime::param time)
const override;
24 void writeMem(
word address,
byte value, EmuTime::param time)
override;
30 [[nodiscard]] std::string_view
getClass()
const override;
33 template<
typename Archive>
34 void serialize(Archive& ar,
unsigned version);
40 void setStrobe(
bool newStrobe, EmuTime::param time);
41 void writeData(uint8_t newData, EmuTime::param time);
48 std::array<uint16_t, 4> fontAddress;
Represents something you can plug devices into.
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
YamahaSKW01(const DeviceConfig &config)
byte peekMem(word address, EmuTime::param time) const override
Read a byte from a given memory location.
void plug(Pluggable &dev, EmuTime::param time) override
This plugs a Pluggable in this Connector.
byte * getWriteCacheLine(word start) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
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 reset(EmuTime::param time) override
This method is called on reset.
std::string_view getDescription() const override
Get a description for this connector.
byte readMem(word address, EmuTime::param time) override
Read a byte from a location at a certain time from this device.
void serialize(Archive &ar, unsigned version)
std::string_view getClass() const override
A Connector belong to a certain class.
const byte * getReadCacheLine(word start) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for reading.
This file implemented 3 utility functions:
uint16_t word
16 bit unsigned integer