openMSX
|
Video RAM for the V9990. More...
#include <V9990VRAM.hh>
Public Member Functions | |
V9990VRAM (V9990 &vdp, EmuTime::param time) | |
Construct V9990 VRAM. | |
void | clear () |
void | sync (EmuTime::param time) |
Update VRAM state to specified moment in time. | |
byte | readVRAMBx (unsigned address) const |
byte | readVRAMP1 (unsigned address) const |
byte | readVRAMP2 (unsigned address) const |
void | writeVRAMBx (unsigned address, byte value) |
void | writeVRAMP1 (unsigned address, byte value) |
void | writeVRAMP2 (unsigned address, byte value) |
byte | readVRAMDirect (unsigned address) const |
void | writeVRAMDirect (unsigned address, byte value) |
byte | readVRAMCPU (unsigned address, EmuTime::param time) |
void | writeVRAMCPU (unsigned address, byte val, EmuTime::param time) |
void | setCmdEngine (V9990CmdEngine &cmdEngine_) |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
Static Public Member Functions | |
static unsigned | transformBx (unsigned address) |
static unsigned | transformP1 (unsigned address) |
static unsigned | transformP2 (unsigned address) |
Static Public Attributes | |
static constexpr unsigned | VRAM_SIZE = 512 * 1024 |
VRAM Size. | |
Video RAM for the V9990.
Definition at line 16 of file V9990VRAM.hh.
openmsx::V9990VRAM::V9990VRAM | ( | V9990 & | vdp, |
EmuTime::param | time | ||
) |
Construct V9990 VRAM.
vdp | The V9990 vdp this VRAM belongs to |
time | Moment in time to create the VRAM |
Definition at line 9 of file V9990VRAM.cc.
void openmsx::V9990VRAM::clear | ( | ) |
Definition at line 16 of file V9990VRAM.cc.
References ranges::fill(), and openmsx::TrackedRam::getWriteBackdoor().
Referenced by openmsx::V9990::powerUp().
|
inline |
Definition at line 55 of file V9990VRAM.hh.
References transformBx().
Referenced by openmsx::CursorInfo::CursorInfo(), and openmsx::P2Policy::readPatternTable().
byte openmsx::V9990VRAM::readVRAMCPU | ( | unsigned | address, |
EmuTime::param | time | ||
) |
Definition at line 41 of file V9990VRAM.cc.
References sync().
Referenced by openmsx::V9990::readIO(), and openmsx::V9990::serialize().
|
inline |
Definition at line 75 of file V9990VRAM.hh.
Referenced by openmsx::P2Policy::readNameTable(), and openmsx::P2Policy::readSpriteAttr().
|
inline |
Definition at line 58 of file V9990VRAM.hh.
References transformP1().
Referenced by openmsx::P1Policy::readNameTable(), openmsx::P1Policy::readPatternTable(), and openmsx::P1Policy::readSpriteAttr().
|
inline |
Definition at line 61 of file V9990VRAM.hh.
References transformP2().
void openmsx::V9990VRAM::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
Definition at line 55 of file V9990VRAM.cc.
|
inline |
Definition at line 85 of file V9990VRAM.hh.
|
inline |
Update VRAM state to specified moment in time.
time | Moment in emulated time to synchronize VRAM to |
Definition at line 34 of file V9990VRAM.hh.
References openmsx::V9990CmdEngine::sync().
Referenced by readVRAMCPU(), and writeVRAMCPU().
|
inlinestatic |
Definition at line 38 of file V9990VRAM.hh.
Referenced by readVRAMBx(), transformP2(), and writeVRAMBx().
|
inlinestatic |
Definition at line 41 of file V9990VRAM.hh.
Referenced by readVRAMP1(), and writeVRAMP1().
|
inlinestatic |
Definition at line 44 of file V9990VRAM.hh.
References transformBx().
Referenced by readVRAMP2(), and writeVRAMP2().
|
inline |
Definition at line 65 of file V9990VRAM.hh.
References transformBx(), and openmsx::TrackedRam::write().
void openmsx::V9990VRAM::writeVRAMCPU | ( | unsigned | address, |
byte | val, | ||
EmuTime::param | time | ||
) |
Definition at line 48 of file V9990VRAM.cc.
References sync(), and openmsx::TrackedRam::write().
Referenced by openmsx::V9990::writeIO().
|
inline |
Definition at line 78 of file V9990VRAM.hh.
References openmsx::TrackedRam::write().
|
inline |
Definition at line 68 of file V9990VRAM.hh.
References transformP1(), and openmsx::TrackedRam::write().
|
inline |
Definition at line 71 of file V9990VRAM.hh.
References transformP2(), and openmsx::TrackedRam::write().
|
staticconstexpr |
VRAM Size.
Definition at line 21 of file V9990VRAM.hh.