From e3f677fa37b3446ebf23ea8e42ee952cff0b1ccb Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 31 Jul 2017 22:21:46 -0400 Subject: [PATCH] I was under-counting row lines. Adjusted comparison. The emulator now produces a solid white square of approximately correct proportions. I'm sure that filling in pixels will reveal the next set of bugs. --- Components/6845/CRTC6845.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Components/6845/CRTC6845.hpp b/Components/6845/CRTC6845.hpp index f2ef5b93b..97130dd2a 100644 --- a/Components/6845/CRTC6845.hpp +++ b/Components/6845/CRTC6845.hpp @@ -79,7 +79,6 @@ template class CRTC6845 { } } else { // advance vertical counter - bus_state_.row_address++; if(bus_state_.row_address == registers_[9]) { line_address_ = bus_state_.refresh_address; bus_state_.row_address = 0; @@ -109,6 +108,7 @@ template class CRTC6845 { line_counter_ = 0; } } else { + bus_state_.row_address++; bus_state_.refresh_address = line_address_; } }