17 void powerDown(EmuTime::param time)
override;
18 [[nodiscard]]
byte readMem(
word address, EmuTime::param time)
override;
19 [[nodiscard]]
byte peekMem(
word address, EmuTime::param time)
const override;
24 template<
typename Archive>
25 void serialize(Archive& ar,
unsigned version);
33 std::optional<Rom>
rom;
34 std::array<std::unique_ptr<DiskDrive>, 4>
drives;
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 powerDown(EmuTime::param time) override
This method is called when MSX is powered down.
std::array< std::unique_ptr< DiskDrive >, 4 > drives
void getExtraDeviceInfo(TclObject &result) const override
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.
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