Example #1
0
ADDRESS_MAP_END

READ8_MEMBER(othello_state::latch_r)
{
	int retval = soundlatch_byte_r(space, 0);
	soundlatch_clear_byte_w(space, 0, 0);
	return retval;
}
Example #2
0
void mario_state::sound_reset()
{
	address_space &space = machine().device("audiocpu")->memory().space(AS_PROGRAM);

#if USE_8039
	set_ea(machine, 1);
#endif

	/* FIXME: convert to latch8 */
	soundlatch_clear_byte_w(space, 0, 0);
	soundlatch2_clear_byte_w(space, 0, 0);
	soundlatch3_clear_byte_w(space, 0, 0);
	soundlatch4_clear_byte_w(space, 0, 0);
	I8035_P1_W(space, 0x00); /* Input port */
	I8035_P2_W(space, 0xff); /* Port is in high impedance state after reset */

	m_last = 0;
}