mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-01 11:49:58 +00:00
Fix typo, add bonus comment.
This commit is contained in:
parent
001b161568
commit
d6073e0407
@ -960,6 +960,8 @@ class ConcreteMachine:
|
|||||||
pit_.run_for(1);
|
pit_.run_for(1);
|
||||||
++speaker_.cycles_since_update;
|
++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) {
|
if constexpr (speed == Target::Speed::ApproximatelyOriginal) {
|
||||||
pit_.run_for(1);
|
pit_.run_for(1);
|
||||||
++speaker_.cycles_since_update;
|
++speaker_.cycles_since_update;
|
||||||
@ -1005,7 +1007,7 @@ class ConcreteMachine:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if constexpr (speed == Target::Speed::Fast) {
|
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.
|
// That's broadly 80286 speed, if MIPS were a valid measure.
|
||||||
perform_instruction();
|
perform_instruction();
|
||||||
perform_instruction();
|
perform_instruction();
|
||||||
|
Loading…
Reference in New Issue
Block a user