From b9275004879abe4428a026682e75b5fc796e6c81 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 3 Aug 2017 22:00:30 -0400 Subject: [PATCH] Clarified code a little, but this is mostly fiddling in the margins. --- Machines/AmstradCPC/AmstradCPC.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Machines/AmstradCPC/AmstradCPC.cpp b/Machines/AmstradCPC/AmstradCPC.cpp index 00031ed89..796d7b4e8 100644 --- a/Machines/AmstradCPC/AmstradCPC.cpp +++ b/Machines/AmstradCPC/AmstradCPC.cpp @@ -504,8 +504,8 @@ class ConcreteMachine: // will do as it's safe to conclude that nobody else has touched video RAM // during that whole window crtc_counter_ += cycle.length; - int crtc_cycles = crtc_counter_.divide(HalfCycles(8)).as_int(); - if(crtc_cycles) crtc_.run_for(Cycles(1)); + Cycles crtc_cycles = crtc_counter_.divide_cycles(Cycles(4)); + if(crtc_cycles > Cycles(0)) crtc_.run_for(crtc_cycles); z80_.set_interrupt_line(interrupt_timer_.get_request()); // TODO (in the player, not here): adapt it to accept an input clock rate and