Ejemplo n.º 1
0
static WRITE16_HANDLER( sync_w )
{
	eprom_state *state = space->machine().driver_data<eprom_state>();
	int oldword = state->m_sync_data[offset];
	int newword = oldword;
	COMBINE_DATA(&newword);

	state->m_sync_data[offset] = newword;
	if ((oldword & 0xff00) != (newword & 0xff00))
		device_yield(&space->device());
}
Ejemplo n.º 2
0
static WRITE8_HANDLER( route16_sharedram_w )
{
	route16_state *state = space->machine().driver_data<route16_state>();
	state->m_sharedram[offset] = data;

	// 4313-4319 are used in Route 16 as triggers to wake the other CPU
	if (offset >= 0x0313 && offset <= 0x0319 && data == 0xff)
	{
		// Let the other CPU run
		device_yield(&space->device());
	}
}