mirror of
https://github.com/holub/mame
synced 2025-04-16 21:44:32 +03:00
fmtowns: make the clock work in jan (nw)
This commit is contained in:
parent
ad726bd451
commit
46af74afdf
@ -288,8 +288,8 @@ void towns_state::init_rtc()
|
||||
m_towns_rtc_reg[7] = systm.local_time.mday % 10;
|
||||
m_towns_rtc_reg[8] = systm.local_time.mday / 10;
|
||||
// month
|
||||
m_towns_rtc_reg[9] = systm.local_time.month % 10;
|
||||
m_towns_rtc_reg[10] = systm.local_time.month / 10;
|
||||
m_towns_rtc_reg[9] = (systm.local_time.month + 1) % 10;
|
||||
m_towns_rtc_reg[10] = (systm.local_time.month + 1) / 10;
|
||||
// year
|
||||
m_towns_rtc_reg[11] = (systm.local_time.year - 2000) % 10;
|
||||
m_towns_rtc_reg[12] = (systm.local_time.year - 2000) / 10;
|
||||
|
Loading…
Reference in New Issue
Block a user