15 void reset(EmuTime::param time)
override;
16 [[nodiscard]]
byte peekMem(
word address, EmuTime::param time)
const override;
17 [[nodiscard]]
byte readMem(
word address, EmuTime::param time)
override;
19 void writeMem(
word address,
byte value, EmuTime::param time)
override;
22 template<
typename Archive>
23 void serialize(Archive& ar,
unsigned version);
26 [[nodiscard]]
unsigned getRamAddr(
unsigned addr)
const;
31 std::array<byte, 4> bankRegs;
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)
byte peekMem(word address, EmuTime::param time) const override
Read a byte from a given memory location.
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.
void reset(EmuTime::param time) override
This method is called on reset.
This file implemented 3 utility functions:
uint16_t word
16 bit unsigned integer