1#ifndef REPROCARTRIDGEV2_HH
2#define REPROCARTRIDGEV2_HH
19 void powerUp(EmuTime::param time)
override;
20 void reset(EmuTime::param time)
override;
21 [[nodiscard]]
byte peekMem(
word address, EmuTime::param time)
const override;
22 [[nodiscard]]
byte readMem(
word address, EmuTime::param time)
override;
24 void writeMem(
word address,
byte value, EmuTime::param time)
override;
27 void writeIO(
word port,
byte value, EmuTime::param time)
override;
29 void setVolume(EmuTime::param time,
byte value);
31 template<
typename Archive>
32 void serialize(Archive& ar,
unsigned version);
35 [[nodiscard]]
bool isSCCAccess(
word addr)
const;
36 [[nodiscard]]
unsigned getFlashAddr(
unsigned addr)
const;
43 bool flashRomWriteEnabled;
47 byte psg0x10Latch, psg0xA0Latch;
49 std::array<byte, 4> bankRegs;
This class implements the AY-3-8910 sound chip.
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 readMem(word address, EmuTime::param time) override
Read a byte from a location at a certain time from this device.
~ReproCartridgeV2() override
byte * getWriteCacheLine(word address) override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
void reset(EmuTime::param time) override
This method is called on reset.
void serialize(Archive &ar, unsigned version)
const byte * getReadCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for reading.
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.
void powerUp(EmuTime::param time) override
This method is called when MSX is powered up.
void setVolume(EmuTime::param time, byte value)
byte peekMem(word address, EmuTime::param time) const override
Read a byte from a given memory location.
This file implemented 3 utility functions:
uint16_t word
16 bit unsigned integer