Previous 199869 Revisions Next

r31582 Sunday 10th August, 2014 at 03:43:22 UTC by Oliver Stöneberg
added assert for index out-of-bounds access with sc4dnda (nw)
[src/emu/machine]68307tmu.c

trunk/src/emu/machine/68307tmu.c
r31581r31582
155155
156156void m68307_timer::write_ter(UINT16 data, UINT16 mem_mask, int which)
157157{
158   assert(which >= 0 && which < ARRAY_LENGTH(singletimer));
158159   m68307_single_timer* tptr = &singletimer[which];
159160   if (data & 0x2) tptr->regs[m68307TIMER_TMR] &= ~0x2;
160161}
r31581r31582
212213
213214void m68307_timer::write_trr(UINT16 data, UINT16 mem_mask, int which)
214215{
216   assert(which >= 0 && which < ARRAY_LENGTH(singletimer));
215217   m68307_single_timer* tptr = &singletimer[which];
216218
217219   COMBINE_DATA(&tptr->regs[m68307TIMER_TRR]);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team