1#ifndef MEGAFLASHROMSCCPLUS_HH
2#define MEGAFLASHROMSCCPLUS_HH
18 void powerUp(EmuTime::param time)
override;
19 void reset(EmuTime::param time)
override;
20 [[nodiscard]]
byte peekMem(
word address, EmuTime::param time)
const override;
21 [[nodiscard]]
byte readMem(
word address, EmuTime::param time)
override;
23 void writeMem(
word address,
byte value, EmuTime::param time)
override;
26 void writeIO(
word port,
byte value, EmuTime::param time)
override;
28 template<
typename Archive>
29 void serialize(Archive& ar,
unsigned version);
32 [[nodiscard]]
byte readMem2(
word addr, EmuTime::param time);
34 enum SCCEnable { EN_NONE, EN_SCC, EN_SCCPLUS };
35 [[nodiscard]] SCCEnable getSCCEnable()
const;
37 [[nodiscard]]
unsigned getSubslot(
unsigned address)
const;
38 [[nodiscard]]
unsigned getFlashAddr(
unsigned addr)
const;
48 std::array<std::array<byte, 4>, 4> bankRegs;
51 std::array<byte, 4> sccBanks;
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 * getWriteCacheLine(word address) override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
byte readMem(word address, EmuTime::param time) override
Read a byte from a location at a certain time from this device.
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.
~MegaFlashRomSCCPlus() override
This file implemented 3 utility functions:
uint16_t word
16 bit unsigned integer