public static WriteHandlerPtr sound_bank_w = new WriteHandlerPtr() { public void handler(int offset, int data)
	{
		UBytePtr RAM;
		int bank_A,bank_B;
	
		RAM = memory_region(REGION_SOUND1);
		bank_A = 0x20000 * ((data >> 0) & 0x03);
		bank_B = 0x20000 * ((data >> 2) & 0x03);
		K007232_bankswitch(0,new UBytePtr(RAM,bank_A),new UBytePtr(RAM,bank_B));
		RAM = memory_region(REGION_SOUND2);
		bank_A = 0x20000 * ((data >> 4) & 0x03);
		bank_B = 0x20000 * ((data >> 6) & 0x03);
		K007232_bankswitch(1,new UBytePtr(RAM,bank_A),new UBytePtr(RAM,bank_B));
	} }