From 49f0ab0f158f4c5292528a150bb9ab87636c833e Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 28 Jun 2021 21:31:55 -0400 Subject: [PATCH] Add note to self. Although I still think there may be some issue lurking. --- Machines/Enterprise/Dave.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Machines/Enterprise/Dave.cpp b/Machines/Enterprise/Dave.cpp index 995ce29a5..5e142fa21 100644 --- a/Machines/Enterprise/Dave.cpp +++ b/Machines/Enterprise/Dave.cpp @@ -293,6 +293,8 @@ Cycles TimedInterruptSource::get_next_sequence_point() const { } uint8_t TimedInterruptSource::get_divider_state() { + // one_hz_offset_ counts downwards, so when it crosses the halfway mark + // it enters the high part of its wave. return (one_hz_offset_ < half_clock_rate ? 0x4 : 0x0) | (programmable_level_ ? 0x1 : 0x0);