some state_save_register_item removal (nw)

This commit is contained in:
Ivan Vangelista 2015-04-20 19:19:23 +02:00
parent 769a1cd2e8
commit f5c99f4870
6 changed files with 74 additions and 74 deletions

View File

@ -58,10 +58,10 @@ void psxrcnt_device::device_start()
for( n = 0; n < 3; n++ ) for( n = 0; n < 3; n++ )
{ {
root_counter[ n ].timer = timer_alloc(n); root_counter[ n ].timer = timer_alloc(n);
state_save_register_item( machine(), "psxroot", NULL, n, root_counter[ n ].n_count ); save_item(NAME(root_counter[ n ].n_count), n);
state_save_register_item( machine(), "psxroot", NULL, n, root_counter[ n ].n_mode ); save_item(NAME(root_counter[ n ].n_mode), n);
state_save_register_item( machine(), "psxroot", NULL, n, root_counter[ n ].n_target ); save_item(NAME(root_counter[ n ].n_target), n);
state_save_register_item( machine(), "psxroot", NULL, n, root_counter[ n ].n_start ); save_item(NAME(root_counter[ n ].n_start), n);
root_counter[ n ].n_count = 0; root_counter[ n ].n_count = 0;
root_counter[ n ].n_mode = 0; root_counter[ n ].n_mode = 0;
root_counter[ n ].n_target = 0; root_counter[ n ].n_target = 0;

View File

@ -316,11 +316,11 @@ void usb_sound_device::device_start()
configure_filter(&m_final_filter, 100e3, 4.7e-6); configure_filter(&m_final_filter, 100e3, 4.7e-6);
/* register for save states */ /* register for save states */
state_save_register_item(machine(), "usb", NULL, 0, m_in_latch); save_item(NAME(m_in_latch));
state_save_register_item(machine(), "usb", NULL, 0, m_out_latch); save_item(NAME(m_out_latch));
state_save_register_item(machine(), "usb", NULL, 0, m_last_p2_value); save_item(NAME(m_last_p2_value));
state_save_register_item(machine(), "usb", NULL, 0, m_work_ram_bank); save_item(NAME(m_work_ram_bank));
state_save_register_item(machine(), "usb", NULL, 0, m_t1_clock); save_item(NAME(m_t1_clock));
for (tgroup = 0; tgroup < 3; tgroup++) for (tgroup = 0; tgroup < 3; tgroup++)
{ {
@ -328,36 +328,36 @@ void usb_sound_device::device_start()
for (tchan = 0; tchan < 3; tchan++) for (tchan = 0; tchan < 3; tchan++)
{ {
timer8253_channel *channel = &group->chan[tchan]; timer8253_channel *channel = &group->chan[tchan];
state_save_register_item(machine(), "usb", NULL, tgroup * 3 + tchan, channel->holding); save_item(NAME(channel->holding), tgroup * 3 + tchan);
state_save_register_item(machine(), "usb", NULL, tgroup * 3 + tchan, channel->latchmode); save_item(NAME(channel->latchmode), tgroup * 3 + tchan);
state_save_register_item(machine(), "usb", NULL, tgroup * 3 + tchan, channel->latchtoggle); save_item(NAME(channel->latchtoggle), tgroup * 3 + tchan);
state_save_register_item(machine(), "usb", NULL, tgroup * 3 + tchan, channel->clockmode); save_item(NAME(channel->clockmode), tgroup * 3 + tchan);
state_save_register_item(machine(), "usb", NULL, tgroup * 3 + tchan, channel->bcdmode); save_item(NAME(channel->bcdmode), tgroup * 3 + tchan);
state_save_register_item(machine(), "usb", NULL, tgroup * 3 + tchan, channel->output); save_item(NAME(channel->output), tgroup * 3 + tchan);
state_save_register_item(machine(), "usb", NULL, tgroup * 3 + tchan, channel->lastgate); save_item(NAME(channel->lastgate), tgroup * 3 + tchan);
state_save_register_item(machine(), "usb", NULL, tgroup * 3 + tchan, channel->gate); save_item(NAME(channel->gate), tgroup * 3 + tchan);
state_save_register_item(machine(), "usb", NULL, tgroup * 3 + tchan, channel->subcount); save_item(NAME(channel->subcount), tgroup * 3 + tchan);
state_save_register_item(machine(), "usb", NULL, tgroup * 3 + tchan, channel->count); save_item(NAME(channel->count), tgroup * 3 + tchan);
state_save_register_item(machine(), "usb", NULL, tgroup * 3 + tchan, channel->remain); save_item(NAME(channel->remain), tgroup * 3 + tchan);
} }
state_save_register_item_array(machine(), "usb", NULL, tgroup, group->env); save_item(NAME(group->env), tgroup);
state_save_register_item(machine(), "usb", NULL, tgroup, group->chan_filter[0].capval); save_item(NAME(group->chan_filter[0].capval), tgroup);
state_save_register_item(machine(), "usb", NULL, tgroup, group->chan_filter[1].capval); save_item(NAME(group->chan_filter[1].capval), tgroup);
state_save_register_item(machine(), "usb", NULL, tgroup, group->gate1.capval); save_item(NAME(group->gate1.capval), tgroup);
state_save_register_item(machine(), "usb", NULL, tgroup, group->gate2.capval); save_item(NAME(group->gate2.capval), tgroup);
state_save_register_item(machine(), "usb", NULL, tgroup, group->config); save_item(NAME(group->config), tgroup);
} }
state_save_register_item_array(machine(), "usb", NULL, 0, m_timer_mode); save_item(NAME(m_timer_mode));
state_save_register_item(machine(), "usb", NULL, 0, m_noise_shift); save_item(NAME(m_noise_shift));
state_save_register_item(machine(), "usb", NULL, 0, m_noise_state); save_item(NAME(m_noise_state));
state_save_register_item(machine(), "usb", NULL, 0, m_noise_subcount); save_item(NAME(m_noise_subcount));
state_save_register_item(machine(), "usb", NULL, 0, m_final_filter.capval); save_item(NAME(m_final_filter.capval));
state_save_register_item(machine(), "usb", NULL, 0, m_noise_filters[0].capval); save_item(NAME(m_noise_filters[0].capval));
state_save_register_item(machine(), "usb", NULL, 0, m_noise_filters[1].capval); save_item(NAME(m_noise_filters[1].capval));
state_save_register_item(machine(), "usb", NULL, 0, m_noise_filters[2].capval); save_item(NAME(m_noise_filters[2].capval));
state_save_register_item(machine(), "usb", NULL, 0, m_noise_filters[3].capval); save_item(NAME(m_noise_filters[3].capval));
state_save_register_item(machine(), "usb", NULL, 0, m_noise_filters[4].capval); save_item(NAME(m_noise_filters[4].capval));
} }
//------------------------------------------------- //-------------------------------------------------

