From 7e8020df59d3ba23c3382184df5c4a517fb474e1 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 23 Nov 2023 22:15:20 -0500 Subject: [PATCH] Avoid a spurious initial interrupt. --- Machines/PCCompatible/PCCompatible.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Machines/PCCompatible/PCCompatible.cpp b/Machines/PCCompatible/PCCompatible.cpp index 283c187ed..2ef889a78 100644 --- a/Machines/PCCompatible/PCCompatible.cpp +++ b/Machines/PCCompatible/PCCompatible.cpp @@ -65,11 +65,11 @@ class KeyboardController { } void run_for(Cycles cycles) { - if(reset_delay_ < 0) { + if(reset_delay_ <= 0) { return; } reset_delay_ -= cycles.as(); - if(reset_delay_ < 0) { + if(reset_delay_ <= 0) { post(0xaa); } }