From c3788fd2272baf00916196cdfe7dbbb66d64f6e1 Mon Sep 17 00:00:00 2001 From: AJR Date: Mon, 6 Feb 2023 22:30:47 -0500 Subject: m3002: Fix leap year determination --- src/devices/machine/m3002.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/machine/m3002.cpp b/src/devices/machine/m3002.cpp index 1e021571896..12c730c1db7 100644 --- a/src/devices/machine/m3002.cpp +++ b/src/devices/machine/m3002.cpp @@ -222,7 +222,7 @@ void m3002_device::bcd_increment(u8 location) u8 m3002_device::max_date() const { if (m_ram[4] == 0x02) - return (m_ram[5] & 0x03) == 0x00 ? 0x29 : 0x28; + return (m_ram[5] & 0x03) == ((m_ram[5] & 0x10) >> 3) ? 0x29 : 0x28; else return BIT(0x20250, m_ram[4]) ? 0x30 : 0x31; } -- cgit v1.2.3