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

Allow vsync on line 0.

This commit is contained in:
Thomas Harte 2024-08-07 23:05:26 -04:00
parent 30b1b36e63
commit 43887b42b1

View File

@ -301,17 +301,17 @@ template <class BusHandlerT, Personality personality, CursorType cursor_type> cl
}
} else {
line_counter_ = (line_counter_ + 1) & 0x7f;
}
// Check for start of vertical sync.
if(line_counter_ == layout_.vertical.start_sync) {
bus_state_.vsync = true;
vsync_counter_ = 0;
}
// Check for start of vertical sync.
if(line_counter_ == layout_.vertical.start_sync) {
bus_state_.vsync = true;
vsync_counter_ = 0;
}
// Check for end of visible lines.
if(line_counter_ == layout_.vertical.displayed) {
line_is_visible_ = false;
}
// Check for end of visible lines.
if(line_counter_ == layout_.vertical.displayed) {
line_is_visible_ = false;
}
} else {
bus_state_.row_address = (bus_state_.row_address + 1) & 0x1f;