8static constexpr auto sectorInfo = [] {
10 using Info = AmdFlash::SectorInfo;
11 std::array<Info, 2> result = {};
18 , flash(rom, sectorInfo, 0x01A4,
19 AmdFlash::Addressing::BITS_11, config,
22 reset(EmuTime::dummy());
32 return flash.
peek(address);
37 return flash.
read(address);
42 flash.
write(address + 0x10000, value);
55template<
typename Archive>
59 ar.template serializeBase<MSXDevice>(*
this);
61 ar.serialize(
"flash", flash);
void write(size_t address, uint8_t value)
const uint8_t * getReadCacheLine(size_t address) const
uint8_t peek(size_t address) const
uint8_t read(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 * getWriteCacheLine(word address) const 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.
void reset(EmuTime::param time) override
This method is called on reset.
RomMatraInk(const DeviceConfig &config, Rom &&rom)
This file implemented 3 utility functions:
REGISTER_MSXDEVICE(ChakkariCopy, "ChakkariCopy")
AmdFlash::SectorInfo Info
uint16_t word
16 bit unsigned integer
constexpr void fill(ForwardRange &&range, const T &value)
#define INSTANTIATE_SERIALIZE_METHODS(CLASS)