1 #ifndef MEGAFLASHROMSCCPLUS_HH
2 #define MEGAFLASHROMSCCPLUS_HH
17 void powerUp(EmuTime::param time)
override;
18 void reset(EmuTime::param time)
override;
19 [[nodiscard]]
byte peekMem(
word address, EmuTime::param time)
const override;
20 [[nodiscard]]
byte readMem(
word address, EmuTime::param time)
override;
22 void writeMem(
word address,
byte value, EmuTime::param time)
override;
25 void writeIO(
word port,
byte value, EmuTime::param time)
override;
27 template<
typename Archive>
28 void serialize(Archive& ar,
unsigned version);
31 [[nodiscard]]
byte readMem2(
word addr, EmuTime::param time);
33 enum SCCEnable { EN_NONE, EN_SCC, EN_SCCPLUS };
34 [[nodiscard]] SCCEnable getSCCEnable()
const;
36 [[nodiscard]]
unsigned getSubslot(
unsigned address)
const;
37 [[nodiscard]]
unsigned getFlashAddr(
unsigned addr)
const;
This class implements the AY-3-8910 sound chip.
void reset(EmuTime::param time) override
This method is called on reset.
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.
const byte * getReadCacheLine(word address) 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.
MegaFlashRomSCCPlus(const DeviceConfig &config, Rom &&rom)
void serialize(Archive &ar, unsigned version)
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.
byte peekMem(word address, EmuTime::param time) const override
Read a byte from a given memory location.
byte * getWriteCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
~MegaFlashRomSCCPlus() override
This file implemented 3 utility functions:
uint16_t word
16 bit unsigned integer