mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
m3002: Fix leap year determination
This commit is contained in:
parent
090554f933
commit
c3788fd227
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user