From 26ce6cdab2d009183ef122ce921bb761561b5e51 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 4 Aug 2017 08:56:36 -0400 Subject: [PATCH] Permitted register 3 to dictate vertical sync length. --- Components/6845/CRTC6845.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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