16 void powerDown(EmuTime::param time)
override;
17 [[nodiscard]]
byte readMem(
word address, EmuTime::param time)
override;
18 [[nodiscard]]
byte peekMem(
word address, EmuTime::param time)
const override;
21 template<
typename Archive>
22 void serialize(Archive& ar,
unsigned version);
31 std::unique_ptr<Rom>
rom;
32 std::unique_ptr<DiskDrive>
drives[4];
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
std::unique_ptr< DiskDrive > drives[4]
std::unique_ptr< Rom > rom
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.
MSXFDC(const DeviceConfig &config, const std::string &romId={}, bool needROM=true, DiskDrive::TrackMode trackMode=DiskDrive::TrackMode::NORMAL)
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
REGISTER_BASE_NAME_HELPER(MSXFDC, "FDC")