From 02d792c003591b1b4e9626867072c73198e824e1 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 10 Aug 2017 11:48:37 -0400 Subject: [PATCH] Simplified logic slightly, avoiding repetition. --- Components/6845/CRTC6845.hpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Components/6845/CRTC6845.hpp b/Components/6845/CRTC6845.hpp index 0f3d1e768..1181c6cb1 100644 --- a/Components/6845/CRTC6845.hpp +++ b/Components/6845/CRTC6845.hpp @@ -58,15 +58,14 @@ template class CRTC6845 { if(hsync_down_counter_) bus_state_.hsync = true; } + // update refresh address + if(character_is_visible_) { + bus_state_.refresh_address++; + } + // check for end of visible characters if(character_counter_ == registers_[1]) { - bus_state_.refresh_address++; character_is_visible_ = false; - } else { - // update refresh address - if(character_is_visible_) { - bus_state_.refresh_address++; - } } // check for end-of-line