11 , data(vdp.getDeviceConfig2(), vdp.getName() +
" VRAM",
12 "V9990 Video RAM", VRAM_SIZE)
20 assert((s.size() % 1024) == 0);
28unsigned V9990VRAM::mapAddress(
unsigned address)
const
45 return data[mapAddress(address)];
51 data.
write(mapAddress(address), value);
54template<
typename Archive>
57 ar.serialize(
"data", data);
void write(size_t addr, byte value)
std::span< byte > getWriteBackdoor()
void writeVRAMCPU(unsigned address, byte val, EmuTime::param time)
V9990VRAM(V9990 &vdp, EmuTime::param time)
Construct V9990 VRAM.
void serialize(Archive &ar, unsigned version)
void sync(EmuTime::param time)
Update VRAM state to specified moment in time.
byte readVRAMCPU(unsigned address, EmuTime::param time)
static unsigned transformP2(unsigned address)
static unsigned transformBx(unsigned address)
static unsigned transformP1(unsigned address)
Implementation of the Yamaha V9990 VDP as used in the GFX9000 cartridge by Sunrise.
V9990DisplayMode getDisplayMode() const
Return the current display mode.
This file implemented 3 utility functions:
constexpr void fill(ForwardRange &&range, const T &value)
#define INSTANTIATE_SERIALIZE_METHODS(CLASS)