Пример #1
0
static STATE_POSTLOAD( schaser_reinit_555_time_remain )
{
    _8080bw_state *state = machine.driver_data<_8080bw_state>();
    address_space *space = state->m_maincpu->memory().space(AS_PROGRAM);
    state->m_schaser_effect_555_time_remain = attotime::from_double(state->m_schaser_effect_555_time_remain_savable);
    schaser_sh_port_2_w(space, 0, state->m_port_2_last_extra);
}
Пример #2
0
static STATE_POSTLOAD( schaser_reinit_555_time_remain )
{
    mw8080bw_state *state = machine->driver_data<mw8080bw_state>();
    address_space *space = cpu_get_address_space(state->maincpu, ADDRESS_SPACE_PROGRAM);
    state->schaser_effect_555_time_remain = double_to_attotime(state->schaser_effect_555_time_remain_savable);
    schaser_sh_port_2_w(space, 0, state->port_2_last_extra);
}
Пример #3
0
MACHINE_RESET_MEMBER(_8080bw_state,schaser_sh)
{
	address_space &space = m_maincpu->space(AS_PROGRAM);

	m_schaser_effect_555_is_low = 0;
	m_schaser_effect_555_timer->adjust(attotime::never);
	schaser_sh_port_1_w(space, 0, 0);
	schaser_sh_port_2_w(space, 0, 0);
	m_schaser_effect_555_time_remain = attotime::zero;
	m_schaser_effect_555_time_remain_savable = m_schaser_effect_555_time_remain.as_double();
}
Пример #4
0
void _8080bw_state::schaser_reinit_555_time_remain()
{
	address_space &space = m_maincpu->space(AS_PROGRAM);
	m_schaser_effect_555_time_remain = attotime::from_double(m_schaser_effect_555_time_remain_savable);
	schaser_sh_port_2_w(space, 0, m_port_2_last_extra);
}
Пример #5
0
static void schaser_reinit_555_time_remain(_8080bw_state *state)
{
	address_space *space = state->m_maincpu->memory().space(AS_PROGRAM);
	state->m_schaser_effect_555_time_remain = attotime::from_double(state->m_schaser_effect_555_time_remain_savable);
	schaser_sh_port_2_w(space, 0, state->m_port_2_last_extra);
}
Пример #6
0
static STATE_POSTLOAD( schaser_reinit_555_time_remain )
{
    const address_space *space = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM);
    schaser_effect_555_time_remain = double_to_attotime(schaser_effect_555_time_remain_savable);
    schaser_sh_port_2_w(space, 0, port_2_last_extra);
}