mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-23 03:32:32 +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:
parent
0e066f0f70
commit
ed7f171736
@ -262,6 +262,11 @@ void Video::advance(HalfCycles duration) {
|
|||||||
next_vertical_.enable = false;
|
next_vertical_.enable = false;
|
||||||
} else if(next_y_ == vertical_timings.height) {
|
} else if(next_y_ == vertical_timings.height) {
|
||||||
next_y_ = 0;
|
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;
|
current_address_ = base_address_ >> 1;
|
||||||
reset_fifo(); // TODO: remove this, I think, once otherwise stable.
|
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);
|
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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user