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 [[nodiscard]]
byte peekMem(
word address, EmuTime::param time)
const override;
24 void writeMem(
word address,
byte value, EmuTime::param time)
override;
28 template<
typename Archive>
29 void serialize(Archive& ar,
unsigned version);
32 [[nodiscard]]
size_t getSramSize(
bool withSCSI)
const;
33 void setMapperLow(
unsigned page,
byte value);
34 void setMapperHigh(
byte value);
39 const std::unique_ptr<MB89352> spc;
42 const byte mapperMask;
43 std::array<byte, 4> mapper;
44 bool spcEnable =
false;
45 bool sccEnable =
false;
46 bool writeEnable =
false;
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) override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
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