| 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 |
| r19783 | r19784 | |
|---|---|---|
| 505 | 505 | exec->m_totalcycles += ran; |
| 506 | 506 | |
| 507 | 507 | // 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; | |
| 509 | 511 | LOG((" %d ran, %d total, time = %s\n", ran, (INT32)exec->m_totalcycles, exec->m_localtime.as_string())); |
| 510 | 512 | |
| 511 | 513 | // if the new local CPU time is less than our target, move the target up, but not before the base |
| r19783 | r19784 | |
|---|---|---|
| 474 | 474 | state_add(M6809_Y, "Y", m_y.w.l).mask(0xffff); |
| 475 | 475 | state_add(M6809_DP, "DP", m_dp.w.l).mask(0xffff); |
| 476 | 476 | |
| 477 | / | |
| 477 | // setup regtable | |
| 478 | 478 | save_item(NAME(PC)); |
| 479 | 479 | save_item(NAME(PPC)); |
| 480 | 480 | save_item(NAME(D)); |
| r19783 | r19784 | |
| 490 | 490 | |
| 491 | 491 | // set our instruction counter |
| 492 | 492 | m_icountptr = &m_icount; |
| 493 | m_icount = 0; | |
| 494 | m_extra_cycles = 0; | |
| 493 | 495 | } |
| 494 | 496 | |
| 495 | 497 | /****************************************************************************/ |
| Previous | 199869 Revisions | Next |