1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-05 10:28:58 +00:00

Add note to self.

Although I still think there may be some issue lurking.
This commit is contained in:
Thomas Harte 2021-06-28 21:31:55 -04:00
parent a5c57e777e
commit 49f0ab0f15

View File

@ -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);