4#ifndef MSXSCCPLUSCART_HH
5#define MSXSCCPLUSCART_HH
27 void powerUp(EmuTime::param time)
override;
28 void reset(EmuTime::param time)
override;
29 [[nodiscard]]
byte readMem(
word address, EmuTime::param time)
override;
30 [[nodiscard]]
byte peekMem(
word address, EmuTime::param time)
const override;
31 void writeMem(
word address,
byte value, EmuTime::param time)
override;
35 template<
typename Archive>
36 void serialize(Archive& ar,
unsigned version);
39 void setMapper(
int region,
byte value);
40 void setModeRegister(
byte value);
48 std::array<byte*, 4> internalMemoryBank;
49 enum SCCEnable {EN_NONE, EN_SCC, EN_SCCPLUS} enable;
51 std::array<bool, 4> isRamSegment;
52 std::array<bool, 4> isMapped;
53 std::array<byte, 4> mapper;
An MSXDevice is an emulated hardware component connected to the bus of the emulated MSX.
const byte * getReadCacheLine(word start) 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 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 * getWriteCacheLine(word start) 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.
void powerUp(EmuTime::param time) override
This method is called when MSX is powered up.
This file implemented 3 utility functions:
uint16_t word
16 bit unsigned integer