src/emu/machine/mc146818.c
| r11402 | r11403 | |
| 143 | 143 | { |
| 144 | 144 | m_last_refresh = machine().time(); |
| 145 | 145 | emu_timer *timer = timer_alloc(); |
| 146 | |
| 147 | memset(m_data, 0, sizeof(m_data)); |
| 148 | |
| 146 | 149 | if (m_type == MC146818_UTC) { |
| 147 | 150 | // hack: for apollo we increase the update frequency to stay in sync with real time |
| 148 | 151 | timer->adjust(attotime::from_hz(2), 0, attotime::from_hz(2)); |
| r11402 | r11403 | |
| 363 | 366 | |
| 364 | 367 | machine().base_datetime(systime); |
| 365 | 368 | |
| 366 | | current_time = m_type == MC146818_UTC ? systime.utc_time: systime.local_time; |
| 369 | current_time = (m_type == MC146818_UTC) ? systime.utc_time: systime.local_time; |
| 367 | 370 | |
| 368 | 371 | // temporary hack to go back 20 year (e.g. from 2010 -> 1990) |
| 369 | 372 | // current_time.year -= 20; |