19 void powerUp(EmuTime::param time)
override;
20 void reset(EmuTime::param time)
override;
22 [[nodiscard]]
byte readMem(
word address, EmuTime::param time)
override;
23 void writeMem(
word address,
byte value, EmuTime::param time)
override;
26 template<
typename Archive>
27 void serialize(Archive& ar,
unsigned version);
30 [[nodiscard]]
byte getBank()
const;
31 void writeControl(
byte value);
33 [[nodiscard]]
byte readDataLow(EmuTime::param time);
34 [[nodiscard]]
byte readDataHigh(EmuTime::param time)
const;
35 [[nodiscard]]
word readData(EmuTime::param time);
36 [[nodiscard]]
byte readReg(
nibble reg, EmuTime::param time);
37 void writeDataLow(
byte value);
38 void writeDataHigh(
byte value, EmuTime::param time);
39 void writeData(
word value, EmuTime::param time);
40 void writeReg(
nibble reg,
byte value, EmuTime::param time);
45 [[nodiscard]]
byte read(
unsigned address)
override;
49 std::unique_ptr<IDEDevice> device[2];
50 const byte* internalBank;
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
void reset(EmuTime::param time) override
This method is called on reset.
SunriseIDE(const DeviceConfig &config)
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 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.
void powerUp(EmuTime::param time) override
This method is called when MSX is powered up.
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:
uint8_t nibble
4 bit integer
uint16_t word
16 bit unsigned integer