src/emu/machine/mc146818.c
| r14502 | r14503 | |
| 147 | 147 | |
| 148 | 148 | memset(m_data, 0, sizeof(m_data)); |
| 149 | 149 | |
| 150 | | if (m_type == MC146818_UTC) { |
| 151 | | // hack: for apollo we increase the update frequency to stay in sync with real time |
| 152 | | m_clock_timer->adjust(attotime::from_hz(2), 0, attotime::from_hz(2)); |
| 153 | | } else { |
| 154 | | m_clock_timer->adjust(attotime::from_hz(1), 0, attotime::from_hz(1)); |
| 155 | | } |
| 150 | m_clock_timer->adjust(attotime::from_hz(1), 0, attotime::from_hz(1)); |
| 156 | 151 | |
| 157 | 152 | m_periodic_timer->adjust(attotime::never); |
| 158 | 153 | m_period = attotime::never; |
| r14502 | r14503 | |
| 422 | 417 | switch (m_index % MC146818_DATA_SIZE) { |
| 423 | 418 | case 0xa: |
| 424 | 419 | data = m_data[m_index % MC146818_DATA_SIZE]; |
| 425 | | if ((space.machine().time() - m_last_refresh) < attotime::from_hz(32768)) |
| 420 | // Update In Progress (UIP) time for 32768 Hz is 244+1984usec |
| 421 | if ((space.machine().time() - m_last_refresh) < attotime::from_usec(244+1984)) |
| 426 | 422 | data |= 0x80; |
| 427 | 423 | #if 0 |
| 428 | 424 | /* for pc1512 bios realtime clock test */ |