From 5b40bd660c5cd7918693cdfc6be573a72b6ad9fb Mon Sep 17 00:00:00 2001 From: "R. Belmont" Date: Sun, 17 Aug 2014 03:36:26 +0000 Subject: [PATCH] msm5832: day of week is 0-6, not 1-7 [R. Belmont] --- src/emu/machine/msm5832.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emu/machine/msm5832.c b/src/emu/machine/msm5832.c index b158846c388..99665099db6 100644 --- a/src/emu/machine/msm5832.c +++ b/src/emu/machine/msm5832.c @@ -161,7 +161,7 @@ void msm5832_device::rtc_clock_updated(int year, int month, int day, int day_of_ write_counter(REGISTER_Y1, year); write_counter(REGISTER_MO1, month); write_counter(REGISTER_D1, day); - m_reg[REGISTER_W] = day_of_week; + m_reg[REGISTER_W] = day_of_week-1; write_counter(REGISTER_H1, hour); write_counter(REGISTER_MI1, minute); write_counter(REGISTER_S1, second);