1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-21 21:33:54 +00:00

Add some commentary.

This commit is contained in:
Thomas Harte 2024-02-16 09:19:22 -05:00
parent 17abd87791
commit e8036127fe
2 changed files with 4 additions and 1 deletions

View File

@ -742,6 +742,8 @@ template <Analyser::Static::AppleII::Target::Model model, bool has_mockingboard>
// actor, but this will actually be the result most of the time so it's not
// too terrible.
if(isReadOperation(operation) && address != 0xc000) {
// Ensure any enqueued video changes are applied before grabbing the
// vapour value.
if(video_.has_deferred_actions()) {
update_video();
}

View File

@ -123,7 +123,8 @@ template <class BusHandler, bool is_iie> class Video: public VideoBase {
bus_handler_(bus_handler) {}
/*!
Obtains the last value the video read prior to time now+offset.
Obtains the last value the video read prior to time now+offset, according to the *current*
video mode, i.e. not allowing for any changes still enqueued.
*/
uint8_t get_last_read_value(Cycles offset) {
// Rules of generation: