Previous 199869 Revisions Next

r19784 Monday 24th December, 2012 at 23:02:34 UTC by Nathan Woods
1.  [M6809] Uninitialized variable fix (nw)
2.  Added an assertion to catch a bad scenario in schedule.c (nw)
[src/emu]schedule.c
[src/emu/cpu/m6809]m6809.c

trunk/src/emu/schedule.c
r19783r19784
505505               exec->m_totalcycles += ran;
506506
507507               // update the local time for this CPU
508               exec->m_localtime += attotime(0, exec->m_attoseconds_per_cycle * ran);
508               attotime delta = attotime(0, exec->m_attoseconds_per_cycle * ran);
509               assert(delta >= attotime::zero);
510               exec->m_localtime += delta;
509511               LOG(("         %d ran, %d total, time = %s\n", ran, (INT32)exec->m_totalcycles, exec->m_localtime.as_string()));
510512
511513               // if the new local CPU time is less than our target, move the target up, but not before the base
trunk/src/emu/cpu/m6809/m6809.c
r19783r19784
474474   state_add(M6809_Y,         "Y",           m_y.w.l).mask(0xffff);
475475   state_add(M6809_DP,        "DP",        m_dp.w.l).mask(0xffff);
476476
477   /* setup regtable */
477   // setup regtable
478478   save_item(NAME(PC));
479479   save_item(NAME(PPC));
480480   save_item(NAME(D));
r19783r19784
490490
491491   // set our instruction counter
492492   m_icountptr = &m_icount;
493   m_icount = 0;
494   m_extra_cycles = 0;
493495}
494496
495497/****************************************************************************/

Previous 199869 Revisions Next


© 1997-2024 The MAME Team