Previous 199869 Revisions Next

r33857 Saturday 13th December, 2014 at 11:17:06 UTC by Osso
h8_timer16.c: added save state support. Fixes lastfght save state regression (nw)
[src/emu/cpu/h8]h8_timer16.c

trunk/src/emu/cpu/h8/h8_timer16.c
r242368r242369
162162{
163163   intc = owner()->siblingdevice<h8_intc_device>(intc_tag);
164164   channel_active = false;
165   
166   save_item(NAME(tgr_clearing));
167   save_item(NAME(tcr));
168   save_item(NAME(tier));
169   save_item(NAME(ier));
170   save_item(NAME(isr));
171   save_item(NAME(clock_type));
172   save_item(NAME(clock_divider));
173   save_item(NAME(tcnt));
174   save_item(NAME(tgr));
175   save_item(NAME(last_clock_update));
176   save_item(NAME(event_time));
177   save_item(NAME(phase));
178   save_item(NAME(counter_cycle));
179   save_item(NAME(counter_incrementing));
180   save_item(NAME(channel_active));
165181}
166182
167183void h8_timer16_channel_device::device_reset()
r242368r242369
330346      sprintf(tm, "%d", i);
331347      timer_channel[i] = subdevice<h8_timer16_channel_device>(tm);
332348   }
349   
350   save_item(NAME(tstr));
333351}
334352
335353void h8_timer16_device::device_reset()


Previous 199869 Revisions Next


© 1997-2024 The MAME Team