1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-23 20:29:42 +00:00

Moves address reload to end of vertical sync.

I have no information as to when it should be, so this is as valid a guess as any other.
This commit is contained in:
Thomas Harte 2019-12-19 22:20:43 -05:00
parent 0e066f0f70
commit ed7f171736

View File

@ -262,6 +262,11 @@ void Video::advance(HalfCycles duration) {
next_vertical_.enable = false;
} else if(next_y_ == vertical_timings.height) {
next_y_ = 0;
} else if(y_ == 0) {
next_vertical_.sync_schedule = VerticalState::SyncSchedule::Begin;
} else if(y_ == 3) {
next_vertical_.sync_schedule = VerticalState::SyncSchedule::End;
current_address_ = base_address_ >> 1;
reset_fifo(); // TODO: remove this, I think, once otherwise stable.
@ -272,10 +277,6 @@ void Video::advance(HalfCycles duration) {
range_observer_->video_did_change_access_range(this);
}
}
} else if(y_ == 0) {
next_vertical_.sync_schedule = VerticalState::SyncSchedule::Begin;
} else if(y_ == 3) {
next_vertical_.sync_schedule = VerticalState::SyncSchedule::End;
}
}