Core/burn/drv/pre90s/d_lwings.cpp
// Avengers protection code ripped directly from MAME
Avengers protection code ripped directly from MAME
Avengers protection code ripped directly from MAME
static void avengers_protection_w(UINT8 data)
{
	INT32 pc = ZetGetPC(-1);
	if (pc == 0x2eeb)
	{
		avengers_param[0] = data;
	}
	else if (pc == 0x2f09)
	{
		avengers_param[1] = data;
	}
	else if (pc == 0x2f26)
	{
		avengers_param[2] = data;
	}
	else if (pc == 0x2f43)
	{
		avengers_param[3] = data;
	}
	else if (pc == 0x0445)
	{
		avengers_soundstate = 0x80;
		soundlatch = data;
	}
}
static void avengers_protection_w ( UINT8 data ) { INT32 pc = ZetGetPC ( -1 ) ; if ( pc == 0x2eeb ) { avengers_param [ 0 ] = data ; } else if ( pc == 0x2f09 ) { avengers_param [ 1 ] = data ; } else if ( pc == 0x2f26 ) { avengers_param [ 2 ] = data ; } else if ( pc == 0x2f43 ) { avengers_param [ 3 ] = data ; } else if ( pc == 0x0445 ) { avengers_soundstate = 0x80 ; soundlatch = data ; } }
Avengers protection code ripped directly from MAME
Avengers protection code ripped directly from MAME