Ejemplo n.º 1
0
static void sound_bankswitch(INT32 data)
{
	INT32 bank_A=(data&0x3);
	INT32 bank_B=((data>>2)&0x3);
	bank_A=bank_B;
	k007232_set_bank(0, bank_A, bank_B );
}
Ejemplo n.º 2
0
static void DrvYM2151WritePort(unsigned int, unsigned int data)
{
	int bank_A = ((data >> 1) & 0x01);
	int bank_B = ((data) & 0x01);

	k007232_set_bank(0, bank_A, bank_B );
}
Ejemplo n.º 3
0
static void sound_bankswitch(int data)
{
	int bank_A=(data&0x3);
	int bank_B=((data>>2)&0x3);
	bank_A=bank_B;
	k007232_set_bank(0, bank_A, bank_B );
}
Ejemplo n.º 4
0
static WRITE8_DEVICE_HANDLER( scontra_snd_bankswitch_w )
{
	/* b3-b2: bank for chanel B */
	/* b1-b0: bank for chanel A */

	int bank_A = (data & 0x03);
	int bank_B = ((data >> 2) & 0x03);
	k007232_set_bank(device, bank_A, bank_B);
}
Ejemplo n.º 5
0
static WRITE8_DEVICE_HANDLER( crimfght_snd_bankswitch_w )
{
	/* b1: bank for channel A */
	/* b0: bank for channel B */

	int bank_A = ((data >> 1) & 0x01);
	int bank_B = ((data) & 0x01);
	k007232_set_bank( devtag_get_device(device->machine, "konami"), bank_A, bank_B );
}
Ejemplo n.º 6
0
	AM_RANGE(0x8000, 0xffff) AM_ROM
ADDRESS_MAP_END

/*****************************************************************************/

WRITE8_MEMBER(hcastle_state::sound_bank_w)
{
	int bank_A=(data&0x3);
	int bank_B=((data>>2)&0x3);
	k007232_set_bank(m_k007232, bank_A, bank_B );
}
Ejemplo n.º 7
0
	AM_RANGE(0x8000, 0xffff) AM_ROM
ADDRESS_MAP_END

/*****************************************************************************/

static WRITE8_DEVICE_HANDLER( sound_bank_w )
{
	int bank_A=(data&0x3);
	int bank_B=((data>>2)&0x3);
	k007232_set_bank(device, bank_A, bank_B );
}
Ejemplo n.º 8
0
static WRITE8_DEVICE_HANDLER( crimfght_snd_bankswitch_w )
{
	/* b1: bank for channel A */
	/* b0: bank for channel B */

	crimfght_state *state = device->machine().driver_data<crimfght_state>();
	int bank_A = BIT(data, 1);
	int bank_B = BIT(data, 0);

	k007232_set_bank(state->m_k007232, bank_A, bank_B );
}
Ejemplo n.º 9
0
static WRITE8_DEVICE_HANDLER( aliens_snd_bankswitch_w )
{
	aliens_state *state = (aliens_state *)device->machine->driver_data;

	/* b1: bank for chanel A */
	/* b0: bank for chanel B */

	int bank_A = BIT(data, 1);
	int bank_B = BIT(data, 0);

	k007232_set_bank(state->k007232, bank_A, bank_B);
}
Ejemplo n.º 10
0
	AM_RANGE(0x8000, 0xffff) AM_ROM
ADDRESS_MAP_END

/*****************************************************************************/

WRITE8_MEMBER(hcastle_state::sound_bank_w)
{
	device_t *device = machine().device("konami1");
	int bank_A=(data&0x3);
	int bank_B=((data>>2)&0x3);
	k007232_set_bank(device, bank_A, bank_B );
}
Ejemplo n.º 11
0
static WRITE8_DEVICE_HANDLER( gbusters_snd_bankswitch_w )
{
	int bank_B = BIT(data, 2);	/* ?? */
	int bank_A = BIT(data, 0);		/* ?? */
	k007232_set_bank(device, bank_A, bank_B );

#if 0
	{
		char baf[40];
		sprintf(baf,"snd_bankswitch = %02x", data);
		popmessage(baf);
	}
#endif
}
Ejemplo n.º 12
0
static void scontra_snd_bankswitch_w(int data)
{
	int bank_A = (data & 0x03);
	int bank_B = ((data >> 2) & 0x03);
	k007232_set_bank(0, bank_A, bank_B );
}
Ejemplo n.º 13
0
static void gbusters_snd_bankswitch_w(int data)
{
	int bank_B = ((data >> 2) & 0x01);
	int bank_A = ((data) & 0x01);
	k007232_set_bank(0, bank_A, bank_B );
}