18 void powerUp(EmuTime::param time)
override;
19 void reset(EmuTime::param time)
override;
21 [[nodiscard]]
byte readMem(
word address, EmuTime::param time)
override;
22 [[nodiscard]]
byte peekMem(
word address, EmuTime::param time)
const override;
23 void writeMem(
word address,
byte value, EmuTime::param time)
override;
27 template<
typename Archive>
28 void serialize(Archive& ar,
unsigned version);
31 [[nodiscard]]
unsigned getSramSize(
bool withSCSI)
const;
32 void setMapperLow(
unsigned page,
byte value);
33 void setMapperHigh(
byte value);
38 const std::unique_ptr<MB89352> spc;
41 const byte mapperMask;
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.
const byte * getReadCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for reading.
void reset(EmuTime::param time) override
This method is called on reset.
void serialize(Archive &ar, unsigned version)
void powerUp(EmuTime::param time) override
This method is called when MSX is powered up.
byte * getWriteCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
ESE_SCC(const DeviceConfig &config, bool withSCSI)
byte peekMem(word address, EmuTime::param time) const override
Read a byte from a given memory location.
byte readMem(word address, EmuTime::param time) override
Read a byte from a location at a certain time from this device.
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
This file implemented 3 utility functions:
uint16_t word
16 bit unsigned integer