View File

@ -85,15 +85,15 @@ void tiamc1_sound_device::device_start()
for (j = 0; j < 3; j++) for (j = 0; j < 3; j++)
{ {
state_save_register_item(machine(), "channel", NULL, i * 3 + j, t->channel[j].count); save_item(NAME(t->channel[j].count), i * 3 + j);
state_save_register_item(machine(), "channel", NULL, i * 3 + j, t->channel[j].cnval); save_item(NAME(t->channel[j].cnval), i * 3 + j);
state_save_register_item(machine(), "channel", NULL, i * 3 + j, t->channel[j].bcdMode); save_item(NAME(t->channel[j].bcdMode), i * 3 + j);
state_save_register_item(machine(), "channel", NULL, i * 3 + j, t->channel[j].cntMode); save_item(NAME(t->channel[j].cntMode), i * 3 + j);
state_save_register_item(machine(), "channel", NULL, i * 3 + j, t->channel[j].valMode); save_item(NAME(t->channel[j].valMode), i * 3 + j);
state_save_register_item(machine(), "channel", NULL, i * 3 + j, t->channel[j].gate); save_item(NAME(t->channel[j].gate), i * 3 + j);
state_save_register_item(machine(), "channel", NULL, i * 3 + j, t->channel[j].output); save_item(NAME(t->channel[j].output), i * 3 + j);
state_save_register_item(machine(), "channel", NULL, i * 3 + j, t->channel[j].loadCnt); save_item(NAME(t->channel[j].loadCnt), i * 3 + j);
state_save_register_item(machine(), "channel", NULL, i * 3 + j, t->channel[j].enable); save_item(NAME(t->channel[j].enable), i * 3 + j);
} }
} }

View File

