Previous 15994 Revisions Next

r12936 Sunday 25th September, 2011 at 19:22:05 UTC by Curt Coder
[ABC1600] Fixed timing regression. (nw)
[src/emu]attotime.h
[src/mess/drivers]abc1600.c

src/emu/attotime.h
r12935r12936
143143   static attotime from_msec(INT64 msec) { return attotime(msec / 1000, (msec % 1000) * (ATTOSECONDS_PER_SECOND / 1000)); }
144144   static attotime from_usec(INT64 usec) { return attotime(usec / 1000000, (usec % 1000000) * (ATTOSECONDS_PER_SECOND / 1000000)); }
145145   static attotime from_nsec(INT64 nsec) { return attotime(nsec / 1000000000, (nsec % 1000000000) * (ATTOSECONDS_PER_SECOND / 1000000000)); }
146   static attotime from_hz(double frequency) { assert(frequency > 1); return attotime(0, double(ATTOSECONDS_PER_SECOND) / frequency); }
146   static attotime from_hz(double frequency) { assert(frequency >= 1); return attotime(0, double(ATTOSECONDS_PER_SECOND) / frequency); }
147147
148148   // math
149149   attotime &operator+=(const attotime &right);
src/mess/drivers/abc1600.c
r12935r12936
15491549   // basic machine hardware
15501550   MCFG_CPU_ADD(MC68008P8_TAG, M68008, XTAL_64MHz/8)
15511551   MCFG_CPU_PROGRAM_MAP(abc1600_mem)
1552   MCFG_WATCHDOG_TIME_INIT(attotime::from_hz((float)XTAL_64MHz/8/10/20000/8/8))
1552   MCFG_WATCHDOG_TIME_INIT(attotime::from_msec(1600)) // XTAL_64MHz/8/10/20000/8/8
15531553
15541554   // video hardware
15551555   MCFG_FRAGMENT_ADD(abc1600_video)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team