openMSX
Public Member Functions | List of all members
openmsx::DummyVRAMObserver Class Referencefinal

#include <VDPVRAM.hh>

Inheritance diagram for openmsx::DummyVRAMObserver:
Inheritance graph
[legend]
Collaboration diagram for openmsx::DummyVRAMObserver:
Collaboration graph
[legend]

Public Member Functions

void updateVRAM (unsigned, EmuTime::param) override
 Informs the observer of a change in VRAM contents.
 
void updateWindow (bool, EmuTime::param) override
 Informs the observer that the entire VRAM window will change.
 

Additional Inherited Members

- Protected Member Functions inherited from openmsx::VRAMObserver
 ~VRAMObserver ()=default
 

Detailed Description

Definition at line 117 of file VDPVRAM.hh.

Member Function Documentation

◆ updateVRAM()

void openmsx::DummyVRAMObserver::updateVRAM ( unsigned  offset,
EmuTime::param  time 
)
inlineoverridevirtual

Informs the observer of a change in VRAM contents.

This update is sent just before the change, so the subcomponent can update itself to the given time based on the old contents.

Parameters
offsetOffset of byte that will change, relative to window base address.
timeThe moment in emulated time this change occurs.

Implements openmsx::VRAMObserver.

Definition at line 120 of file VDPVRAM.hh.

◆ updateWindow()

void openmsx::DummyVRAMObserver::updateWindow ( bool  enabled,
EmuTime::param  time 
)
inlineoverridevirtual

Informs the observer that the entire VRAM window will change.

This update is sent just before the change, so the subcomponent can update itself to the given time based on the old contents. This happens if the base/index masks are changed, or if the window becomes disabled. TODO: Separate enable/disable from window move?

Parameters
enabledWill the window be enabled after the change? If the observer keeps a cache which is based on VRAM contents, it is only necessary to flush the cache if the new window is enabled, because no reads are allowed from disabled windows.
timeThe moment in emulated time this change occurs.

Implements openmsx::VRAMObserver.

Definition at line 121 of file VDPVRAM.hh.


The documentation for this class was generated from the following file: