From a4d06fd54ab22bbdd6b0dc9d5af199fc8be13591 Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Sun, 28 Jan 2024 14:20:59 +1300 Subject: Change clock cumulative timer to use 256th ticks instead of seconds The "Cumulative seconds" port of the CLOCK device has been changed to be called "Cumulative timer", with the units changing from seconds to 1/256 second ticks. --- src/devices.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/devices.rs') diff --git a/src/devices.rs b/src/devices.rs index 562b664..a17514e 100644 --- a/src/devices.rs +++ b/src/devices.rs @@ -122,9 +122,9 @@ impl DeviceBus for StandardDevices { 0x33 => self.clock.hour(), 0x34 => self.clock.minute(), 0x35 => self.clock.second(), - 0x36 => { self.clock.update_cumulative_seconds(); read_h!(self.clock.cumulative_seconds) }, - 0x37 => read_l!(self.clock.cumulative_seconds), 0x38 => { self.clock.update_timer_1(); read_h!(self.clock.timer_1) } + 0x36 => read_h!(self.clock.update_cumulative_timer()), + 0x37 => read_l!(self.clock.cumulative_timer), 0x39 => read_l!(self.clock.timer_1), 0x3A => { self.clock.update_timer_2(); read_h!(self.clock.timer_2) } 0x3B => read_l!(self.clock.timer_2), -- cgit v1.2.3-70-g09d2