From 5d7d18a9c6e999aaed0d358436bd947901875053 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sat, 11 Mar 2023 05:22:36 +1100 Subject: machine/hd64610.cpp: Convert day-of-week from 1-based format used by device_rtc_interface to conventional 0-based format. [Sandro Ronco] --- src/devices/machine/hd64610.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/machine/hd64610.cpp b/src/devices/machine/hd64610.cpp index 2a2c3064705..13ac2861b63 100644 --- a/src/devices/machine/hd64610.cpp +++ b/src/devices/machine/hd64610.cpp @@ -19,7 +19,7 @@ #include "coreutil.h" -#define VERBOSE 1 +#define VERBOSE 0 #include "logmacro.h" @@ -228,7 +228,7 @@ void hd64610_device::rtc_clock_updated(int year, int month, int day, int day_of_ write_counter(REG_DAY, day); write_counter(REG_MONTH, month); write_counter(REG_YEAR, year); - m_regs[REG_DAY_OF_THE_WEEK] = day_of_week; + m_regs[REG_DAY_OF_THE_WEEK] = day_of_week - 1; check_alarm(); set_irq_line(); -- cgit v1.2.3