9 : vdp(vdp_), cmdEngine(nullptr)
10 , data(vdp.getDeviceConfig2(), vdp.
getName() +
" VRAM",
11 "V9990 Video RAM", VRAM_SIZE)
19 assert((
size % 1024) == 0);
23 memset(d, 0x00, 512); d += 512;
24 memset(d, 0xff, 512); d += 512;
28 unsigned V9990VRAM::mapAddress(
unsigned address)
45 return data[mapAddress(address)];
51 data.
write(mapAddress(address), value);
54 template<
typename Archive>
57 ar.serialize(
"data", data);
void write(unsigned addr, byte value)
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.
std::string getName(KeyCode keyCode)
Translate key code to key name.
This file implemented 3 utility functions:
size_t size(std::string_view utf8)
#define INSTANTIATE_SERIALIZE_METHODS(CLASS)