@ -44,18 +44,18 @@ void konppc_device::device_start()
nwk_fifo[i] = auto_alloc_array(machine(), UINT32, 0x800); nwk_fifo[i] = auto_alloc_array(machine(), UINT32, 0x800);
nwk_ram[i] = auto_alloc_array(machine(), UINT32, 0x2000); nwk_ram[i] = auto_alloc_array(machine(), UINT32, 0x2000);
state_save_register_item_array(machine(), "konppc", NULL, i, dsp_comm_ppc[i]); save_item(NAME(dsp_comm_ppc[i]), i);
state_save_register_item_array(machine(), "konppc", NULL, i, dsp_comm_sharc[i]); save_item(NAME(dsp_comm_sharc[i]), i);
state_save_register_item(machine(), "konppc", NULL, i, dsp_shared_ram_bank[i]); save_item(NAME(dsp_shared_ram_bank[i]), i);
state_save_register_item_pointer(machine(), "konppc", NULL, i, dsp_shared_ram[i], DSP_BANK_SIZE * 2 / sizeof(dsp_shared_ram[i][0])); save_pointer(NAME(dsp_shared_ram[i]), DSP_BANK_SIZE * 2 / sizeof(dsp_shared_ram[i][0]), i);
state_save_register_item(machine(), "konppc", NULL, i, dsp_state[i]); save_item(NAME(dsp_state[i]), i);
state_save_register_item(machine(), "konppc", NULL, i, nwk_device_sel[i]); save_item(NAME(nwk_device_sel[i]), i);
state_save_register_item(machine(), "konppc", NULL, i, nwk_fifo_read_ptr[i]); save_item(NAME(nwk_fifo_read_ptr[i]), i);
state_save_register_item(machine(), "konppc", NULL, i, nwk_fifo_write_ptr[i]); save_item(NAME(nwk_fifo_write_ptr[i]), i);
state_save_register_item_pointer(machine(), "konppc", NULL, i, nwk_fifo[i], 0x800); save_pointer(NAME(nwk_fifo[i]), 0x800, i);
state_save_register_item_pointer(machine(), "konppc", NULL, i, nwk_ram[i], 0x2000); save_pointer(NAME(nwk_ram[i]), 0x2000, i);
} }
state_save_register_item(machine(), "konppc", NULL, 0, cgboard_id); save_item(NAME(cgboard_id));
if (cgboard_type == CGBOARD_TYPE_NWKTR) if (cgboard_type == CGBOARD_TYPE_NWKTR)
{ {

View File

@ -139,19 +139,19 @@ void lynx_sound_device::register_save()
save_item(NAME(m_master_enable)); save_item(NAME(m_master_enable));
for (int chan = 0; chan < LYNX_AUDIO_CHANNELS; chan++) for (int chan = 0; chan < LYNX_AUDIO_CHANNELS; chan++)
{ {
state_save_register_item(machine(), "Lynx sound", NULL, chan, m_audio[chan].reg.volume); save_item(NAME(m_audio[chan].reg.volume), chan);
state_save_register_item(machine(), "Lynx sound", NULL, chan, m_audio[chan].reg.feedback); save_item(NAME(m_audio[chan].reg.feedback), chan);
state_save_register_item(machine(), "Lynx sound", NULL, chan, m_audio[chan].reg.output); save_item(NAME(m_audio[chan].reg.output), chan);
state_save_register_item(machine(), "Lynx sound", NULL, chan, m_audio[chan].reg.shifter); save_item(NAME(m_audio[chan].reg.shifter), chan);
state_save_register_item(machine(), "Lynx sound", NULL, chan, m_audio[chan].reg.bakup); save_item(NAME(m_audio[chan].reg.bakup), chan);
state_save_register_item(machine(), "Lynx sound", NULL, chan, m_audio[chan].reg.control1); save_item(NAME(m_audio[chan].reg.control1), chan);
state_save_register_item(machine(), "Lynx sound", NULL, chan, m_audio[chan].reg.counter); save_item(NAME(m_audio[chan].reg.counter), chan);
state_save_register_item(machine(), "Lynx sound", NULL, chan, m_audio[chan].reg.control2); save_item(NAME(m_audio[chan].reg.control2), chan);
state_save_register_item(machine(), "Lynx sound", NULL, chan, m_audio[chan].attenuation); save_item(NAME(m_audio[chan].attenuation), chan);
state_save_register_item(machine(), "Lynx sound", NULL, chan, m_audio[chan].mask); save_item(NAME(m_audio[chan].mask), chan);
state_save_register_item(machine(), "Lynx sound", NULL, chan, m_audio[chan].shifter); save_item(NAME(m_audio[chan].shifter), chan);
state_save_register_item(machine(), "Lynx sound", NULL, chan, m_audio[chan].ticks); save_item(NAME(m_audio[chan].ticks), chan);
state_save_register_item(machine(), "Lynx sound", NULL, chan, m_audio[chan].count); save_item(NAME(m_audio[chan].count), chan);
} }
} }

View File

@ -1381,11 +1381,11 @@ void lynx_state::lynx_timer_init(int which)
memset(&m_timer[which], 0, sizeof(LYNX_TIMER)); memset(&m_timer[which], 0, sizeof(LYNX_TIMER));
m_timer[which].timer = timer_alloc(TIMER_SHOT); m_timer[which].timer = timer_alloc(TIMER_SHOT);
state_save_register_item(machine(), "Lynx", NULL, which, m_timer[which].bakup); save_item(NAME(m_timer[which].bakup), which);
state_save_register_item(machine(), "Lynx", NULL, which, m_timer[which].cntrl1); save_item(NAME(m_timer[which].cntrl1), which);
state_save_register_item(machine(), "Lynx", NULL, which, m_timer[which].cntrl2); save_item(NAME(m_timer[which].cntrl2), which);
state_save_register_item(machine(), "Lynx", NULL, which, m_timer[which].counter); save_item(NAME(m_timer[which].counter), which);
state_save_register_item(machine(), "Lynx", NULL, which, m_timer[which].timer_active); save_item(NAME(m_timer[which].timer_active), which);
} }
void lynx_state::lynx_timer_signal_irq(int which) void lynx_state::lynx_timer_signal_irq(int which)