From d6073e0407877c75a9f042918062b070559d78a2 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 27 Dec 2023 10:52:43 -0500 Subject: [PATCH] Fix typo, add bonus comment. --- Machines/PCCompatible/PCCompatible.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Machines/PCCompatible/PCCompatible.cpp b/Machines/PCCompatible/PCCompatible.cpp index 467b1623b..ef0aa6a8c 100644 --- a/Machines/PCCompatible/PCCompatible.cpp +++ b/Machines/PCCompatible/PCCompatible.cpp @@ -960,6 +960,8 @@ class ConcreteMachine: pit_.run_for(1); ++speaker_.cycles_since_update; + // For original speed, the CPU performs instructions at a 1/3rd divider of the PIT clock, + // so run the PIT three times per 'tick'. if constexpr (speed == Target::Speed::ApproximatelyOriginal) { pit_.run_for(1); ++speaker_.cycles_since_update; @@ -1005,7 +1007,7 @@ class ConcreteMachine: } if constexpr (speed == Target::Speed::Fast) { - // There's no divider applied, so this makes for 2*PI = around 2.4 MIPS. + // There's no divider applied, so this makes for 2*PIT = around 2.4 MIPS. // That's broadly 80286 speed, if MIPS were a valid measure. perform_instruction(); perform_instruction();