13class PrinterPortDevice;
21 void reset(EmuTime::param time);
22 [[nodiscard]]
bool getStatus(EmuTime::param time)
const;
23 void setStrobe(
bool newStrobe, EmuTime::param time);
24 void writeData(uint8_t newData, EmuTime::param time);
28 [[nodiscard]] std::string_view
getClass()
const override;
31 template<
typename Archive>
32 void serialize(Archive& ar,
unsigned version);
49 void reset(EmuTime::param time)
override;
51 [[nodiscard]]
byte readMem(
word address, EmuTime::param time)
override;
52 [[nodiscard]]
byte peekMem(
word address, EmuTime::param time)
const override;
53 void writeMem(
word address,
byte value, EmuTime::param time)
override;
57 template<
typename Archive>
58 void serialize(Archive& ar,
unsigned version);
65 std::array<uint16_t, 4> fontAddress;
68 std::optional<YamahaSKW01PrinterPort> printerPort;
Represents something you can plug devices into.
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
Central administration of Connectors and Pluggables.
void reset(EmuTime::param time)
void setStrobe(bool newStrobe, EmuTime::param time)
void plug(Pluggable &dev, EmuTime::param time) override
This plugs a Pluggable in this Connector.
void serialize(Archive &ar, unsigned version)
bool getStatus(EmuTime::param time) const
std::string_view getClass() const override
A Connector belong to a certain class.
std::string_view getDescription() const override
Get a description for this connector.
void writeData(uint8_t newData, EmuTime::param time)
byte * getWriteCacheLine(word start) override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
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 reset(EmuTime::param time) override
This method is called on reset.
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)
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