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 template<
typename Archive>
26 void serialize(Archive& ar,
unsigned version);
29 std::shared_ptr<SRAM> fsSram;
38 void reset(EmuTime::param time)
override;
39 [[nodiscard]]
byte peekMem(
word address, EmuTime::param time)
const override;
40 [[nodiscard]]
byte readMem(
word address, EmuTime::param time)
override;
42 void writeMem(
word address,
byte value, EmuTime::param time)
override;
45 template<
typename Archive>
46 void serialize(Archive& ar,
unsigned version);
49 void changeBank(
unsigned region,
byte bank);
52 std::shared_ptr<SRAM> fsSram;
53 std::array<byte, 8> bankSelect;
54 std::array<bool, 8> isRam;
55 std::array<bool, 8> isEmpty;
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.
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.
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.
byte * getWriteCacheLine(word address) override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
const byte * getReadCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for reading.
void serialize(Archive &ar, unsigned version)
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 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