23 void powerUp(EmuTime::param time)
override;
24 void reset(EmuTime::param time)
override;
25 [[nodiscard]]
byte peekMem(
word address, EmuTime::param time)
const override;
26 [[nodiscard]]
byte readMem(
word address, EmuTime::param time)
override;
27 void writeMem(
word address,
byte value, EmuTime::param time)
override;
31 [[nodiscard]]
byte readIO(
word port, EmuTime::param time)
override;
32 [[nodiscard]]
byte peekIO(
word port, EmuTime::param time)
const override;
33 void writeIO(
word port,
byte value, EmuTime::param time)
override;
35 template<
typename Archive>
36 void serialize(Archive& ar,
unsigned version);
39 void setRom(
unsigned region,
byte block);
42 const std::unique_ptr<SCC> scc;
43 const std::unique_ptr<AY8910> psg;
47 std::array<byte, 4> bank;
byte peekIO(word port, EmuTime::param time) const override
Read a byte from a given IO port.
const byte * getReadCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for reading.
byte * getWriteCacheLine(word address) override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
void writeIO(word port, byte value, EmuTime::param time) override
Write a byte to a given IO port at a certain time to this device.
void reset(EmuTime::param time) override
This method is called on reset.
byte peekMem(word address, EmuTime::param time) const override
Read a byte from a given memory location.
void powerUp(EmuTime::param time) override
This method is called when MSX is powered up.
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.
byte readMem(word address, EmuTime::param time) override
Read a byte from a location at a certain time from this device.
byte readIO(word port, EmuTime::param time) override
Read a byte from an IO port at a certain time from this device.
void serialize(Archive &ar, unsigned version)
This file implemented 3 utility functions:
uint16_t word
16 bit unsigned integer