1#ifndef REPROCARTRIDGEV1_HH
2#define REPROCARTRIDGEV1_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;
30 template<
typename Archive>
31 void serialize(Archive& ar,
unsigned version);
34 [[nodiscard]]
bool isSCCAccess(
word addr)
const;
35 [[nodiscard]]
unsigned getFlashAddr(
unsigned addr)
const;
42 bool flashRomWriteEnabled;
46 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 * getWriteCacheLine(word address) override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
void setVolume(EmuTime::param time, byte value)
void powerUp(EmuTime::param time) override
This method is called when MSX is powered up.
~ReproCartridgeV1() override
byte peekMem(word address, EmuTime::param time) const override
Read a byte from a given memory location.
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 reset(EmuTime::param time) override
This method is called on reset.
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.
byte readMem(word address, EmuTime::param time) override
Read a byte from a location at a certain time from this device.
This file implemented 3 utility functions:
uint16_t word
16 bit unsigned integer