mirror of
https://github.com/libretro/mame.git
synced 2024-12-11 19:53:49 +00:00
save state cleanup, converted state_save_register_global* into save_item/save_pointer (nw)
This commit is contained in:
parent
19a36083f9
commit
6a52173033
@ -126,7 +126,7 @@ static CPU_INIT( mb86233 )
|
||||
cpustate->ARAM = &cpustate->RAM[0];
|
||||
cpustate->BRAM = &cpustate->RAM[0x200];
|
||||
|
||||
state_save_register_global_pointer(device->machine(), cpustate->RAM,2 * 0x200 * sizeof(UINT32));
|
||||
device->machine().save().save_pointer(NAME(cpustate->RAM),2 * 0x200 * sizeof(UINT32));
|
||||
}
|
||||
|
||||
static CPU_RESET( mb86233 )
|
||||
|
@ -147,8 +147,8 @@ void palette_init(running_machine &machine)
|
||||
numcolors = palette_get_num_colors(machine.palette);
|
||||
palette->save_pen = auto_alloc_array(machine, pen_t, numcolors);
|
||||
palette->save_bright = auto_alloc_array(machine, float, numcolors);
|
||||
state_save_register_global_pointer(machine, palette->save_pen, numcolors);
|
||||
state_save_register_global_pointer(machine, palette->save_bright, numcolors);
|
||||
machine.save().save_pointer(NAME(palette->save_pen), numcolors);
|
||||
machine.save().save_pointer(NAME(palette->save_bright), numcolors);
|
||||
machine.save().register_presave(save_prepost_delegate(FUNC(palette_presave), &machine));
|
||||
machine.save().register_postload(save_prepost_delegate(FUNC(palette_postload), &machine));
|
||||
}
|
||||
@ -337,13 +337,13 @@ colortable_t *colortable_alloc(running_machine &machine, UINT32 palettesize)
|
||||
ctable->raw = auto_alloc_array(machine, UINT16, ctable->entries);
|
||||
for (index = 0; index < ctable->entries; index++)
|
||||
ctable->raw[index] = index % ctable->palentries;
|
||||
state_save_register_global_pointer(machine, ctable->raw, ctable->entries);
|
||||
machine.save().save_pointer(NAME(ctable->raw), ctable->entries);
|
||||
|
||||
/* allocate the palette */
|
||||
ctable->palette = auto_alloc_array(machine, rgb_t, ctable->palentries);
|
||||
for (index = 0; index < ctable->palentries; index++)
|
||||
ctable->palette[index] = MAKE_ARGB(0x80,0xff,0xff,0xff);
|
||||
state_save_register_global_pointer(machine, ctable->palette, ctable->palentries);
|
||||
machine.save().save_pointer(NAME(ctable->palette), ctable->palentries);
|
||||
|
||||
return ctable;
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ void generic_machine_init(running_machine &machine)
|
||||
/* for memory cards, request save state and an exit callback */
|
||||
if (machine.config().m_memcard_handler != NULL)
|
||||
{
|
||||
state_save_register_global(machine, state->memcard_inserted);
|
||||
machine.save().save_item(NAME(state->memcard_inserted));
|
||||
machine.add_notifier(MACHINE_NOTIFY_EXIT, machine_notify_delegate(FUNC(memcard_eject), &machine));
|
||||
}
|
||||
}
|
||||
|
@ -96,24 +96,6 @@ typedef delegate<void ()> save_prepost_delegate;
|
||||
|
||||
|
||||
|
||||
// register global items
|
||||
#define state_save_register_global(_mach, _val) \
|
||||
(_mach).save().save_item(_val, #_val)
|
||||
|
||||
#define state_save_register_global_pointer(_mach, _val, _count) \
|
||||
(_mach).save().save_pointer(_val, #_val, _count)
|
||||
|
||||
#define state_save_register_global_array(_mach, _val) \
|
||||
(_mach).save().save_item(_val, #_val)
|
||||
|
||||
#define state_save_register_global_2d_array(_mach, _val) \
|
||||
(_mach).save().save_item(_val, #_val)
|
||||
|
||||
#define state_save_register_global_bitmap(_mach, _val) \
|
||||
(_mach).save().save_item(*(_val), #_val)
|
||||
|
||||
|
||||
|
||||
//**************************************************************************
|
||||
// TYPE DEFINITIONS
|
||||
//**************************************************************************
|
||||
|
@ -832,7 +832,7 @@ sound_manager::sound_manager(running_machine &machine)
|
||||
machine.add_notifier(MACHINE_NOTIFY_RESET, machine_notify_delegate(FUNC(sound_manager::reset), this));
|
||||
|
||||
// register global states
|
||||
state_save_register_global(machine, m_last_update);
|
||||
machine.save().save_item(NAME(m_last_update));
|
||||
|
||||
// set the starting attenuation
|
||||
set_attenuation(machine.options().volume());
|
||||
|
@ -567,37 +567,37 @@ void psxgpu_device::psx_gpu_init( int n_gputype )
|
||||
// icky!!!
|
||||
machine().save().save_memory( "globals", NULL, 0, "m_packet", (UINT8 *)&m_packet, 1, sizeof( m_packet ) );
|
||||
|
||||
state_save_register_global_pointer( machine(), p_vram, width * height );
|
||||
state_save_register_global(machine(), n_gpu_buffer_offset );
|
||||
state_save_register_global(machine(), n_vramx );
|
||||
state_save_register_global(machine(), n_vramy );
|
||||
state_save_register_global(machine(), n_twy );
|
||||
state_save_register_global(machine(), n_twx );
|
||||
state_save_register_global(machine(), n_tww );
|
||||
state_save_register_global(machine(), n_drawarea_x1 );
|
||||
state_save_register_global(machine(), n_drawarea_y1 );
|
||||
state_save_register_global(machine(), n_drawarea_x2 );
|
||||
state_save_register_global(machine(), n_drawarea_y2 );
|
||||
state_save_register_global(machine(), n_horiz_disstart );
|
||||
state_save_register_global(machine(), n_horiz_disend );
|
||||
state_save_register_global(machine(), n_vert_disstart );
|
||||
state_save_register_global(machine(), n_vert_disend );
|
||||
state_save_register_global(machine(), b_reverseflag );
|
||||
state_save_register_global(machine(), n_drawoffset_x );
|
||||
state_save_register_global(machine(), n_drawoffset_y );
|
||||
state_save_register_global(machine(), m_n_displaystartx );
|
||||
state_save_register_global(machine(), n_displaystarty );
|
||||
state_save_register_global(machine(), n_gpustatus );
|
||||
state_save_register_global(machine(), n_gpuinfo );
|
||||
state_save_register_global(machine(), n_lightgun_x );
|
||||
state_save_register_global(machine(), n_lightgun_y );
|
||||
state_save_register_global(machine(), m_n_tx );
|
||||
state_save_register_global(machine(), m_n_ty );
|
||||
state_save_register_global(machine(), n_abr );
|
||||
state_save_register_global(machine(), n_tp );
|
||||
state_save_register_global(machine(), n_ix );
|
||||
state_save_register_global(machine(), n_iy );
|
||||
state_save_register_global(machine(), n_ti );
|
||||
save_pointer(NAME(p_vram), width * height );
|
||||
save_item(NAME(n_gpu_buffer_offset));
|
||||
save_item(NAME(n_vramx));
|
||||
save_item(NAME(n_vramy));
|
||||
save_item(NAME(n_twy));
|
||||
save_item(NAME(n_twx));
|
||||
save_item(NAME(n_tww));
|
||||
save_item(NAME(n_drawarea_x1));
|
||||
save_item(NAME(n_drawarea_y1));
|
||||
save_item(NAME(n_drawarea_x2));
|
||||
save_item(NAME(n_drawarea_y2));
|
||||
save_item(NAME(n_horiz_disstart));
|
||||
save_item(NAME(n_horiz_disend));
|
||||
save_item(NAME(n_vert_disstart));
|
||||
save_item(NAME(n_vert_disend));
|
||||
save_item(NAME(b_reverseflag));
|
||||
save_item(NAME(n_drawoffset_x));
|
||||
save_item(NAME(n_drawoffset_y));
|
||||
save_item(NAME(m_n_displaystartx));
|
||||
save_item(NAME(n_displaystarty));
|
||||
save_item(NAME(n_gpustatus));
|
||||
save_item(NAME(n_gpuinfo));
|
||||
save_item(NAME(n_lightgun_x));
|
||||
save_item(NAME(n_lightgun_y));
|
||||
save_item(NAME(m_n_tx));
|
||||
save_item(NAME(m_n_ty));
|
||||
save_item(NAME(n_abr));
|
||||
save_item(NAME(n_tp));
|
||||
save_item(NAME(n_ix));
|
||||
save_item(NAME(n_iy));
|
||||
save_item(NAME(n_ti));
|
||||
|
||||
machine().save().register_postload( save_prepost_delegate( FUNC( psxgpu_device::updatevisiblearea ), this ) );
|
||||
}
|
||||
|
@ -2145,14 +2145,14 @@ int saturn_state::stv_vdp1_start ( void )
|
||||
m_vdp1.user_cliprect.set(0, 512, 0, 256);
|
||||
|
||||
// save state
|
||||
state_save_register_global_pointer(machine(), m_vdp1_regs, 0x020/2);
|
||||
state_save_register_global_pointer(machine(), m_vdp1_vram, 0x100000/4);
|
||||
state_save_register_global(machine(), m_vdp1.fbcr_accessed);
|
||||
state_save_register_global(machine(), m_vdp1.framebuffer_current_display);
|
||||
state_save_register_global(machine(), m_vdp1.framebuffer_current_draw);
|
||||
state_save_register_global(machine(), m_vdp1.framebuffer_clear_on_next_frame);
|
||||
state_save_register_global(machine(), m_vdp1.local_x);
|
||||
state_save_register_global(machine(), m_vdp1.local_y);
|
||||
save_pointer(NAME(m_vdp1_regs), 0x020/2);
|
||||
save_pointer(NAME(m_vdp1_vram), 0x100000/4);
|
||||
save_item(NAME(m_vdp1.fbcr_accessed));
|
||||
save_item(NAME(m_vdp1.framebuffer_current_display));
|
||||
save_item(NAME(m_vdp1.framebuffer_current_draw));
|
||||
save_item(NAME(m_vdp1.framebuffer_clear_on_next_frame));
|
||||
save_item(NAME(m_vdp1.local_x));
|
||||
save_item(NAME(m_vdp1.local_y));
|
||||
machine().save().register_postload(save_prepost_delegate(FUNC(saturn_state::stv_vdp1_state_save_postload), this));
|
||||
return 0;
|
||||
}
|
||||
|
@ -6104,9 +6104,9 @@ int saturn_state::stv_vdp2_start ( void )
|
||||
stv_rbg_cache_data.is_cache_dirty = 3;
|
||||
memset( &stv_vdp2_layer_data_placement, 0, sizeof(stv_vdp2_layer_data_placement));
|
||||
|
||||
state_save_register_global_pointer(machine(), m_vdp2_regs, 0x040000/2);
|
||||
state_save_register_global_pointer(machine(), m_vdp2_vram, 0x100000/4);
|
||||
state_save_register_global_pointer(machine(), m_vdp2_cram, 0x080000/4);
|
||||
save_pointer(NAME(m_vdp2_regs), 0x040000/2);
|
||||
save_pointer(NAME(m_vdp2_vram), 0x100000/4);
|
||||
save_pointer(NAME(m_vdp2_cram), 0x080000/4);
|
||||
machine().save().register_postload(save_prepost_delegate(FUNC(saturn_state::stv_vdp2_state_save_postload), this));
|
||||
|
||||
return 0;
|
||||
|
@ -86,7 +86,7 @@ void tms34061_start(running_machine &machine, const struct tms34061_interface *i
|
||||
/* allocate memory for VRAM */
|
||||
tms34061.vram = auto_alloc_array_clear(machine, UINT8, tms34061.intf.vramsize + 256 * 2);
|
||||
/* not really a save state, just there for debugging purposes */
|
||||
state_save_register_global_pointer(machine, tms34061.vram, tms34061.intf.vramsize);
|
||||
machine.save().save_pointer(NAME(tms34061.vram), tms34061.intf.vramsize);
|
||||
|
||||
/* allocate memory for latch RAM */
|
||||
tms34061.latchram = auto_alloc_array_clear(machine, UINT8, tms34061.intf.vramsize + 256 * 2);
|
||||
|
@ -107,11 +107,11 @@ ADDRESS_MAP_END
|
||||
|
||||
static void init_save_state(running_machine &machine)
|
||||
{
|
||||
state_save_register_global(machine, overall_volume);
|
||||
state_save_register_global(machine, pokey_volume);
|
||||
state_save_register_global(machine, ym2151_volume);
|
||||
state_save_register_global(machine, tms5220_volume);
|
||||
state_save_register_global(machine, oki6295_volume);
|
||||
machine.save().save_item(NAME(overall_volume));
|
||||
machine.save().save_item(NAME(pokey_volume));
|
||||
machine.save().save_item(NAME(ym2151_volume));
|
||||
machine.save().save_item(NAME(tms5220_volume));
|
||||
machine.save().save_item(NAME(oki6295_volume));
|
||||
}
|
||||
|
||||
|
||||
|
@ -186,14 +186,14 @@ void cage_init(running_machine &machine, offs_t speedup)
|
||||
state->dmadac[chan] = machine.device<dmadac_sound_device>(buffer);
|
||||
}
|
||||
|
||||
state_save_register_global(machine, cage.cpu_to_cage_ready);
|
||||
state_save_register_global(machine, cage.cage_to_cpu_ready);
|
||||
state_save_register_global(machine, cage.serial_period_per_word);
|
||||
state_save_register_global(machine, cage.dma_enabled);
|
||||
state_save_register_global(machine, cage.dma_timer_enabled);
|
||||
state_save_register_global_array(machine, cage.timer_enabled);
|
||||
state_save_register_global(machine, cage.from_main);
|
||||
state_save_register_global(machine, cage.control);
|
||||
machine.save().save_item(NAME(cage.cpu_to_cage_ready));
|
||||
machine.save().save_item(NAME(cage.cage_to_cpu_ready));
|
||||
machine.save().save_item(NAME(cage.serial_period_per_word));
|
||||
machine.save().save_item(NAME(cage.dma_enabled));
|
||||
machine.save().save_item(NAME(cage.dma_timer_enabled));
|
||||
machine.save().save_item(NAME(cage.timer_enabled));
|
||||
machine.save().save_item(NAME(cage.from_main));
|
||||
machine.save().save_item(NAME(cage.control));
|
||||
}
|
||||
|
||||
|
||||
|
@ -75,16 +75,16 @@ static SOUND_START( generic )
|
||||
{
|
||||
cinemat_state *state = machine.driver_data<cinemat_state>();
|
||||
/* register for save states */
|
||||
state_save_register_global(machine, state->m_sound_control);
|
||||
state_save_register_global(machine, state->m_current_shift);
|
||||
state_save_register_global(machine, state->m_last_shift);
|
||||
state_save_register_global(machine, state->m_last_shift2);
|
||||
state_save_register_global(machine, state->m_current_pitch);
|
||||
state_save_register_global(machine, state->m_last_frame);
|
||||
state_save_register_global_array(machine, state->m_sound_fifo);
|
||||
state_save_register_global(machine, state->m_sound_fifo_in);
|
||||
state_save_register_global(machine, state->m_sound_fifo_out);
|
||||
state_save_register_global(machine, state->m_last_portb_write);
|
||||
machine.save().save_item(NAME(state->m_sound_control));
|
||||
machine.save().save_item(NAME(state->m_current_shift));
|
||||
machine.save().save_item(NAME(state->m_last_shift));
|
||||
machine.save().save_item(NAME(state->m_last_shift2));
|
||||
machine.save().save_item(NAME(state->m_current_pitch));
|
||||
machine.save().save_item(NAME(state->m_last_frame));
|
||||
machine.save().save_item(NAME(state->m_sound_fifo));
|
||||
machine.save().save_item(NAME(state->m_sound_fifo_in));
|
||||
machine.save().save_item(NAME(state->m_sound_fifo_out));
|
||||
machine.save().save_item(NAME(state->m_last_portb_write));
|
||||
}
|
||||
|
||||
|
||||
|
@ -883,52 +883,52 @@ static TIMER_CALLBACK( dcs_reset )
|
||||
|
||||
static void dcs_register_state(running_machine &machine)
|
||||
{
|
||||
state_save_register_global_array(machine, dcs.sdrc.reg);
|
||||
state_save_register_global(machine, dcs.sdrc.seed);
|
||||
machine.save().save_item(NAME(dcs.sdrc.reg));
|
||||
machine.save().save_item(NAME(dcs.sdrc.seed));
|
||||
|
||||
state_save_register_global_array(machine, dcs.dsio.reg);
|
||||
state_save_register_global(machine, dcs.dsio.start_on_next_write);
|
||||
state_save_register_global(machine, dcs.dsio.channelbits);
|
||||
machine.save().save_item(NAME(dcs.dsio.reg));
|
||||
machine.save().save_item(NAME(dcs.dsio.start_on_next_write));
|
||||
machine.save().save_item(NAME(dcs.dsio.channelbits));
|
||||
|
||||
state_save_register_global(machine, dcs.channels);
|
||||
state_save_register_global(machine, dcs.size);
|
||||
state_save_register_global(machine, dcs.incs);
|
||||
state_save_register_global(machine, dcs.ireg);
|
||||
state_save_register_global(machine, dcs.ireg_base);
|
||||
state_save_register_global_array(machine, dcs.control_regs);
|
||||
machine.save().save_item(NAME(dcs.channels));
|
||||
machine.save().save_item(NAME(dcs.size));
|
||||
machine.save().save_item(NAME(dcs.incs));
|
||||
machine.save().save_item(NAME(dcs.ireg));
|
||||
machine.save().save_item(NAME(dcs.ireg_base));
|
||||
machine.save().save_item(NAME(dcs.control_regs));
|
||||
|
||||
state_save_register_global(machine, dcs.sounddata_bank);
|
||||
machine.save().save_item(NAME(dcs.sounddata_bank));
|
||||
|
||||
state_save_register_global(machine, dcs.auto_ack);
|
||||
state_save_register_global(machine, dcs.latch_control);
|
||||
state_save_register_global(machine, dcs.input_data);
|
||||
state_save_register_global(machine, dcs.output_data);
|
||||
state_save_register_global(machine, dcs.output_control);
|
||||
state_save_register_global(machine, dcs.output_control_cycles);
|
||||
state_save_register_global(machine, dcs.last_output_full);
|
||||
state_save_register_global(machine, dcs.last_input_empty);
|
||||
state_save_register_global(machine, dcs.progflags);
|
||||
machine.save().save_item(NAME(dcs.auto_ack));
|
||||
machine.save().save_item(NAME(dcs.latch_control));
|
||||
machine.save().save_item(NAME(dcs.input_data));
|
||||
machine.save().save_item(NAME(dcs.output_data));
|
||||
machine.save().save_item(NAME(dcs.output_control));
|
||||
machine.save().save_item(NAME(dcs.output_control_cycles));
|
||||
machine.save().save_item(NAME(dcs.last_output_full));
|
||||
machine.save().save_item(NAME(dcs.last_input_empty));
|
||||
machine.save().save_item(NAME(dcs.progflags));
|
||||
|
||||
state_save_register_global(machine, dcs.timer_enable);
|
||||
state_save_register_global(machine, dcs.timer_ignore);
|
||||
state_save_register_global(machine, dcs.timer_start_cycles);
|
||||
state_save_register_global(machine, dcs.timer_start_count);
|
||||
state_save_register_global(machine, dcs.timer_scale);
|
||||
state_save_register_global(machine, dcs.timer_period);
|
||||
state_save_register_global(machine, dcs.timers_fired);
|
||||
machine.save().save_item(NAME(dcs.timer_enable));
|
||||
machine.save().save_item(NAME(dcs.timer_ignore));
|
||||
machine.save().save_item(NAME(dcs.timer_start_cycles));
|
||||
machine.save().save_item(NAME(dcs.timer_start_count));
|
||||
machine.save().save_item(NAME(dcs.timer_scale));
|
||||
machine.save().save_item(NAME(dcs.timer_period));
|
||||
machine.save().save_item(NAME(dcs.timers_fired));
|
||||
|
||||
state_save_register_global(machine, dcs.transfer.dcs_state);
|
||||
state_save_register_global(machine, dcs.transfer.state);
|
||||
state_save_register_global(machine, dcs.transfer.start);
|
||||
state_save_register_global(machine, dcs.transfer.stop);
|
||||
state_save_register_global(machine, dcs.transfer.type);
|
||||
state_save_register_global(machine, dcs.transfer.temp);
|
||||
state_save_register_global(machine, dcs.transfer.writes_left);
|
||||
state_save_register_global(machine, dcs.transfer.sum);
|
||||
state_save_register_global(machine, dcs.transfer.fifo_entries);
|
||||
machine.save().save_item(NAME(dcs.transfer.dcs_state));
|
||||
machine.save().save_item(NAME(dcs.transfer.state));
|
||||
machine.save().save_item(NAME(dcs.transfer.start));
|
||||
machine.save().save_item(NAME(dcs.transfer.stop));
|
||||
machine.save().save_item(NAME(dcs.transfer.type));
|
||||
machine.save().save_item(NAME(dcs.transfer.temp));
|
||||
machine.save().save_item(NAME(dcs.transfer.writes_left));
|
||||
machine.save().save_item(NAME(dcs.transfer.sum));
|
||||
machine.save().save_item(NAME(dcs.transfer.fifo_entries));
|
||||
|
||||
if (dcs.sram != NULL)
|
||||
state_save_register_global_pointer(machine, dcs.sram, 0x8000*4 / sizeof(dcs.sram[0]));
|
||||
machine.save().save_pointer(NAME(dcs.sram), 0x8000*4 / sizeof(dcs.sram[0]));
|
||||
|
||||
if (dcs.rev == 2)
|
||||
machine.save().register_postload(save_prepost_delegate(FUNC(sdrc_remap_memory), &machine));
|
||||
|
@ -172,8 +172,8 @@ static DEVICE_START( exidy440_sound )
|
||||
/* reset the system */
|
||||
state->sound_command = 0;
|
||||
state->sound_command_ack = 1;
|
||||
state_save_register_global(machine, state->sound_command);
|
||||
state_save_register_global(machine, state->sound_command_ack);
|
||||
machine.save().save_item(NAME(state->sound_command));
|
||||
machine.save().save_item(NAME(state->sound_command_ack));
|
||||
|
||||
/* reset the 6844 */
|
||||
for (i = 0; i < 4; i++)
|
||||
@ -185,9 +185,9 @@ static DEVICE_START( exidy440_sound )
|
||||
state->m6844_interrupt = 0x00;
|
||||
state->m6844_chain = 0x00;
|
||||
|
||||
state_save_register_global(machine, state->m6844_priority);
|
||||
state_save_register_global(machine, state->m6844_interrupt);
|
||||
state_save_register_global(machine, state->m6844_chain);
|
||||
machine.save().save_item(NAME(state->m6844_priority));
|
||||
machine.save().save_item(NAME(state->m6844_interrupt));
|
||||
machine.save().save_item(NAME(state->m6844_chain));
|
||||
|
||||
state->channel_frequency[0] = device->clock(); /* channels 0 and 1 are run by FCLK */
|
||||
state->channel_frequency[1] = device->clock();
|
||||
|
@ -258,8 +258,8 @@ MACHINE_CONFIG_END
|
||||
static SOUND_START( astrob )
|
||||
{
|
||||
segag80r_state *state = machine.driver_data<segag80r_state>();
|
||||
state_save_register_global_array(machine, state->m_sound_state);
|
||||
state_save_register_global(machine, state->m_sound_rate);
|
||||
machine.save().save_item(NAME(state->m_sound_state));
|
||||
machine.save().save_item(NAME(state->m_sound_rate));
|
||||
}
|
||||
|
||||
|
||||
@ -488,11 +488,11 @@ MACHINE_CONFIG_END
|
||||
static SOUND_START( sega005 )
|
||||
{
|
||||
segag80r_state *state = machine.driver_data<segag80r_state>();
|
||||
state_save_register_global_array(machine, state->m_sound_state);
|
||||
state_save_register_global(machine, state->m_sound_addr);
|
||||
state_save_register_global(machine, state->m_sound_data);
|
||||
state_save_register_global(machine, state->m_square_state);
|
||||
state_save_register_global(machine, state->m_square_count);
|
||||
state->save_item(NAME(state->m_sound_state));
|
||||
state->save_item(NAME(state->m_sound_addr));
|
||||
state->save_item(NAME(state->m_sound_data));
|
||||
state->save_item(NAME(state->m_square_state));
|
||||
state->save_item(NAME(state->m_square_count));
|
||||
}
|
||||
|
||||
|
||||
@ -709,7 +709,7 @@ MACHINE_CONFIG_END
|
||||
static SOUND_START( spaceod )
|
||||
{
|
||||
segag80r_state *state = machine.driver_data<segag80r_state>();
|
||||
state_save_register_global_array(machine, state->m_sound_state);
|
||||
state->save_item(NAME(state->m_sound_state));
|
||||
}
|
||||
|
||||
|
||||
@ -881,10 +881,10 @@ MACHINE_CONFIG_END
|
||||
static SOUND_START( monsterb )
|
||||
{
|
||||
segag80r_state *state = machine.driver_data<segag80r_state>();
|
||||
state_save_register_global_array(machine, state->m_sound_state);
|
||||
state_save_register_global(machine, state->m_sound_addr);
|
||||
state_save_register_global(machine, state->m_n7751_command);
|
||||
state_save_register_global(machine, state->m_n7751_busy);
|
||||
state->save_item(NAME(state->m_sound_state));
|
||||
state->save_item(NAME(state->m_sound_addr));
|
||||
state->save_item(NAME(state->m_n7751_command));
|
||||
state->save_item(NAME(state->m_n7751_busy));
|
||||
}
|
||||
|
||||
|
||||
|
@ -156,10 +156,10 @@ static void common_audio_start(running_machine &machine, int freq)
|
||||
samples->set_volume(3, 0);
|
||||
samples->start_raw(3, sine_wave, 32, 1000, true);
|
||||
|
||||
state_save_register_global(machine, port_1_last);
|
||||
state_save_register_global(machine, port_2_last);
|
||||
state_save_register_global(machine, tone_freq);
|
||||
state_save_register_global(machine, tone_active);
|
||||
machine.save().save_item(NAME(port_1_last));
|
||||
machine.save().save_item(NAME(port_2_last));
|
||||
machine.save().save_item(NAME(tone_freq));
|
||||
machine.save().save_item(NAME(tone_active));
|
||||
}
|
||||
|
||||
|
||||
@ -176,7 +176,7 @@ static SAMPLES_START( targ_audio_start )
|
||||
|
||||
tone_pointer = 0;
|
||||
|
||||
state_save_register_global(machine, tone_pointer);
|
||||
machine.save().save_item(NAME(tone_pointer));
|
||||
}
|
||||
|
||||
|
||||
|
@ -1642,7 +1642,7 @@ DRIVER_INIT_MEMBER(aristmk4_state,aristmk4)
|
||||
|
||||
void aristmk4_state::machine_start()
|
||||
{
|
||||
state_save_register_global_pointer(machine(), m_nvram, 0x1000); // m_nvram
|
||||
save_pointer(NAME(m_nvram), 0x1000); // m_nvram
|
||||
}
|
||||
|
||||
void aristmk4_state::machine_reset()
|
||||
|
@ -67,15 +67,15 @@ static void m68k_gen_int(device_t *device, int state)
|
||||
|
||||
void artmagic_state::machine_start()
|
||||
{
|
||||
state_save_register_global(machine(), m_tms_irq);
|
||||
state_save_register_global(machine(), m_hack_irq);
|
||||
state_save_register_global(machine(), m_prot_input_index);
|
||||
state_save_register_global(machine(), m_prot_output_index);
|
||||
state_save_register_global(machine(), m_prot_output_bit);
|
||||
state_save_register_global(machine(), m_prot_bit_index);
|
||||
state_save_register_global(machine(), m_prot_save);
|
||||
state_save_register_global_array(machine(), m_prot_input);
|
||||
state_save_register_global_array(machine(), m_prot_output);
|
||||
save_item(NAME(m_tms_irq));
|
||||
save_item(NAME(m_hack_irq));
|
||||
save_item(NAME(m_prot_input_index));
|
||||
save_item(NAME(m_prot_output_index));
|
||||
save_item(NAME(m_prot_output_bit));
|
||||
save_item(NAME(m_prot_bit_index));
|
||||
save_item(NAME(m_prot_save));
|
||||
save_item(NAME(m_prot_input));
|
||||
save_item(NAME(m_prot_output));
|
||||
}
|
||||
|
||||
void artmagic_state::machine_reset()
|
||||
|
@ -317,11 +317,11 @@ void berzerk_state::machine_start()
|
||||
create_nmi_timer();
|
||||
|
||||
/* register for state saving */
|
||||
state_save_register_global(machine(), m_magicram_control);
|
||||
state_save_register_global(machine(), m_last_shift_data);
|
||||
state_save_register_global(machine(), m_intercept);
|
||||
state_save_register_global(machine(), m_irq_enabled);
|
||||
state_save_register_global(machine(), m_nmi_enabled);
|
||||
save_item(NAME(m_magicram_control));
|
||||
save_item(NAME(m_last_shift_data));
|
||||
save_item(NAME(m_intercept));
|
||||
save_item(NAME(m_irq_enabled));
|
||||
save_item(NAME(m_nmi_enabled));
|
||||
}
|
||||
|
||||
|
||||
|
@ -1747,19 +1747,19 @@ DRIVER_INIT_MEMBER(bfcobra_state,bfcobra)
|
||||
m_data_r = 1;
|
||||
|
||||
/* Finish this */
|
||||
state_save_register_global(machine(), m_z80_m6809_line);
|
||||
state_save_register_global(machine(), m_m6809_z80_line);
|
||||
state_save_register_global(machine(), m_data_r);
|
||||
state_save_register_global(machine(), m_data_t);
|
||||
state_save_register_global(machine(), m_h_scroll);
|
||||
state_save_register_global(machine(), m_v_scroll);
|
||||
state_save_register_global(machine(), m_flip_8);
|
||||
state_save_register_global(machine(), m_flip_22);
|
||||
state_save_register_global(machine(), m_z80_int);
|
||||
state_save_register_global(machine(), m_z80_inten);
|
||||
state_save_register_global_array(machine(), m_bank_data);
|
||||
state_save_register_global_pointer(machine(), m_work_ram, 0xc0000);
|
||||
state_save_register_global_pointer(machine(), m_video_ram, 0x20000);
|
||||
save_item(NAME(m_z80_m6809_line));
|
||||
save_item(NAME(m_m6809_z80_line));
|
||||
save_item(NAME(m_data_r));
|
||||
save_item(NAME(m_data_t));
|
||||
save_item(NAME(m_h_scroll));
|
||||
save_item(NAME(m_v_scroll));
|
||||
save_item(NAME(m_flip_8));
|
||||
save_item(NAME(m_flip_22));
|
||||
save_item(NAME(m_z80_int));
|
||||
save_item(NAME(m_z80_inten));
|
||||
save_item(NAME(m_bank_data));
|
||||
save_pointer(NAME(m_work_ram), 0xc0000);
|
||||
save_pointer(NAME(m_video_ram), 0x20000);
|
||||
}
|
||||
|
||||
/* TODO */
|
||||
|
@ -225,14 +225,14 @@
|
||||
|
||||
void bzone_state::machine_start()
|
||||
{
|
||||
state_save_register_global(machine(), m_analog_data);
|
||||
save_item(NAME(m_analog_data));
|
||||
}
|
||||
|
||||
|
||||
MACHINE_START_MEMBER(bzone_state,redbaron)
|
||||
{
|
||||
state_save_register_global(machine(), m_analog_data);
|
||||
state_save_register_global(machine(), m_rb_input_select);
|
||||
save_item(NAME(m_analog_data));
|
||||
save_item(NAME(m_rb_input_select));
|
||||
}
|
||||
|
||||
|
||||
|
@ -54,9 +54,9 @@
|
||||
|
||||
void cinemat_state::machine_start()
|
||||
{
|
||||
state_save_register_global(machine(), m_coin_detected);
|
||||
state_save_register_global(machine(), m_coin_last_reset);
|
||||
state_save_register_global(machine(), m_mux_select);
|
||||
save_item(NAME(m_coin_detected));
|
||||
save_item(NAME(m_coin_last_reset));
|
||||
save_item(NAME(m_mux_select));
|
||||
}
|
||||
|
||||
|
||||
|
@ -812,11 +812,11 @@ void cps3_state::video_start()
|
||||
{
|
||||
m_ss_ram = auto_alloc_array(machine(), UINT32, 0x10000/4);
|
||||
memset(m_ss_ram, 0x00, 0x10000);
|
||||
state_save_register_global_pointer(machine(), m_ss_ram, 0x10000/4);
|
||||
save_pointer(NAME(m_ss_ram), 0x10000/4);
|
||||
|
||||
m_char_ram = auto_alloc_array(machine(), UINT32, 0x800000/4);
|
||||
memset(m_char_ram, 0x00, 0x800000);
|
||||
state_save_register_global_pointer(machine(), m_char_ram, 0x800000 /4);
|
||||
save_pointer(NAME(m_char_ram), 0x800000 /4);
|
||||
|
||||
/* create the char set (gfx will then be updated dynamically from RAM) */
|
||||
machine().gfx[0] = auto_alloc(machine(), gfx_element(machine(), cps3_tiles8x8_layout, (UINT8 *)m_ss_ram, machine().total_colors() / 16, 0));
|
||||
|
@ -101,7 +101,7 @@ void dblcrown_state::video_start()
|
||||
m_pal_ram = auto_alloc_array(machine(), UINT8, 0x200*2);
|
||||
m_vram = auto_alloc_array(machine(), UINT8, 0x1000*0x10);
|
||||
|
||||
state_save_register_global_pointer(machine(), m_vram, 0x1000*0x10);
|
||||
save_pointer(NAME(m_vram), 0x1000*0x10);
|
||||
}
|
||||
|
||||
UINT32 dblcrown_state::screen_update( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect )
|
||||
|
@ -1402,10 +1402,10 @@ void djmain_state::machine_start()
|
||||
if (ide != NULL && m_ide_user_password != NULL)
|
||||
ide->ide_set_user_password(m_ide_user_password);
|
||||
|
||||
state_save_register_global(machine(), m_sndram_bank);
|
||||
state_save_register_global(machine(), m_pending_vb_int);
|
||||
state_save_register_global(machine(), m_v_ctrl);
|
||||
state_save_register_global_array(machine(), m_obj_regs);
|
||||
save_item(NAME(m_sndram_bank));
|
||||
save_item(NAME(m_pending_vb_int));
|
||||
save_item(NAME(m_v_ctrl));
|
||||
save_item(NAME(m_obj_regs));
|
||||
|
||||
machine().save().register_postload(save_prepost_delegate(FUNC(djmain_state::sndram_set_bank), this));
|
||||
}
|
||||
|
@ -54,7 +54,7 @@ void espial_state::machine_reset()
|
||||
|
||||
void espial_state::machine_start()
|
||||
{
|
||||
//state_save_register_global_array(machine(), mcu_out[1]);
|
||||
//save_item(NAME(mcu_out[1]));
|
||||
save_item(NAME(m_sound_nmi_enabled));
|
||||
}
|
||||
|
||||
|
@ -652,34 +652,34 @@ DRIVER_INIT_MEMBER(esripsys_state,esripsys)
|
||||
membank("bank4")->set_base(&rom[0x8000]);
|
||||
|
||||
/* Register stuff for state saving */
|
||||
state_save_register_global_pointer(machine(), m_fdt_a, FDT_RAM_SIZE);
|
||||
state_save_register_global_pointer(machine(), m_fdt_b, FDT_RAM_SIZE);
|
||||
state_save_register_global_pointer(machine(), m_cmos_ram, CMOS_RAM_SIZE);
|
||||
save_pointer(NAME(m_fdt_a), FDT_RAM_SIZE);
|
||||
save_pointer(NAME(m_fdt_b), FDT_RAM_SIZE);
|
||||
save_pointer(NAME(m_cmos_ram), CMOS_RAM_SIZE);
|
||||
|
||||
state_save_register_global(machine(), m_g_iodata);
|
||||
state_save_register_global(machine(), m_g_ioaddr);
|
||||
state_save_register_global(machine(), m_coin_latch);
|
||||
state_save_register_global(machine(), m_keypad_status);
|
||||
state_save_register_global(machine(), m_g_status);
|
||||
state_save_register_global(machine(), m_f_status);
|
||||
state_save_register_global(machine(), m_io_firq_status);
|
||||
state_save_register_global(machine(), m_cmos_ram_a2_0);
|
||||
state_save_register_global(machine(), m_cmos_ram_a10_3);
|
||||
save_item(NAME(m_g_iodata));
|
||||
save_item(NAME(m_g_ioaddr));
|
||||
save_item(NAME(m_coin_latch));
|
||||
save_item(NAME(m_keypad_status));
|
||||
save_item(NAME(m_g_status));
|
||||
save_item(NAME(m_f_status));
|
||||
save_item(NAME(m_io_firq_status));
|
||||
save_item(NAME(m_cmos_ram_a2_0));
|
||||
save_item(NAME(m_cmos_ram_a10_3));
|
||||
|
||||
state_save_register_global(machine(), m_u56a);
|
||||
state_save_register_global(machine(), m_u56b);
|
||||
state_save_register_global(machine(), m_g_to_s_latch1);
|
||||
state_save_register_global(machine(), m_g_to_s_latch2);
|
||||
state_save_register_global(machine(), m_s_to_g_latch1);
|
||||
state_save_register_global(machine(), m_s_to_g_latch2);
|
||||
state_save_register_global(machine(), m_dac_msb);
|
||||
state_save_register_global(machine(), m_dac_vol);
|
||||
state_save_register_global(machine(), m_tms_data);
|
||||
save_item(NAME(m_u56a));
|
||||
save_item(NAME(m_u56b));
|
||||
save_item(NAME(m_g_to_s_latch1));
|
||||
save_item(NAME(m_g_to_s_latch2));
|
||||
save_item(NAME(m_s_to_g_latch1));
|
||||
save_item(NAME(m_s_to_g_latch2));
|
||||
save_item(NAME(m_dac_msb));
|
||||
save_item(NAME(m_dac_vol));
|
||||
save_item(NAME(m_tms_data));
|
||||
|
||||
m_fasel = 0;
|
||||
m_fbsel = 1;
|
||||
state_save_register_global(machine(), m_fasel);
|
||||
state_save_register_global(machine(), m_fbsel);
|
||||
save_item(NAME(m_fasel));
|
||||
save_item(NAME(m_fbsel));
|
||||
}
|
||||
|
||||
static const esrip_config rip_config =
|
||||
|
@ -793,7 +793,7 @@ GFXDECODE_END
|
||||
|
||||
MACHINE_START_MEMBER(exidy_state,teetert)
|
||||
{
|
||||
state_save_register_global(machine(), m_last_dial);
|
||||
save_item(NAME(m_last_dial));
|
||||
}
|
||||
|
||||
/*************************************
|
||||
|
@ -119,7 +119,7 @@ void forte2_state::machine_reset()
|
||||
void forte2_state::machine_start()
|
||||
{
|
||||
/* register for save states */
|
||||
state_save_register_global(machine(), m_input_mask);
|
||||
save_item(NAME(m_input_mask));
|
||||
}
|
||||
|
||||
|
||||
|
@ -185,14 +185,14 @@ static const gaelco_serial_interface serial_interface =
|
||||
void gaelco3d_state::machine_start()
|
||||
{
|
||||
/* Save state support */
|
||||
state_save_register_global(machine(), m_sound_data);
|
||||
state_save_register_global(machine(), m_sound_status);
|
||||
state_save_register_global_array(machine(), m_analog_ports);
|
||||
state_save_register_global(machine(), m_framenum);
|
||||
state_save_register_global(machine(), m_adsp_ireg);
|
||||
state_save_register_global(machine(), m_adsp_ireg_base);
|
||||
state_save_register_global(machine(), m_adsp_incs);
|
||||
state_save_register_global(machine(), m_adsp_size);
|
||||
save_item(NAME(m_sound_data));
|
||||
save_item(NAME(m_sound_status));
|
||||
save_item(NAME(m_analog_ports));
|
||||
save_item(NAME(m_framenum));
|
||||
save_item(NAME(m_adsp_ireg));
|
||||
save_item(NAME(m_adsp_ireg_base));
|
||||
save_item(NAME(m_adsp_incs));
|
||||
save_item(NAME(m_adsp_size));
|
||||
}
|
||||
|
||||
|
||||
|
@ -876,7 +876,7 @@ MACHINE_START_MEMBER(galaga_state,galaga)
|
||||
/* create the interrupt timer */
|
||||
m_cpu3_interrupt_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(galaga_state::cpu3_interrupt_callback),this));
|
||||
m_custom_mod = 0;
|
||||
state_save_register_global(machine(), m_custom_mod);
|
||||
save_item(NAME(m_custom_mod));
|
||||
save_item(NAME(m_main_irq_mask));
|
||||
save_item(NAME(m_sub_irq_mask));
|
||||
save_item(NAME(m_sub2_nmi_mask));
|
||||
|
@ -2831,7 +2831,7 @@ DRIVER_INIT_MEMBER(galaxian_state,gmgalax)
|
||||
|
||||
/* callback when the game select is toggled */
|
||||
gmgalax_game_changed(*machine().ioport().first_port()->first_field(), NULL, 0, 0);
|
||||
state_save_register_global(machine(), m_gmgalax_selected_game);
|
||||
save_item(NAME(m_gmgalax_selected_game));
|
||||
}
|
||||
|
||||
|
||||
@ -3309,8 +3309,8 @@ DRIVER_INIT_MEMBER(galaxian_state,kingball)
|
||||
space.install_write_handler(0xb002, 0xb002, 0, 0x7f8, write8_delegate(FUNC(galaxian_state::kingball_sound2_w),this));
|
||||
space.install_write_handler(0xb003, 0xb003, 0, 0x7f8, write8_delegate(FUNC(galaxian_state::kingball_speech_dip_w),this));
|
||||
|
||||
state_save_register_global(machine(), m_kingball_speech_dip);
|
||||
state_save_register_global(machine(), m_kingball_sound);
|
||||
save_item(NAME(m_kingball_speech_dip));
|
||||
save_item(NAME(m_kingball_sound));
|
||||
}
|
||||
|
||||
|
||||
@ -3574,7 +3574,7 @@ DRIVER_INIT_MEMBER(galaxian_state,moonwar)
|
||||
/* video extensions */
|
||||
common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::scramble_draw_background, NULL, NULL);
|
||||
|
||||
state_save_register_global(machine(), m_moonwar_port_select);
|
||||
save_item(NAME(m_moonwar_port_select));
|
||||
}
|
||||
|
||||
|
||||
|
@ -224,8 +224,8 @@ VBlank duration: 1/VSYNC * (16/256) = 1017.6 us
|
||||
void gottlieb_state::machine_start()
|
||||
{
|
||||
/* register for save states */
|
||||
state_save_register_global(machine(), m_joystick_select);
|
||||
state_save_register_global_array(machine(), m_track);
|
||||
save_item(NAME(m_joystick_select));
|
||||
save_item(NAME(m_track));
|
||||
|
||||
/* see if we have a laserdisc */
|
||||
if (m_laserdisc != NULL)
|
||||
@ -244,18 +244,18 @@ void gottlieb_state::machine_start()
|
||||
m_laserdisc_status = 0x38;
|
||||
|
||||
/* more save state registration */
|
||||
state_save_register_global(machine(), m_laserdisc_select);
|
||||
state_save_register_global(machine(), m_laserdisc_status);
|
||||
state_save_register_global(machine(), m_laserdisc_philips_code);
|
||||
save_item(NAME(m_laserdisc_select));
|
||||
save_item(NAME(m_laserdisc_status));
|
||||
save_item(NAME(m_laserdisc_philips_code));
|
||||
|
||||
state_save_register_global_pointer(machine(), m_laserdisc_audio_buffer, AUDIORAM_SIZE);
|
||||
state_save_register_global(machine(), m_laserdisc_audio_address);
|
||||
state_save_register_global_array(machine(), m_laserdisc_last_samples);
|
||||
state_save_register_global(machine(), m_laserdisc_last_time);
|
||||
state_save_register_global(machine(), m_laserdisc_last_clock);
|
||||
state_save_register_global(machine(), m_laserdisc_zero_seen);
|
||||
state_save_register_global(machine(), m_laserdisc_audio_bits);
|
||||
state_save_register_global(machine(), m_laserdisc_audio_bit_count);
|
||||
save_pointer(NAME(m_laserdisc_audio_buffer), AUDIORAM_SIZE);
|
||||
save_item(NAME(m_laserdisc_audio_address));
|
||||
save_item(NAME(m_laserdisc_last_samples));
|
||||
save_item(NAME(m_laserdisc_last_time));
|
||||
save_item(NAME(m_laserdisc_last_clock));
|
||||
save_item(NAME(m_laserdisc_zero_seen));
|
||||
save_item(NAME(m_laserdisc_audio_bits));
|
||||
save_item(NAME(m_laserdisc_audio_bit_count));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -138,8 +138,8 @@ void gridlee_state::machine_start()
|
||||
/* create the polynomial tables */
|
||||
poly17_init();
|
||||
|
||||
state_save_register_global_array(machine(), m_last_analog_input);
|
||||
state_save_register_global_array(machine(), m_last_analog_output);
|
||||
save_item(NAME(m_last_analog_input));
|
||||
save_item(NAME(m_last_analog_output));
|
||||
|
||||
m_irq_off = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(gridlee_state::irq_off_tick),this));
|
||||
m_irq_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(gridlee_state::irq_timer_tick),this));
|
||||
|
@ -910,10 +910,10 @@ void hornet_state::machine_start()
|
||||
/* configure fast RAM regions for DRC */
|
||||
ppcdrc_add_fastram(m_maincpu, 0x00000000, 0x003fffff, FALSE, m_workram);
|
||||
|
||||
state_save_register_global(machine(), m_led_reg0);
|
||||
state_save_register_global(machine(), m_led_reg1);
|
||||
state_save_register_global_pointer(machine(), m_jvs_sdata, 1024);
|
||||
state_save_register_global(machine(), m_jvs_sdata_ptr);
|
||||
save_item(NAME(m_led_reg0));
|
||||
save_item(NAME(m_led_reg1));
|
||||
save_pointer(NAME(m_jvs_sdata), 1024);
|
||||
save_item(NAME(m_jvs_sdata_ptr));
|
||||
|
||||
m_sound_irq_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(hornet_state::irq_off),this));
|
||||
}
|
||||
|
@ -144,15 +144,15 @@ void jpmimpct_state::update_irqs()
|
||||
|
||||
MACHINE_START_MEMBER(jpmimpct_state,jpmimpct)
|
||||
{
|
||||
state_save_register_global(machine(), m_tms_irq);
|
||||
state_save_register_global(machine(), m_duart_1_irq);
|
||||
state_save_register_global(machine(), m_touch_cnt);
|
||||
state_save_register_global_array(machine(), m_touch_data);
|
||||
save_item(NAME(m_tms_irq));
|
||||
save_item(NAME(m_duart_1_irq));
|
||||
save_item(NAME(m_touch_cnt));
|
||||
save_item(NAME(m_touch_data));
|
||||
|
||||
/* TODO! */
|
||||
state_save_register_global(machine(), m_duart_1.ISR);
|
||||
state_save_register_global(machine(), m_duart_1.IMR);
|
||||
state_save_register_global(machine(), m_duart_1.CT);
|
||||
save_item(NAME(m_duart_1.ISR));
|
||||
save_item(NAME(m_duart_1.IMR));
|
||||
save_item(NAME(m_duart_1.CT));
|
||||
}
|
||||
|
||||
|
||||
@ -1004,14 +1004,14 @@ static I8255_INTERFACE (ppi8255_intf)
|
||||
|
||||
MACHINE_START_MEMBER(jpmimpct_state,impctawp)
|
||||
{
|
||||
state_save_register_global(machine(), m_duart_1_irq);
|
||||
state_save_register_global(machine(), m_touch_cnt);
|
||||
state_save_register_global_array(machine(), m_touch_data);
|
||||
save_item(NAME(m_duart_1_irq));
|
||||
save_item(NAME(m_touch_cnt));
|
||||
save_item(NAME(m_touch_data));
|
||||
|
||||
/* TODO! */
|
||||
state_save_register_global(machine(), m_duart_1.ISR);
|
||||
state_save_register_global(machine(), m_duart_1.IMR);
|
||||
state_save_register_global(machine(), m_duart_1.CT);
|
||||
save_item(NAME(m_duart_1.ISR));
|
||||
save_item(NAME(m_duart_1.IMR));
|
||||
save_item(NAME(m_duart_1.CT));
|
||||
|
||||
stepper_config(machine(), 0, &starpoint_interface_48step);
|
||||
stepper_config(machine(), 1, &starpoint_interface_48step);
|
||||
|
@ -3618,9 +3618,9 @@ ROM_END
|
||||
|
||||
MACHINE_START_MEMBER(konamigx_state,konamigx)
|
||||
{
|
||||
state_save_register_global(machine(), konamigx_wrport1_1);
|
||||
state_save_register_global_array(machine(), sndto020);
|
||||
state_save_register_global_array(machine(), sndto000);
|
||||
save_item(NAME(konamigx_wrport1_1));
|
||||
save_item(NAME(sndto020));
|
||||
save_item(NAME(sndto000));
|
||||
}
|
||||
|
||||
MACHINE_RESET_MEMBER(konamigx_state,konamigx)
|
||||
|
@ -82,9 +82,9 @@ TODO:
|
||||
|
||||
MACHINE_START_MEMBER(lvcards_state,lvpoker)
|
||||
{
|
||||
state_save_register_global(machine(), m_payout);
|
||||
state_save_register_global(machine(), m_pulse);
|
||||
state_save_register_global(machine(), m_result);
|
||||
save_item(NAME(m_payout));
|
||||
save_item(NAME(m_pulse));
|
||||
save_item(NAME(m_result));
|
||||
}
|
||||
|
||||
MACHINE_RESET_MEMBER(lvcards_state,lvpoker)
|
||||
|
@ -79,10 +79,10 @@ void magmax_state::machine_start()
|
||||
m_interrupt_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(magmax_state::scanline_callback),this));
|
||||
|
||||
/* Set up save state */
|
||||
state_save_register_global(machine(), m_sound_latch);
|
||||
state_save_register_global(machine(), m_LS74_clr);
|
||||
state_save_register_global(machine(), m_LS74_q);
|
||||
state_save_register_global(machine(), m_gain_control);
|
||||
save_item(NAME(m_sound_latch));
|
||||
save_item(NAME(m_LS74_clr));
|
||||
save_item(NAME(m_LS74_q));
|
||||
save_item(NAME(m_gain_control));
|
||||
}
|
||||
|
||||
void magmax_state::machine_reset()
|
||||
|
@ -1012,7 +1012,7 @@ void maygayv1_state::machine_start()
|
||||
i82716.dram = auto_alloc_array(machine(), UINT16, 0x80000/2); // ???
|
||||
i82716.line_buf = auto_alloc_array(machine(), UINT8, 512);
|
||||
|
||||
state_save_register_global_pointer(machine(), i82716.dram, 0x40000);
|
||||
save_pointer(NAME(i82716.dram), 0x40000);
|
||||
|
||||
// duart_68681_init(DUART_CLOCK, duart_irq_handler, duart_tx);
|
||||
|
||||
|
@ -2793,8 +2793,8 @@ void mcr_state::mcr_init(int cpuboard, int vidboard, int ssioboard)
|
||||
mcr12_sprite_xoffs = 0;
|
||||
mcr12_sprite_xoffs_flip = 0;
|
||||
|
||||
state_save_register_global(machine(), input_mux);
|
||||
state_save_register_global(machine(), last_op4);
|
||||
save_item(NAME(input_mux));
|
||||
save_item(NAME(last_op4));
|
||||
|
||||
midway_ssio_device *ssio = machine().device<midway_ssio_device>("ssio");
|
||||
if (ssio != NULL)
|
||||
@ -2846,8 +2846,8 @@ DRIVER_INIT_MEMBER(mcr_state,dpoker)
|
||||
dpoker_coin_status = 0;
|
||||
dpoker_output = 0;
|
||||
|
||||
state_save_register_global(machine(), dpoker_coin_status);
|
||||
state_save_register_global(machine(), dpoker_output);
|
||||
save_item(NAME(dpoker_coin_status));
|
||||
save_item(NAME(dpoker_output));
|
||||
}
|
||||
|
||||
|
||||
@ -2917,12 +2917,12 @@ DRIVER_INIT_MEMBER(mcr_state,nflfoot)
|
||||
nflfoot_serial_out_active = FALSE;
|
||||
nflfoot_serial_in_active = FALSE;
|
||||
|
||||
state_save_register_global(machine(), nflfoot_serial_out_active);
|
||||
state_save_register_global(machine(), nflfoot_serial_out_bits);
|
||||
state_save_register_global(machine(), nflfoot_serial_out_numbits);
|
||||
state_save_register_global(machine(), nflfoot_serial_in_active);
|
||||
state_save_register_global(machine(), nflfoot_serial_in_bits);
|
||||
state_save_register_global(machine(), nflfoot_serial_in_numbits);
|
||||
save_item(NAME(nflfoot_serial_out_active));
|
||||
save_item(NAME(nflfoot_serial_out_bits));
|
||||
save_item(NAME(nflfoot_serial_out_numbits));
|
||||
save_item(NAME(nflfoot_serial_in_active));
|
||||
save_item(NAME(nflfoot_serial_in_bits));
|
||||
save_item(NAME(nflfoot_serial_in_numbits));
|
||||
}
|
||||
|
||||
|
||||
|
@ -1525,9 +1525,9 @@ ROM_END
|
||||
|
||||
void mcr3_state::mcr_common_init()
|
||||
{
|
||||
state_save_register_global(machine(), m_input_mux);
|
||||
state_save_register_global(machine(), m_latched_input);
|
||||
state_save_register_global(machine(), m_last_op4);
|
||||
save_item(NAME(m_input_mux));
|
||||
save_item(NAME(m_latched_input));
|
||||
save_item(NAME(m_last_op4));
|
||||
}
|
||||
|
||||
|
||||
@ -1555,11 +1555,11 @@ DRIVER_INIT_MEMBER(mcr3_state,maxrpm)
|
||||
m_maincpu->space(AS_IO).install_write_handler(0x05, 0x05, write8_delegate(FUNC(mcr3_state::maxrpm_op5_w),this));
|
||||
m_maincpu->space(AS_IO).install_write_handler(0x06, 0x06, write8_delegate(FUNC(mcr3_state::maxrpm_op6_w),this));
|
||||
|
||||
state_save_register_global(machine(), m_maxrpm_adc_control);
|
||||
state_save_register_global(machine(), m_maxrpm_adc_select);
|
||||
state_save_register_global(machine(), m_maxrpm_last_shift);
|
||||
state_save_register_global(machine(), m_maxrpm_p1_shift);
|
||||
state_save_register_global(machine(), m_maxrpm_p2_shift);
|
||||
save_item(NAME(m_maxrpm_adc_control));
|
||||
save_item(NAME(m_maxrpm_adc_select));
|
||||
save_item(NAME(m_maxrpm_last_shift));
|
||||
save_item(NAME(m_maxrpm_p1_shift));
|
||||
save_item(NAME(m_maxrpm_p2_shift));
|
||||
}
|
||||
|
||||
|
||||
|
@ -1539,7 +1539,7 @@ void mcr68_state::mcr68_common_init(int clip, int xoffset)
|
||||
m_sprite_clip = clip;
|
||||
m_sprite_xoffset = xoffset;
|
||||
|
||||
state_save_register_global(machine(), m_control_word);
|
||||
save_item(NAME(m_control_word));
|
||||
}
|
||||
|
||||
|
||||
@ -1633,7 +1633,7 @@ DRIVER_INIT_MEMBER(mcr68_state,pigskin)
|
||||
/* Pigskin doesn't care too much about this value; currently taken from Tri-Sports */
|
||||
m_timing_factor = attotime::from_hz(m_maincpu->unscaled_clock() / 10) * 115;
|
||||
|
||||
state_save_register_global_array(machine(), m_protection_data);
|
||||
save_item(NAME(m_protection_data));
|
||||
}
|
||||
|
||||
|
||||
|
@ -134,11 +134,11 @@ void merit_state::machine_start()
|
||||
m_question_address = 0;
|
||||
m_ram_palette = auto_alloc_array(machine(), UINT8, RAM_PALETTE_SIZE);
|
||||
|
||||
state_save_register_global_pointer(machine(), m_ram_palette, RAM_PALETTE_SIZE);
|
||||
state_save_register_global(machine(), m_lscnblk);
|
||||
state_save_register_global(machine(), m_extra_video_bank_bit);
|
||||
state_save_register_global(machine(), m_question_address);
|
||||
state_save_register_global(machine(), m_decryption_key);
|
||||
save_pointer(NAME(m_ram_palette), RAM_PALETTE_SIZE);
|
||||
save_item(NAME(m_lscnblk));
|
||||
save_item(NAME(m_extra_video_bank_bit));
|
||||
save_item(NAME(m_question_address));
|
||||
save_item(NAME(m_decryption_key));
|
||||
}
|
||||
|
||||
|
||||
|
@ -468,9 +468,9 @@ void meritm_state::video_start()
|
||||
m_layer0_enabled = m_layer1_enabled = 1;
|
||||
|
||||
m_vint = 0x18;
|
||||
state_save_register_global(machine(), m_vint);
|
||||
state_save_register_global(machine(), m_interrupt_vdp0_state);
|
||||
state_save_register_global(machine(), m_interrupt_vdp1_state);
|
||||
save_item(NAME(m_vint));
|
||||
save_item(NAME(m_interrupt_vdp0_state));
|
||||
save_item(NAME(m_interrupt_vdp1_state));
|
||||
}
|
||||
|
||||
UINT32 meritm_state::screen_update_meritm(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
@ -1116,14 +1116,14 @@ void meritm_state::machine_start()
|
||||
m_bank = 0xff;
|
||||
meritm_crt250_switch_banks();
|
||||
MACHINE_START_CALL_MEMBER(merit_common);
|
||||
state_save_register_global(machine(), m_bank);
|
||||
save_item(NAME(m_bank));
|
||||
|
||||
};
|
||||
|
||||
MACHINE_START_MEMBER(meritm_state,meritm_crt250_questions)
|
||||
{
|
||||
meritm_state::machine_start();
|
||||
state_save_register_global(machine(), m_questions_loword_address);
|
||||
save_item(NAME(m_questions_loword_address));
|
||||
};
|
||||
|
||||
MACHINE_START_MEMBER(meritm_state,meritm_crt250_crt252_crt258)
|
||||
@ -1145,9 +1145,9 @@ MACHINE_START_MEMBER(meritm_state,meritm_crt260)
|
||||
meritm_switch_banks();
|
||||
MACHINE_START_CALL_MEMBER(merit_common);
|
||||
pc16552d_init(machine(), 0, UART_CLK, NULL, pc16650d_tx_callback);
|
||||
state_save_register_global(machine(), m_bank);
|
||||
state_save_register_global(machine(), m_psd_a15);
|
||||
state_save_register_global_pointer(machine(), m_ram, 0x8000);
|
||||
save_item(NAME(m_bank));
|
||||
save_item(NAME(m_psd_a15));
|
||||
save_pointer(NAME(m_ram), 0x8000);
|
||||
};
|
||||
|
||||
// from MSX2 driver, may be not accurate for merit games
|
||||
|
@ -46,13 +46,13 @@ Known to exist but not dumped:
|
||||
|
||||
void midvunit_state::machine_start()
|
||||
{
|
||||
state_save_register_global(machine(), m_cmos_protected);
|
||||
state_save_register_global(machine(), m_control_data);
|
||||
state_save_register_global(machine(), m_adc_data);
|
||||
state_save_register_global(machine(), m_adc_shift);
|
||||
state_save_register_global(machine(), m_last_port0);
|
||||
state_save_register_global(machine(), m_shifter_state);
|
||||
state_save_register_global(machine(), m_timer_rate);
|
||||
save_item(NAME(m_cmos_protected));
|
||||
save_item(NAME(m_control_data));
|
||||
save_item(NAME(m_adc_data));
|
||||
save_item(NAME(m_adc_shift));
|
||||
save_item(NAME(m_last_port0));
|
||||
save_item(NAME(m_shifter_state));
|
||||
save_item(NAME(m_timer_rate));
|
||||
}
|
||||
|
||||
|
||||
|
@ -76,12 +76,12 @@ MACHINE_START_MEMBER(midzeus_state,midzeus)
|
||||
gun_timer[0] = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(midzeus_state::invasn_gun_callback),this));
|
||||
gun_timer[1] = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(midzeus_state::invasn_gun_callback),this));
|
||||
|
||||
state_save_register_global(machine(), gun_control);
|
||||
state_save_register_global(machine(), gun_irq_state);
|
||||
state_save_register_global_array(machine(), gun_x);
|
||||
state_save_register_global_array(machine(), gun_y);
|
||||
state_save_register_global(machine(), crusnexo_leds_select);
|
||||
state_save_register_global(machine(), keypad_select);
|
||||
save_item(NAME(gun_control));
|
||||
save_item(NAME(gun_irq_state));
|
||||
save_item(NAME(gun_x));
|
||||
save_item(NAME(gun_y));
|
||||
save_item(NAME(crusnexo_leds_select));
|
||||
save_item(NAME(keypad_select));
|
||||
}
|
||||
|
||||
|
||||
|
@ -1052,7 +1052,7 @@ MACHINE_START_MEMBER(mitchell_state,mitchell)
|
||||
save_item(NAME(m_dir));
|
||||
save_item(NAME(m_dial));
|
||||
save_item(NAME(m_irq_source));
|
||||
// state_save_register_global(machine(), init_eeprom_count);
|
||||
// save_item(NAME(init_eeprom_count));
|
||||
}
|
||||
|
||||
MACHINE_RESET_MEMBER(mitchell_state,mitchell)
|
||||
|
@ -2193,7 +2193,7 @@ ROM_END
|
||||
|
||||
void ms32_state::configure_banks()
|
||||
{
|
||||
state_save_register_global(machine(), m_to_main);
|
||||
save_item(NAME(m_to_main));
|
||||
membank("bank4")->configure_entries(0, 16, memregion("audiocpu")->base() + 0x14000, 0x4000);
|
||||
membank("bank5")->configure_entries(0, 16, memregion("audiocpu")->base() + 0x14000, 0x4000);
|
||||
}
|
||||
|
@ -841,8 +841,8 @@ MACHINE_START_MEMBER(mystwarr_state,mystwarr)
|
||||
|
||||
m_mw_irq_control = 0;
|
||||
|
||||
state_save_register_global(machine(), m_mw_irq_control);
|
||||
state_save_register_global(machine(), m_cur_sound_region);
|
||||
save_item(NAME(m_mw_irq_control));
|
||||
save_item(NAME(m_cur_sound_region));
|
||||
machine().save().register_postload(save_prepost_delegate(FUNC(mystwarr_state::reset_sound_region), this));
|
||||
}
|
||||
|
||||
|
@ -1020,7 +1020,7 @@ void neogeo_state::machine_start()
|
||||
save_item(NAME(m_audio_cpu_rom_source));
|
||||
save_item(NAME(m_audio_cpu_rom_source_last));
|
||||
save_item(NAME(m_save_ram_unlocked));
|
||||
state_save_register_global_pointer(machine(), memcard_data, 0x800);
|
||||
save_pointer(NAME(memcard_data), 0x800);
|
||||
save_item(NAME(m_output_data));
|
||||
save_item(NAME(m_output_latch));
|
||||
save_item(NAME(m_el_value));
|
||||
|
@ -160,7 +160,7 @@ WRITE8_MEMBER(nova2001_state::ninjakun_cpu2_io_A002_w)
|
||||
MACHINE_START_MEMBER(nova2001_state,ninjakun)
|
||||
{
|
||||
/* Save State Stuff */
|
||||
state_save_register_global(machine(), m_ninjakun_io_a002_ctrl);
|
||||
save_item(NAME(m_ninjakun_io_a002_ctrl));
|
||||
}
|
||||
|
||||
|
||||
|
@ -255,9 +255,9 @@ void pengadvb_state::pengadvb_postload()
|
||||
|
||||
void pengadvb_state::machine_start()
|
||||
{
|
||||
state_save_register_global_pointer(machine(), m_main_mem, 0x4000);
|
||||
state_save_register_global(machine(), m_mem_map);
|
||||
state_save_register_global_array(machine(), m_mem_banks);
|
||||
save_pointer(NAME(m_main_mem), 0x4000);
|
||||
save_item(NAME(m_mem_map));
|
||||
save_item(NAME(m_mem_banks));
|
||||
machine().save().register_postload(save_prepost_delegate(FUNC(pengadvb_state::pengadvb_postload), this));
|
||||
}
|
||||
|
||||
|
@ -289,8 +289,8 @@ static const ym2203_interface ym2203_config =
|
||||
|
||||
void pkscram_state::machine_start()
|
||||
{
|
||||
state_save_register_global(machine(), m_out);
|
||||
state_save_register_global(machine(), m_interrupt_line_active);
|
||||
save_item(NAME(m_out));
|
||||
save_item(NAME(m_interrupt_line_active));
|
||||
}
|
||||
|
||||
void pkscram_state::machine_reset()
|
||||
|
@ -628,9 +628,9 @@ DRIVER_INIT_MEMBER(popeye_state,skyskipr)
|
||||
auto_free(machine(), buffer);
|
||||
}
|
||||
|
||||
state_save_register_global(machine(), m_prot0);
|
||||
state_save_register_global(machine(), m_prot1);
|
||||
state_save_register_global(machine(), m_prot_shift);
|
||||
save_item(NAME(m_prot0));
|
||||
save_item(NAME(m_prot1));
|
||||
save_item(NAME(m_prot_shift));
|
||||
}
|
||||
|
||||
DRIVER_INIT_MEMBER(popeye_state,popeye)
|
||||
@ -649,9 +649,9 @@ DRIVER_INIT_MEMBER(popeye_state,popeye)
|
||||
auto_free(machine(), buffer);
|
||||
}
|
||||
|
||||
state_save_register_global(machine(), m_prot0);
|
||||
state_save_register_global(machine(), m_prot1);
|
||||
state_save_register_global(machine(), m_prot_shift);
|
||||
save_item(NAME(m_prot0));
|
||||
save_item(NAME(m_prot1));
|
||||
save_item(NAME(m_prot_shift));
|
||||
}
|
||||
|
||||
|
||||
|
@ -619,9 +619,9 @@ static const k053252_interface qdrmfgp2_k053252_intf =
|
||||
|
||||
MACHINE_START_MEMBER(qdrmfgp_state,qdrmfgp)
|
||||
{
|
||||
state_save_register_global(machine(), m_control);
|
||||
state_save_register_global(machine(), m_pal);
|
||||
state_save_register_global(machine(), m_gp2_irq_control);
|
||||
save_item(NAME(m_control));
|
||||
save_item(NAME(m_pal));
|
||||
save_item(NAME(m_gp2_irq_control));
|
||||
}
|
||||
|
||||
MACHINE_START_MEMBER(qdrmfgp_state,qdrmfgp2)
|
||||
|
@ -304,9 +304,9 @@ static const pia6821_interface pia_audio_intf =
|
||||
void r2dtank_state::machine_start()
|
||||
{
|
||||
/* setup for save states */
|
||||
state_save_register_global(machine(), m_flipscreen);
|
||||
state_save_register_global(machine(), m_ttl74123_output);
|
||||
state_save_register_global(machine(), m_AY8910_selected);
|
||||
save_item(NAME(m_flipscreen));
|
||||
save_item(NAME(m_ttl74123_output));
|
||||
save_item(NAME(m_AY8910_selected));
|
||||
}
|
||||
|
||||
|
||||
|
@ -289,12 +289,12 @@ void renegade_state::setbank()
|
||||
|
||||
void renegade_state::machine_start()
|
||||
{
|
||||
state_save_register_global_array(machine(), m_mcu_buffer);
|
||||
state_save_register_global(machine(), m_mcu_input_size);
|
||||
state_save_register_global(machine(), m_mcu_output_byte);
|
||||
state_save_register_global(machine(), m_mcu_key);
|
||||
save_item(NAME(m_mcu_buffer));
|
||||
save_item(NAME(m_mcu_input_size));
|
||||
save_item(NAME(m_mcu_output_byte));
|
||||
save_item(NAME(m_mcu_key));
|
||||
|
||||
state_save_register_global(machine(), m_bank);
|
||||
save_item(NAME(m_bank));
|
||||
machine().save().register_postload(save_prepost_delegate(FUNC(renegade_state::setbank), this));
|
||||
}
|
||||
|
||||
|
@ -556,34 +556,34 @@ void seattle_state::machine_start()
|
||||
mips3drc_add_fastram(m_maincpu, 0x1fc00000, 0x1fc7ffff, TRUE, m_rombase);
|
||||
|
||||
/* register for save states */
|
||||
state_save_register_global_array(machine(), m_galileo.reg);
|
||||
state_save_register_global(machine(), m_galileo.dma_active);
|
||||
state_save_register_global_array(machine(), m_galileo.dma_stalled_on_voodoo);
|
||||
state_save_register_global_array(machine(), m_galileo.pci_bridge_regs);
|
||||
state_save_register_global_array(machine(), m_galileo.pci_3dfx_regs);
|
||||
state_save_register_global_array(machine(), m_galileo.pci_ide_regs);
|
||||
save_item(NAME(m_galileo.reg));
|
||||
save_item(NAME(m_galileo.dma_active));
|
||||
save_item(NAME(m_galileo.dma_stalled_on_voodoo));
|
||||
save_item(NAME(m_galileo.pci_bridge_regs));
|
||||
save_item(NAME(m_galileo.pci_3dfx_regs));
|
||||
save_item(NAME(m_galileo.pci_ide_regs));
|
||||
for (index = 0; index < ARRAY_LENGTH(m_galileo.timer); index++)
|
||||
{
|
||||
state_save_register_item(machine(), "galileo", NULL, index, m_galileo.timer[index].count);
|
||||
state_save_register_item(machine(), "galileo", NULL, index, m_galileo.timer[index].active);
|
||||
}
|
||||
state_save_register_global(machine(), m_widget.ethernet_addr);
|
||||
state_save_register_global(machine(), m_widget.irq_num);
|
||||
state_save_register_global(machine(), m_widget.irq_mask);
|
||||
state_save_register_global(machine(), m_voodoo_stalled);
|
||||
state_save_register_global(machine(), m_cpu_stalled_on_voodoo);
|
||||
state_save_register_global(machine(), m_cpu_stalled_offset);
|
||||
state_save_register_global(machine(), m_cpu_stalled_data);
|
||||
state_save_register_global(machine(), m_cpu_stalled_mem_mask);
|
||||
state_save_register_global(machine(), m_board_config);
|
||||
state_save_register_global(machine(), m_ethernet_irq_num);
|
||||
state_save_register_global(machine(), m_ethernet_irq_state);
|
||||
state_save_register_global(machine(), m_vblank_irq_num);
|
||||
state_save_register_global(machine(), m_vblank_latch);
|
||||
state_save_register_global(machine(), m_vblank_state);
|
||||
state_save_register_global(machine(), m_pending_analog_read);
|
||||
state_save_register_global(machine(), m_status_leds);
|
||||
state_save_register_global(machine(), m_cmos_write_enabled);
|
||||
save_item(NAME(m_widget.ethernet_addr));
|
||||
save_item(NAME(m_widget.irq_num));
|
||||
save_item(NAME(m_widget.irq_mask));
|
||||
save_item(NAME(m_voodoo_stalled));
|
||||
save_item(NAME(m_cpu_stalled_on_voodoo));
|
||||
save_item(NAME(m_cpu_stalled_offset));
|
||||
save_item(NAME(m_cpu_stalled_data));
|
||||
save_item(NAME(m_cpu_stalled_mem_mask));
|
||||
save_item(NAME(m_board_config));
|
||||
save_item(NAME(m_ethernet_irq_num));
|
||||
save_item(NAME(m_ethernet_irq_state));
|
||||
save_item(NAME(m_vblank_irq_num));
|
||||
save_item(NAME(m_vblank_latch));
|
||||
save_item(NAME(m_vblank_state));
|
||||
save_item(NAME(m_pending_analog_read));
|
||||
save_item(NAME(m_status_leds));
|
||||
save_item(NAME(m_cmos_write_enabled));
|
||||
}
|
||||
|
||||
|
||||
|
@ -99,9 +99,9 @@
|
||||
|
||||
MACHINE_START_MEMBER(segac2_state,segac2)
|
||||
{
|
||||
state_save_register_global_array(machine(), m_misc_io_data);
|
||||
state_save_register_global(machine(), m_prot_write_buf);
|
||||
state_save_register_global(machine(), m_prot_read_buf);
|
||||
save_item(NAME(m_misc_io_data));
|
||||
save_item(NAME(m_prot_write_buf));
|
||||
save_item(NAME(m_prot_read_buf));
|
||||
}
|
||||
|
||||
|
||||
|
@ -169,11 +169,11 @@ INPUT_CHANGED_MEMBER(segag80v_state::service_switch)
|
||||
void segag80v_state::machine_start()
|
||||
{
|
||||
/* register for save states */
|
||||
state_save_register_global_array(machine(), m_mult_data);
|
||||
state_save_register_global(machine(), m_mult_result);
|
||||
state_save_register_global(machine(), m_spinner_select);
|
||||
state_save_register_global(machine(), m_spinner_sign);
|
||||
state_save_register_global(machine(), m_spinner_count);
|
||||
save_item(NAME(m_mult_data));
|
||||
save_item(NAME(m_mult_result));
|
||||
save_item(NAME(m_spinner_select));
|
||||
save_item(NAME(m_spinner_sign));
|
||||
save_item(NAME(m_spinner_count));
|
||||
}
|
||||
|
||||
|
||||
|
@ -5850,29 +5850,29 @@ DRIVER_INIT_MEMBER(sfbonus_state,sfbonus_common)
|
||||
{
|
||||
m_tilemap_ram = auto_alloc_array(machine(), UINT8, 0x4000);
|
||||
memset(m_tilemap_ram, 0xff, 0x4000);
|
||||
state_save_register_global_pointer(machine(), m_tilemap_ram , 0x4000);
|
||||
save_pointer(NAME(m_tilemap_ram), 0x4000);
|
||||
|
||||
m_reel_ram = auto_alloc_array(machine(), UINT8, 0x0800);
|
||||
memset(m_reel_ram, 0xff ,0x0800);
|
||||
state_save_register_global_pointer(machine(), m_reel_ram , 0x0800);
|
||||
save_pointer(NAME(m_reel_ram), 0x0800);
|
||||
|
||||
m_reel2_ram = auto_alloc_array(machine(), UINT8, 0x0800);
|
||||
memset(m_reel2_ram, 0xff, 0x0800);
|
||||
state_save_register_global_pointer(machine(), m_reel2_ram , 0x0800);
|
||||
save_pointer(NAME(m_reel2_ram), 0x0800);
|
||||
|
||||
m_reel3_ram = auto_alloc_array(machine(), UINT8, 0x0800);
|
||||
memset(m_reel3_ram, 0xff, 0x0800);
|
||||
state_save_register_global_pointer(machine(), m_reel3_ram , 0x0800);
|
||||
save_pointer(NAME(m_reel3_ram), 0x0800);
|
||||
|
||||
m_reel4_ram = auto_alloc_array(machine(), UINT8, 0x0800);
|
||||
memset(m_reel4_ram, 0xff, 0x0800);
|
||||
state_save_register_global_pointer(machine(), m_reel4_ram , 0x0800);
|
||||
save_pointer(NAME(m_reel4_ram), 0x0800);
|
||||
|
||||
m_videoram = auto_alloc_array(machine(), UINT8, 0x10000);
|
||||
|
||||
memset(m_videoram, 0xff, 0x10000);
|
||||
|
||||
state_save_register_global_pointer(machine(), m_videoram, 0x10000);
|
||||
save_pointer(NAME(m_videoram), 0x10000);
|
||||
|
||||
// dummy.rom helper
|
||||
{
|
||||
|
@ -93,7 +93,7 @@ void skykid_state::machine_start()
|
||||
/* configure the banks */
|
||||
membank("bank1")->configure_entries(0, 2, memregion("maincpu")->base() + 0x10000, 0x2000);
|
||||
|
||||
state_save_register_global(machine(), m_inputport_selected);
|
||||
save_item(NAME(m_inputport_selected));
|
||||
}
|
||||
|
||||
|
||||
|
@ -547,7 +547,7 @@ GFXDECODE_END
|
||||
void slotcarn_state::machine_start()
|
||||
{
|
||||
m_ram_palette = auto_alloc_array(machine(), UINT8, RAM_PALETTE_SIZE);
|
||||
state_save_register_global_pointer(machine(), m_ram_palette, RAM_PALETTE_SIZE);
|
||||
save_pointer(NAME(m_ram_palette), RAM_PALETTE_SIZE);
|
||||
}
|
||||
|
||||
|
||||
|
@ -479,8 +479,8 @@ void smsmfg_state::video_start()
|
||||
{
|
||||
machine().primary_screen->register_screen_bitmap(m_bitmap);
|
||||
|
||||
state_save_register_global_array(machine(), m_vid_regs);
|
||||
state_save_register_global_bitmap(machine(), &m_bitmap);
|
||||
save_item(NAME(m_vid_regs));
|
||||
save_item(NAME(m_bitmap));
|
||||
}
|
||||
|
||||
UINT32 smsmfg_state::screen_update_sms(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
@ -544,14 +544,14 @@ void smsmfg_state::machine_start()
|
||||
{
|
||||
membank("bank1")->configure_entries(0, 16, memregion("questions")->base(), 0x4000);
|
||||
|
||||
state_save_register_global(machine(), m_communication_port_status);
|
||||
state_save_register_global_array(machine(), m_communication_port);
|
||||
save_item(NAME(m_communication_port_status));
|
||||
save_item(NAME(m_communication_port));
|
||||
}
|
||||
|
||||
MACHINE_START_MEMBER(smsmfg_state,sureshot)
|
||||
{
|
||||
state_save_register_global(machine(), m_communication_port_status);
|
||||
state_save_register_global_array(machine(), m_communication_port);
|
||||
save_item(NAME(m_communication_port_status));
|
||||
save_item(NAME(m_communication_port));
|
||||
}
|
||||
|
||||
void smsmfg_state::machine_reset()
|
||||
|
@ -401,11 +401,11 @@ static const ttl74123_interface ic60_intf =
|
||||
void spiders_state::machine_start()
|
||||
{
|
||||
/* setup for save states */
|
||||
state_save_register_global(machine(), m_flipscreen);
|
||||
state_save_register_global(machine(), m_gfx_rom_address);
|
||||
state_save_register_global(machine(), m_gfx_rom_ctrl_mode);
|
||||
state_save_register_global(machine(), m_gfx_rom_ctrl_latch);
|
||||
state_save_register_global(machine(), m_gfx_rom_ctrl_data);
|
||||
save_item(NAME(m_flipscreen));
|
||||
save_item(NAME(m_gfx_rom_address));
|
||||
save_item(NAME(m_gfx_rom_ctrl_mode));
|
||||
save_item(NAME(m_gfx_rom_ctrl_latch));
|
||||
save_item(NAME(m_gfx_rom_ctrl_data));
|
||||
}
|
||||
|
||||
|
||||
|
@ -1092,20 +1092,20 @@ MACHINE_START_MEMBER(stv_state,stv)
|
||||
scsp_set_ram_base(machine().device("scsp"), m_sound_ram);
|
||||
|
||||
// save states
|
||||
state_save_register_global_pointer(machine(), m_scu_regs, 0x100/4);
|
||||
state_save_register_global_pointer(machine(), m_scsp_regs, 0x1000/2);
|
||||
state_save_register_global(machine(), m_NMI_reset);
|
||||
state_save_register_global(machine(), m_en_68k);
|
||||
// state_save_register_global(machine(), scanline);
|
||||
state_save_register_global(machine(), m_smpc.IOSEL1);
|
||||
state_save_register_global(machine(), m_smpc.IOSEL2);
|
||||
state_save_register_global(machine(), m_smpc.EXLE1);
|
||||
state_save_register_global(machine(), m_smpc.EXLE2);
|
||||
state_save_register_global(machine(), m_smpc.PDR1);
|
||||
state_save_register_global(machine(), m_smpc.PDR2);
|
||||
state_save_register_global(machine(), m_port_sel);
|
||||
state_save_register_global(machine(), m_mux_data);
|
||||
state_save_register_global(machine(), m_scsp_last_line);
|
||||
save_pointer(NAME(m_scu_regs), 0x100/4);
|
||||
save_pointer(NAME(m_scsp_regs), 0x1000/2);
|
||||
save_item(NAME(m_NMI_reset));
|
||||
save_item(NAME(m_en_68k));
|
||||
// save_item(NAME(scanline));
|
||||
save_item(NAME(m_smpc.IOSEL1));
|
||||
save_item(NAME(m_smpc.IOSEL2));
|
||||
save_item(NAME(m_smpc.EXLE1));
|
||||
save_item(NAME(m_smpc.EXLE2));
|
||||
save_item(NAME(m_smpc.PDR1));
|
||||
save_item(NAME(m_smpc.PDR2));
|
||||
save_item(NAME(m_port_sel));
|
||||
save_item(NAME(m_mux_data));
|
||||
save_item(NAME(m_scsp_last_line));
|
||||
|
||||
stv_register_protection_savestates(machine()); // machine/stvprot.c
|
||||
|
||||
|
@ -614,14 +614,14 @@ VIDEO_START_MEMBER(subsino2_state,subsino2)
|
||||
m_ss9601_reelrects[2].set(0, 0, 0x10*8, 256-16-1);
|
||||
|
||||
/*
|
||||
state_save_register_global_pointer(machine(), m_ss9601_reelrams[VRAM_HI], 0x2000);
|
||||
state_save_register_global_pointer(machine(), m_ss9601_reelrams[VRAM_LO], 0x2000);
|
||||
save_pointer(NAME(m_ss9601_reelrams[VRAM_HI]), 0x2000);
|
||||
save_pointer(NAME(m_ss9601_reelrams[VRAM_LO]), 0x2000);
|
||||
|
||||
state_save_register_global_pointer(machine(), m_layers[0].scrollrams[VRAM_HI], 0x200);
|
||||
state_save_register_global_pointer(machine(), m_layers[0].scrollrams[VRAM_LO], 0x200);
|
||||
save_pointer(NAME(m_layers[0].scrollrams[VRAM_HI]), 0x200);
|
||||
save_pointer(NAME(m_layers[0].scrollrams[VRAM_LO]), 0x200);
|
||||
|
||||
state_save_register_global_pointer(machine(), m_layers[1].scrollrams[VRAM_HI], 0x200);
|
||||
state_save_register_global_pointer(machine(), m_layers[1].scrollrams[VRAM_LO], 0x200);
|
||||
save_pointer(NAME(m_layers[1].scrollrams[VRAM_HI]), 0x200);
|
||||
save_pointer(NAME(m_layers[1].scrollrams[VRAM_LO]), 0x200);
|
||||
*/
|
||||
}
|
||||
|
||||
|
@ -367,10 +367,10 @@ void system1_state::machine_start()
|
||||
|
||||
m_mute_xor = 0x00;
|
||||
|
||||
state_save_register_global(machine(), m_dakkochn_mux_data);
|
||||
state_save_register_global(machine(), m_videomode_prev);
|
||||
state_save_register_global(machine(), m_mcu_control);
|
||||
state_save_register_global(machine(), m_nob_maincpu_latch);
|
||||
save_item(NAME(m_dakkochn_mux_data));
|
||||
save_item(NAME(m_videomode_prev));
|
||||
save_item(NAME(m_mcu_control));
|
||||
save_item(NAME(m_nob_maincpu_latch));
|
||||
}
|
||||
|
||||
|
||||
|
@ -422,7 +422,7 @@ static const UINT16 recalh_eeprom[64] = {
|
||||
|
||||
MACHINE_START_MEMBER(taito_f3_state,f3)
|
||||
{
|
||||
state_save_register_global_array(machine(), m_coin_word);
|
||||
save_item(NAME(m_coin_word));
|
||||
}
|
||||
|
||||
static MACHINE_CONFIG_START( f3, taito_f3_state )
|
||||
|
@ -338,9 +338,9 @@ static const namco_interface namco_config =
|
||||
|
||||
void tceptor_state::machine_start()
|
||||
{
|
||||
state_save_register_global(machine(), m_m6809_irq_enable);
|
||||
state_save_register_global(machine(), m_m68k_irq_enable);
|
||||
state_save_register_global(machine(), m_mcu_irq_enable);
|
||||
save_item(NAME(m_m6809_irq_enable));
|
||||
save_item(NAME(m_m68k_irq_enable));
|
||||
save_item(NAME(m_mcu_irq_enable));
|
||||
}
|
||||
|
||||
|
||||
|
@ -189,8 +189,8 @@ WRITE16_MEMBER(terracre_state::amazon_protection_w)
|
||||
MACHINE_START_MEMBER(terracre_state,amazon)
|
||||
{
|
||||
/* set up for save */
|
||||
state_save_register_global(machine(), m_mAmazonProtCmd);
|
||||
state_save_register_global_array(machine(), m_mAmazonProtReg);
|
||||
save_item(NAME(m_mAmazonProtCmd));
|
||||
save_item(NAME(m_mAmazonProtReg));
|
||||
}
|
||||
|
||||
static ADDRESS_MAP_START( terracre_map, AS_PROGRAM, 16, terracre_state )
|
||||
|
@ -1273,11 +1273,11 @@ void tetrisp2_state::init_rockn_timer()
|
||||
machine().scheduler().timer_pulse(attotime::from_msec(32), timer_expired_delegate(FUNC(tetrisp2_state::rockn_timer_level1_callback),this));
|
||||
m_rockn_timer_l4 = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(tetrisp2_state::rockn_timer_level4_callback),this));
|
||||
|
||||
state_save_register_global_array(machine(), m_systemregs);
|
||||
state_save_register_global_array(machine(), m_rocknms_sub_systemregs);
|
||||
state_save_register_global(machine(), m_rockn_protectdata);
|
||||
state_save_register_global(machine(), m_rockn_adpcmbank);
|
||||
state_save_register_global(machine(), m_rockn_soundvolume);
|
||||
save_item(NAME(m_systemregs));
|
||||
save_item(NAME(m_rocknms_sub_systemregs));
|
||||
save_item(NAME(m_rockn_protectdata));
|
||||
save_item(NAME(m_rockn_adpcmbank));
|
||||
save_item(NAME(m_rockn_soundvolume));
|
||||
}
|
||||
|
||||
DRIVER_INIT_MEMBER(tetrisp2_state,rockn)
|
||||
|
@ -326,9 +326,9 @@ TIMER_CALLBACK_MEMBER(tubep_state::tubep_scanline_callback)
|
||||
void tubep_state::tubep_setup_save_state()
|
||||
{
|
||||
/* Set up save state */
|
||||
state_save_register_global(machine(), m_sound_latch);
|
||||
state_save_register_global(machine(), m_ls74);
|
||||
state_save_register_global(machine(), m_ls377);
|
||||
save_item(NAME(m_sound_latch));
|
||||
save_item(NAME(m_ls74));
|
||||
save_item(NAME(m_ls377));
|
||||
}
|
||||
|
||||
|
||||
|
@ -704,12 +704,12 @@ MACHINE_START_MEMBER(twin16_state,twin16)
|
||||
m_CPUB_register=0;
|
||||
|
||||
/* register for savestates */
|
||||
state_save_register_global(machine(), m_CPUA_register);
|
||||
state_save_register_global(machine(), m_CPUB_register);
|
||||
save_item(NAME(m_CPUA_register));
|
||||
save_item(NAME(m_CPUB_register));
|
||||
|
||||
state_save_register_global(machine(), m_sound_command);
|
||||
state_save_register_global(machine(), m_cuebrickj_nvram_bank);
|
||||
state_save_register_global_array(machine(), m_cuebrickj_nvram);
|
||||
save_item(NAME(m_sound_command));
|
||||
save_item(NAME(m_cuebrickj_nvram_bank));
|
||||
save_item(NAME(m_cuebrickj_nvram));
|
||||
}
|
||||
|
||||
static MACHINE_CONFIG_START( twin16, twin16_state )
|
||||
|
@ -561,19 +561,19 @@ void vegas_state::machine_start()
|
||||
mips3drc_add_fastram(m_maincpu, 0x1fc00000, 0x1fc7ffff, TRUE, m_rombase);
|
||||
|
||||
/* register for save states */
|
||||
state_save_register_global(machine(), m_nile_irq_state);
|
||||
state_save_register_global(machine(), m_ide_irq_state);
|
||||
state_save_register_global_array(machine(), m_pci_bridge_regs);
|
||||
state_save_register_global_array(machine(), m_pci_ide_regs);
|
||||
state_save_register_global_array(machine(), m_pci_3dfx_regs);
|
||||
state_save_register_global(machine(), m_vblank_state);
|
||||
state_save_register_global_array(machine(), m_sio_data);
|
||||
state_save_register_global(machine(), m_sio_irq_clear);
|
||||
state_save_register_global(machine(), m_sio_irq_enable);
|
||||
state_save_register_global(machine(), m_sio_irq_state);
|
||||
state_save_register_global(machine(), m_sio_led_state);
|
||||
state_save_register_global(machine(), m_pending_analog_read);
|
||||
state_save_register_global(machine(), m_cmos_unlocked);
|
||||
save_item(NAME(m_nile_irq_state));
|
||||
save_item(NAME(m_ide_irq_state));
|
||||
save_item(NAME(m_pci_bridge_regs));
|
||||
save_item(NAME(m_pci_ide_regs));
|
||||
save_item(NAME(m_pci_3dfx_regs));
|
||||
save_item(NAME(m_vblank_state));
|
||||
save_item(NAME(m_sio_data));
|
||||
save_item(NAME(m_sio_irq_clear));
|
||||
save_item(NAME(m_sio_irq_enable));
|
||||
save_item(NAME(m_sio_irq_state));
|
||||
save_item(NAME(m_sio_led_state));
|
||||
save_item(NAME(m_pending_analog_read));
|
||||
save_item(NAME(m_cmos_unlocked));
|
||||
machine().save().register_postload(save_prepost_delegate(FUNC(vegas_state::remap_dynamic_addresses), this));
|
||||
}
|
||||
|
||||
|
@ -1118,7 +1118,7 @@ void _3do_state::m_3do_clio_init( screen_device *screen )
|
||||
memset(m_dspp.EI, 0, sizeof(UINT16) * 0x400);
|
||||
memset(m_dspp.EO, 0, sizeof(UINT16) * 0x400);
|
||||
|
||||
state_save_register_global_pointer(machine(), m_dspp.N, 0x800);
|
||||
state_save_register_global_pointer(machine(), m_dspp.EI, 0x400);
|
||||
state_save_register_global_pointer(machine(), m_dspp.EO, 0x400);
|
||||
save_pointer(NAME(m_dspp.N), 0x800);
|
||||
save_pointer(NAME(m_dspp.EI), 0x400);
|
||||
save_pointer(NAME(m_dspp.EO), 0x400);
|
||||
}
|
||||
|
@ -190,7 +190,7 @@ MACHINE_START_MEMBER(pacman_state,acitya)
|
||||
|
||||
membank("bank1")->configure_entries(0, 4, &RAM[0x10000], 0x4000);
|
||||
|
||||
state_save_register_global(machine(), m_counter);
|
||||
save_item(NAME(m_counter));
|
||||
}
|
||||
|
||||
|
||||
|
@ -315,8 +315,8 @@ void atari_machine_start(running_machine &machine)
|
||||
machine.add_notifier(MACHINE_NOTIFY_RESET, machine_notify_delegate(FUNC(_antic_reset), &machine));
|
||||
|
||||
/* save states */
|
||||
state_save_register_global_pointer(machine, ((UINT8 *) &antic.r), sizeof(antic.r));
|
||||
state_save_register_global_pointer(machine, ((UINT8 *) &antic.w), sizeof(antic.w));
|
||||
machine.save().save_pointer(NAME((UINT8 *) &antic.r), sizeof(antic.r));
|
||||
machine.save().save_pointer(NAME((UINT8 *) &antic.w), sizeof(antic.w));
|
||||
}
|
||||
|
||||
|
||||
|
@ -488,15 +488,15 @@ void carpolo_state::machine_start()
|
||||
m_ttl74148_3s = machine().device("74148_3s");
|
||||
m_ttl74153_1k = machine().device("74153_1k");
|
||||
|
||||
state_save_register_global(machine(), m_ball_screen_collision_cause);
|
||||
state_save_register_global(machine(), m_car_ball_collision_x);
|
||||
state_save_register_global(machine(), m_car_ball_collision_y);
|
||||
state_save_register_global(machine(), m_car_car_collision_cause);
|
||||
state_save_register_global(machine(), m_car_goal_collision_cause);
|
||||
state_save_register_global(machine(), m_car_ball_collision_cause);
|
||||
state_save_register_global(machine(), m_car_border_collision_cause);
|
||||
state_save_register_global(machine(), m_priority_0_extension);
|
||||
state_save_register_global_array(machine(), m_last_wheel_value);
|
||||
save_item(NAME(m_ball_screen_collision_cause));
|
||||
save_item(NAME(m_car_ball_collision_x));
|
||||
save_item(NAME(m_car_ball_collision_y));
|
||||
save_item(NAME(m_car_car_collision_cause));
|
||||
save_item(NAME(m_car_goal_collision_cause));
|
||||
save_item(NAME(m_car_ball_collision_cause));
|
||||
save_item(NAME(m_car_border_collision_cause));
|
||||
save_item(NAME(m_priority_0_extension));
|
||||
save_item(NAME(m_last_wheel_value));
|
||||
}
|
||||
|
||||
void carpolo_state::machine_reset()
|
||||
|
@ -57,8 +57,8 @@ static const UINT8 superman_code[40] =
|
||||
|
||||
MACHINE_RESET( cchip1 )
|
||||
{
|
||||
state_save_register_global(machine, current_bank);
|
||||
state_save_register_global(machine, cc_port);
|
||||
machine.save().save_item(NAME(current_bank));
|
||||
machine.save().save_item(NAME(cc_port));
|
||||
}
|
||||
|
||||
/*************************************
|
||||
|
@ -759,31 +759,31 @@ void dc_state::machine_start()
|
||||
rtc_initial_setup();
|
||||
|
||||
// save states
|
||||
state_save_register_global_pointer(machine(), dc_rtcregister, 4);
|
||||
state_save_register_global_pointer(machine(), dc_sysctrl_regs, 0x200/4);
|
||||
state_save_register_global_pointer(machine(), g2bus_regs, 0x100/4);
|
||||
state_save_register_global(machine(), m_wave_dma.aica_addr);
|
||||
state_save_register_global(machine(), m_wave_dma.root_addr);
|
||||
state_save_register_global(machine(), m_wave_dma.size);
|
||||
state_save_register_global(machine(), m_wave_dma.dir);
|
||||
state_save_register_global(machine(), m_wave_dma.flag);
|
||||
state_save_register_global(machine(), m_wave_dma.indirect);
|
||||
state_save_register_global(machine(), m_wave_dma.start);
|
||||
state_save_register_global(machine(), m_wave_dma.sel);
|
||||
state_save_register_global(machine(), m_pvr_dma.pvr_addr);
|
||||
state_save_register_global(machine(), m_pvr_dma.sys_addr);
|
||||
state_save_register_global(machine(), m_pvr_dma.size);
|
||||
state_save_register_global(machine(), m_pvr_dma.sel);
|
||||
state_save_register_global(machine(), m_pvr_dma.dir);
|
||||
state_save_register_global(machine(), m_pvr_dma.flag);
|
||||
state_save_register_global(machine(), m_pvr_dma.start);
|
||||
state_save_register_global_pointer(machine(),pvrta_regs,0x2000/4);
|
||||
state_save_register_global_pointer(machine(),pvrctrl_regs,0x100/4);
|
||||
state_save_register_global(machine(), debug_dip_status);
|
||||
state_save_register_global_pointer(machine(),tafifo_buff,32);
|
||||
state_save_register_global(machine(), scanline);
|
||||
state_save_register_global(machine(), next_y);
|
||||
state_save_register_global_pointer(machine(),dc_sound_ram.target(),dc_sound_ram.bytes());
|
||||
save_pointer(NAME(dc_rtcregister), 4);
|
||||
save_pointer(NAME(dc_sysctrl_regs), 0x200/4);
|
||||
save_pointer(NAME(g2bus_regs), 0x100/4);
|
||||
save_item(NAME(m_wave_dma.aica_addr));
|
||||
save_item(NAME(m_wave_dma.root_addr));
|
||||
save_item(NAME(m_wave_dma.size));
|
||||
save_item(NAME(m_wave_dma.dir));
|
||||
save_item(NAME(m_wave_dma.flag));
|
||||
save_item(NAME(m_wave_dma.indirect));
|
||||
save_item(NAME(m_wave_dma.start));
|
||||
save_item(NAME(m_wave_dma.sel));
|
||||
save_item(NAME(m_pvr_dma.pvr_addr));
|
||||
save_item(NAME(m_pvr_dma.sys_addr));
|
||||
save_item(NAME(m_pvr_dma.size));
|
||||
save_item(NAME(m_pvr_dma.sel));
|
||||
save_item(NAME(m_pvr_dma.dir));
|
||||
save_item(NAME(m_pvr_dma.flag));
|
||||
save_item(NAME(m_pvr_dma.start));
|
||||
save_pointer(NAME(pvrta_regs),0x2000/4);
|
||||
save_pointer(NAME(pvrctrl_regs),0x100/4);
|
||||
save_item(NAME(debug_dip_status));
|
||||
save_pointer(NAME(tafifo_buff),32);
|
||||
save_item(NAME(scanline));
|
||||
save_item(NAME(next_y));
|
||||
save_pointer(NAME(dc_sound_ram.target()),dc_sound_ram.bytes());
|
||||
}
|
||||
|
||||
void dc_state::machine_reset()
|
||||
|
@ -98,13 +98,13 @@ void decoprot_reset(running_machine &machine)
|
||||
deco16_prot_ram = reinterpret_cast<UINT16 *>(machine.root_device().memshare("prot16ram")->ptr());
|
||||
deco32_prot_ram = reinterpret_cast<UINT32 *>(machine.root_device().memshare("prot32ram")->ptr());
|
||||
|
||||
state_save_register_global(machine, deco16_xor);
|
||||
state_save_register_global(machine, deco16_mask);
|
||||
state_save_register_global(machine, decoprot_last_write);
|
||||
state_save_register_global(machine, decoprot_last_write_val);
|
||||
state_save_register_global(machine, decoprot_buffer_ram_selected);
|
||||
state_save_register_global_array(machine, decoprot_buffer_ram);
|
||||
state_save_register_global_array(machine, decoprot_buffer_ram2);
|
||||
machine.save().save_item(NAME(deco16_xor));
|
||||
machine.save().save_item(NAME(deco16_mask));
|
||||
machine.save().save_item(NAME(decoprot_last_write));
|
||||
machine.save().save_item(NAME(decoprot_last_write_val));
|
||||
machine.save().save_item(NAME(decoprot_buffer_ram_selected));
|
||||
machine.save().save_item(NAME(decoprot_buffer_ram));
|
||||
machine.save().save_item(NAME(decoprot_buffer_ram2));
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
|
@ -408,7 +408,7 @@ DRIVER_INIT_MEMBER(galaxold_state,4in1)
|
||||
|
||||
_4in1_bank_w(space, 0, 0); /* set the initial CPU bank */
|
||||
|
||||
state_save_register_global(machine(), m__4in1_bank);
|
||||
save_item(NAME(m__4in1_bank));
|
||||
}
|
||||
|
||||
INTERRUPT_GEN_MEMBER(galaxold_state::hunchbks_vh_interrupt)
|
||||
|
@ -440,7 +440,7 @@ static UINT32 fantjour_dma[8];
|
||||
void fantjour_dma_install(running_machine &machine)
|
||||
{
|
||||
konamigx_state *state = machine.driver_data<konamigx_state>();
|
||||
state_save_register_global_array(machine, fantjour_dma);
|
||||
machine.save().save_item(NAME(fantjour_dma));
|
||||
state->m_maincpu->space(AS_PROGRAM).install_write_handler(0xdb0000, 0xdb001f, write32_delegate(FUNC(konamigx_state::fantjour_dma_w),state));
|
||||
memset(fantjour_dma, 0, sizeof(fantjour_dma));
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ const z80sio_interface nflfoot_sio_intf =
|
||||
|
||||
MACHINE_START_MEMBER(mcr_state,mcr)
|
||||
{
|
||||
state_save_register_global(machine(), mcr_cocktail_flip);
|
||||
save_item(NAME(mcr_cocktail_flip));
|
||||
}
|
||||
|
||||
|
||||
|
@ -112,13 +112,13 @@ MACHINE_START_MEMBER(mcr68_state,mcr68)
|
||||
state_save_register_item(machine(), "m6840", NULL, i, m6840->timer_active);
|
||||
}
|
||||
|
||||
state_save_register_global(machine(), m_m6840_status);
|
||||
state_save_register_global(machine(), m_m6840_status_read_since_int);
|
||||
state_save_register_global(machine(), m_m6840_msb_buffer);
|
||||
state_save_register_global(machine(), m_m6840_lsb_buffer);
|
||||
state_save_register_global(machine(), m_m6840_irq_state);
|
||||
state_save_register_global(machine(), m_v493_irq_state);
|
||||
state_save_register_global(machine(), m_zwackery_sound_data);
|
||||
save_item(NAME(m_m6840_status));
|
||||
save_item(NAME(m_m6840_status_read_since_int));
|
||||
save_item(NAME(m_m6840_msb_buffer));
|
||||
save_item(NAME(m_m6840_lsb_buffer));
|
||||
save_item(NAME(m_m6840_irq_state));
|
||||
save_item(NAME(m_v493_irq_state));
|
||||
save_item(NAME(m_zwackery_sound_data));
|
||||
}
|
||||
|
||||
|
||||
|
@ -28,14 +28,14 @@
|
||||
|
||||
void midtunit_state::register_state_saving()
|
||||
{
|
||||
state_save_register_global(machine(), cmos_write_enable);
|
||||
state_save_register_global(machine(), fake_sound_state);
|
||||
state_save_register_global(machine(), mk_prot_index);
|
||||
state_save_register_global(machine(), mk2_prot_data);
|
||||
state_save_register_global_array(machine(), nbajam_prot_queue);
|
||||
state_save_register_global(machine(), nbajam_prot_index);
|
||||
state_save_register_global(machine(), jdredd_prot_index);
|
||||
state_save_register_global(machine(), jdredd_prot_max);
|
||||
save_item(NAME(cmos_write_enable));
|
||||
save_item(NAME(fake_sound_state));
|
||||
save_item(NAME(mk_prot_index));
|
||||
save_item(NAME(mk2_prot_data));
|
||||
save_item(NAME(nbajam_prot_queue));
|
||||
save_item(NAME(nbajam_prot_index));
|
||||
save_item(NAME(jdredd_prot_index));
|
||||
save_item(NAME(jdredd_prot_max));
|
||||
}
|
||||
|
||||
|
||||
|
@ -172,12 +172,12 @@ static void generate_serial_data(running_machine &machine, int upper)
|
||||
|
||||
static void serial_register_state(running_machine &machine)
|
||||
{
|
||||
state_save_register_global_array(machine, serial.data);
|
||||
state_save_register_global(machine, serial.buffer);
|
||||
state_save_register_global(machine, serial.index);
|
||||
state_save_register_global(machine, serial.status);
|
||||
state_save_register_global(machine, serial.bits);
|
||||
state_save_register_global(machine, serial.ormask);
|
||||
machine.save().save_item(NAME(serial.data));
|
||||
machine.save().save_item(NAME(serial.buffer));
|
||||
machine.save().save_item(NAME(serial.index));
|
||||
machine.save().save_item(NAME(serial.status));
|
||||
machine.save().save_item(NAME(serial.bits));
|
||||
machine.save().save_item(NAME(serial.ormask));
|
||||
}
|
||||
|
||||
|
||||
@ -257,19 +257,19 @@ static TIMER_CALLBACK( reset_timer )
|
||||
|
||||
static void pic_register_state(running_machine &machine)
|
||||
{
|
||||
state_save_register_global(machine, pic.latch);
|
||||
state_save_register_global(machine, pic.latch_expire_time);
|
||||
state_save_register_global(machine, pic.state);
|
||||
state_save_register_global(machine, pic.index);
|
||||
state_save_register_global(machine, pic.total);
|
||||
state_save_register_global(machine, pic.nvram_addr);
|
||||
state_save_register_global_array(machine, pic.buffer);
|
||||
state_save_register_global_array(machine, pic.nvram);
|
||||
state_save_register_global_array(machine, pic.default_nvram);
|
||||
state_save_register_global_array(machine, pic.time_buf);
|
||||
state_save_register_global(machine, pic.time_index);
|
||||
state_save_register_global(machine, pic.time_just_written);
|
||||
state_save_register_global(machine, pic.yearoffs);
|
||||
machine.save().save_item(NAME(pic.latch));
|
||||
machine.save().save_item(NAME(pic.latch_expire_time));
|
||||
machine.save().save_item(NAME(pic.state));
|
||||
machine.save().save_item(NAME(pic.index));
|
||||
machine.save().save_item(NAME(pic.total));
|
||||
machine.save().save_item(NAME(pic.nvram_addr));
|
||||
machine.save().save_item(NAME(pic.buffer));
|
||||
machine.save().save_item(NAME(pic.nvram));
|
||||
machine.save().save_item(NAME(pic.default_nvram));
|
||||
machine.save().save_item(NAME(pic.time_buf));
|
||||
machine.save().save_item(NAME(pic.time_index));
|
||||
machine.save().save_item(NAME(pic.time_just_written));
|
||||
machine.save().save_item(NAME(pic.yearoffs));
|
||||
}
|
||||
|
||||
|
||||
@ -567,17 +567,17 @@ static void cage_irq_handler(running_machine &machine, int state);
|
||||
|
||||
static void ioasic_register_state(running_machine &machine)
|
||||
{
|
||||
state_save_register_global_array(machine, ioasic.reg);
|
||||
state_save_register_global(machine, ioasic.shuffle_active);
|
||||
state_save_register_global(machine, ioasic.irq_state);
|
||||
state_save_register_global(machine, ioasic.sound_irq_state);
|
||||
state_save_register_global(machine, ioasic.auto_ack);
|
||||
state_save_register_global(machine, ioasic.force_fifo_full);
|
||||
state_save_register_global_array(machine, ioasic.fifo);
|
||||
state_save_register_global(machine, ioasic.fifo_in);
|
||||
state_save_register_global(machine, ioasic.fifo_out);
|
||||
state_save_register_global(machine, ioasic.fifo_bytes);
|
||||
state_save_register_global(machine, ioasic.fifo_force_buffer_empty_pc);
|
||||
machine.save().save_item(NAME(ioasic.reg));
|
||||
machine.save().save_item(NAME(ioasic.shuffle_active));
|
||||
machine.save().save_item(NAME(ioasic.irq_state));
|
||||
machine.save().save_item(NAME(ioasic.sound_irq_state));
|
||||
machine.save().save_item(NAME(ioasic.auto_ack));
|
||||
machine.save().save_item(NAME(ioasic.force_fifo_full));
|
||||
machine.save().save_item(NAME(ioasic.fifo));
|
||||
machine.save().save_item(NAME(ioasic.fifo_in));
|
||||
machine.save().save_item(NAME(ioasic.fifo_out));
|
||||
machine.save().save_item(NAME(ioasic.fifo_bytes));
|
||||
machine.save().save_item(NAME(ioasic.fifo_force_buffer_empty_pc));
|
||||
}
|
||||
|
||||
|
||||
|
@ -20,11 +20,11 @@
|
||||
|
||||
void midwunit_state::register_state_saving()
|
||||
{
|
||||
state_save_register_global(machine(), m_cmos_write_enable);
|
||||
state_save_register_global_array(machine(), m_iodata);
|
||||
state_save_register_global_array(machine(), m_ioshuffle);
|
||||
state_save_register_global_array(machine(), m_uart);
|
||||
state_save_register_global(machine(), m_security_bits);
|
||||
save_item(NAME(m_cmos_write_enable));
|
||||
save_item(NAME(m_iodata));
|
||||
save_item(NAME(m_ioshuffle));
|
||||
save_item(NAME(m_uart));
|
||||
save_item(NAME(m_security_bits));
|
||||
}
|
||||
|
||||
|
||||
|
@ -26,12 +26,12 @@ static void midxunit_dcs_output_full(running_machine &machine, int state);
|
||||
|
||||
void midxunit_state::register_state_saving()
|
||||
{
|
||||
state_save_register_global(machine(), m_cmos_write_enable);
|
||||
state_save_register_global_array(machine(), m_iodata);
|
||||
state_save_register_global_array(machine(), m_ioshuffle);
|
||||
state_save_register_global(machine(), m_analog_port);
|
||||
state_save_register_global_array(machine(), m_uart);
|
||||
state_save_register_global(machine(), m_security_bits);
|
||||
save_item(NAME(m_cmos_write_enable));
|
||||
save_item(NAME(m_iodata));
|
||||
save_item(NAME(m_ioshuffle));
|
||||
save_item(NAME(m_analog_port));
|
||||
save_item(NAME(m_uart));
|
||||
save_item(NAME(m_security_bits));
|
||||
}
|
||||
|
||||
|
||||
|
@ -1988,22 +1988,22 @@ MACHINE_START_MEMBER(model1_state,model1)
|
||||
{
|
||||
m_ram_data = auto_alloc_array(machine(), UINT32, 0x10000);
|
||||
|
||||
state_save_register_global_pointer(machine(), m_ram_data, 0x10000);
|
||||
state_save_register_global(machine(), m_ram_adr);
|
||||
state_save_register_global(machine(), m_ram_scanadr);
|
||||
state_save_register_global_array(machine(), m_ram_latch);
|
||||
state_save_register_global(machine(), m_fifoout_rpos);
|
||||
state_save_register_global(machine(), m_fifoout_wpos);
|
||||
state_save_register_global_array(machine(), m_fifoout_data);
|
||||
state_save_register_global(machine(), m_fifoin_rpos);
|
||||
state_save_register_global(machine(), m_fifoin_wpos);
|
||||
state_save_register_global_array(machine(), m_fifoin_data);
|
||||
state_save_register_global_array(machine(), m_cmat);
|
||||
state_save_register_global_2d_array(machine(), m_mat_stack);
|
||||
state_save_register_global_2d_array(machine(), m_mat_vector);
|
||||
state_save_register_global(machine(), m_mat_stack_pos);
|
||||
state_save_register_global(machine(), m_acc);
|
||||
state_save_register_global(machine(), m_list_length);
|
||||
save_pointer(NAME(m_ram_data), 0x10000);
|
||||
save_item(NAME(m_ram_adr));
|
||||
save_item(NAME(m_ram_scanadr));
|
||||
save_item(NAME(m_ram_latch));
|
||||
save_item(NAME(m_fifoout_rpos));
|
||||
save_item(NAME(m_fifoout_wpos));
|
||||
save_item(NAME(m_fifoout_data));
|
||||
save_item(NAME(m_fifoin_rpos));
|
||||
save_item(NAME(m_fifoin_wpos));
|
||||
save_item(NAME(m_fifoin_data));
|
||||
save_item(NAME(m_cmat));
|
||||
save_item(NAME(m_mat_stack));
|
||||
save_item(NAME(m_mat_vector));
|
||||
save_item(NAME(m_mat_stack_pos));
|
||||
save_item(NAME(m_acc));
|
||||
save_item(NAME(m_list_length));
|
||||
}
|
||||
|
||||
void model1_tgp_reset(running_machine &machine, int swa)
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
void namcond1_state::machine_start()
|
||||
{
|
||||
state_save_register_global(machine(), m_h8_irq5_enabled);
|
||||
save_item(NAME(m_h8_irq5_enabled));
|
||||
}
|
||||
|
||||
void namcond1_state::machine_reset()
|
||||
|
@ -991,9 +991,9 @@ static void namcos1_driver_init( running_machine &machine, const struct namcos1_
|
||||
state->m_paletteram = auto_alloc_array(machine, UINT8, 0x8000);
|
||||
|
||||
/* Register volatile user memory for save state */
|
||||
state_save_register_global_pointer(machine, state->m_s1ram, 0x8000);
|
||||
state_save_register_global_pointer(machine, state->m_triram, 0x800);
|
||||
state_save_register_global_pointer(machine, state->m_paletteram, 0x8000);
|
||||
machine.save().save_pointer(NAME(state->m_s1ram), 0x8000);
|
||||
machine.save().save_pointer(NAME(state->m_triram), 0x800);
|
||||
machine.save().save_pointer(NAME(state->m_paletteram), 0x8000);
|
||||
|
||||
/* Point mcu & sound shared RAM to destination */
|
||||
state->membank("bank18")->set_base(state->m_triram );
|
||||
|
@ -1508,8 +1508,8 @@ DRIVER_INIT_MEMBER(pgm_arm_type1_state,oldsplus)
|
||||
arm_sim_handler = &pgm_arm_type1_state::command_handler_oldsplus;
|
||||
m_maincpu->space(AS_PROGRAM).install_readwrite_handler(0x500000, 0x500005, read16_delegate(FUNC(pgm_arm_type1_state::pgm_arm7_type1_sim_r),this), write16_delegate(FUNC(pgm_arm_type1_state::pgm_arm7_type1_sim_w),this));
|
||||
m_maincpu->space(AS_PROGRAM).install_read_handler(0x4f0000, 0x4f003f, read16_delegate(FUNC(pgm_arm_type1_state::pgm_arm7_type1_sim_protram_r),this));
|
||||
state_save_register_global_array(machine(), m_extra_ram);
|
||||
state_save_register_global_array(machine(), m_slots);
|
||||
save_item(NAME(m_extra_ram));
|
||||
save_item(NAME(m_slots));
|
||||
}
|
||||
|
||||
INPUT_PORTS_START( photoy2k )
|
||||
|
@ -282,7 +282,7 @@ DRIVER_INIT_MEMBER(scramble_state,cavelon)
|
||||
m_maincpu->space(AS_PROGRAM).nop_write(0x2000, 0x2000); /* ??? */
|
||||
m_maincpu->space(AS_PROGRAM).nop_write(0x3800, 0x3801); /* looks suspicously like
|
||||
an AY8910, but not sure */
|
||||
state_save_register_global(machine(), m_cavelon_bank);
|
||||
save_item(NAME(m_cavelon_bank));
|
||||
}
|
||||
|
||||
|
||||
|
@ -698,8 +698,8 @@ void install_twcup98_protection(running_machine &machine)
|
||||
|
||||
void stv_register_protection_savestates(running_machine &machine)
|
||||
{
|
||||
state_save_register_global_array(machine, a_bus);
|
||||
state_save_register_global(machine, ctrl_index);
|
||||
state_save_register_global(machine, internal_counter);
|
||||
state_save_register_global(machine, char_offset);
|
||||
machine.save().save_item(NAME(a_bus));
|
||||
machine.save().save_item(NAME(ctrl_index));
|
||||
machine.save().save_item(NAME(internal_counter));
|
||||
machine.save().save_item(NAME(char_offset));
|
||||
}
|
||||
|
@ -14,9 +14,9 @@ void tatsumi_reset(running_machine &machine)
|
||||
state->m_apache3_adc = 0;
|
||||
state->m_apache3_rot_idx = 0;
|
||||
|
||||
state_save_register_global(machine, state->m_last_control);
|
||||
state_save_register_global(machine, state->m_control_word);
|
||||
state_save_register_global(machine, state->m_apache3_adc);
|
||||
state->save_item(NAME(state->m_last_control));
|
||||
state->save_item(NAME(state->m_control_word));
|
||||
state->save_item(NAME(state->m_apache3_adc));
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
|
@ -244,7 +244,7 @@ MACHINE_START_MEMBER(pacman_state,theglobp)
|
||||
|
||||
membank("bank1")->configure_entries(0, 4, &RAM[0x10000], 0x4000);
|
||||
|
||||
state_save_register_global(machine(), m_counter);
|
||||
save_item(NAME(m_counter));
|
||||
}
|
||||
|
||||
|
||||
|
@ -320,15 +320,15 @@ MACHINE_RESET_MEMBER(twincobr_state,wardner)
|
||||
|
||||
void twincobr_state::twincobr_driver_savestate()
|
||||
{
|
||||
state_save_register_global(machine(), m_toaplan_main_cpu);
|
||||
state_save_register_global(machine(), m_intenable);
|
||||
state_save_register_global(machine(), m_dsp_on);
|
||||
state_save_register_global(machine(), m_dsp_addr_w);
|
||||
state_save_register_global(machine(), m_main_ram_seg);
|
||||
state_save_register_global(machine(), m_dsp_BIO);
|
||||
state_save_register_global(machine(), m_dsp_execute);
|
||||
state_save_register_global(machine(), m_fsharkbt_8741);
|
||||
state_save_register_global(machine(), m_wardner_membank);
|
||||
save_item(NAME(m_toaplan_main_cpu));
|
||||
save_item(NAME(m_intenable));
|
||||
save_item(NAME(m_dsp_on));
|
||||
save_item(NAME(m_dsp_addr_w));
|
||||
save_item(NAME(m_main_ram_seg));
|
||||
save_item(NAME(m_dsp_BIO));
|
||||
save_item(NAME(m_dsp_execute));
|
||||
save_item(NAME(m_fsharkbt_8741));
|
||||
save_item(NAME(m_wardner_membank));
|
||||
|
||||
machine().save().register_postload(save_prepost_delegate(FUNC(twincobr_state::twincobr_restore_dsp), this));
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user