Previous 15994 Revisions Next

r14503 Saturday 18th February, 2012 at 03:46:26 UTC by R. Belmont
mc146818: remove previous Apollo hack, fix 32768 Hz. updates [Hans Ostermeyer]
[src/emu/machine]mc146818.c

src/emu/machine/mc146818.c
r14502r14503
147147
148148   memset(m_data, 0, sizeof(m_data));
149149
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));
156151
157152   m_periodic_timer->adjust(attotime::never);
158153   m_period = attotime::never;
r14502r14503
422417      switch (m_index % MC146818_DATA_SIZE) {
423418      case 0xa:
424419         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))
426422            data |= 0x80;
427423#if 0
428424         /* for pc1512 bios realtime clock test */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team