diff --git a/Components/6845/CRTC6845.hpp b/Components/6845/CRTC6845.hpp index 13d1a2ffa..1d0bc25c5 100644 --- a/Components/6845/CRTC6845.hpp +++ b/Components/6845/CRTC6845.hpp @@ -106,7 +106,8 @@ template class CRTC6845 { // check for start of vertical sync if(line_counter_ == registers_[7]) { bus_state_.vsync = true; - vsync_down_counter_ = 16; // TODO + vsync_down_counter_ = registers_[3] >> 4; + if(!vsync_down_counter_) vsync_down_counter_ = 16; } // check for entry into the overflow area