10 , flash(rom, AmdFlashChip::AM29F040, {}, config)
12 reset(EmuTime::dummy());
22 return flash.
peek(address);
27 return flash.
read(address);
32 flash.
write(address + 0x10000, value);
45template<
typename Archive>
49 ar.template serializeBase<MSXDevice>(*
this);
51 ar.serialize(
"flash", flash);
#define REGISTER_MSXDEVICE(CLASS, NAME)
void write(size_t address, uint8_t value)
const uint8_t * getReadCacheLine(size_t address) const
uint8_t read(size_t address)
uint8_t peek(size_t address) const
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.
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.
RomMatraInk(const DeviceConfig &config, Rom &&rom)
This file implemented 3 utility functions:
uint16_t word
16 bit unsigned integer
#define INSTANTIATE_SERIALIZE_METHODS(CLASS)