public static WriteHandlerPtr gbusters_coin_counter_w = new WriteHandlerPtr() { public void handler(int offset, int data)
	{
		/* bit 0 select palette RAM  or work RAM at 5800-5fff */
		palette_selected = ~data & 0x01;
	
		/* bits 1 & 2 = coin counters */
		coin_counter_w.handler(0,data & 0x02);
		coin_counter_w.handler(1,data & 0x04);
	
		/* bits 3 selects tilemap priority */
		gbusters_priority = data & 0x08;
	
		/* bit 7 is used but unknown */
	
		/* other bits unused/unknown */
		/*if (data & 0xf8)
		{
			char baf[40];
			if (errorlog)
				fprintf(errorlog,"%04x: (ccount) write %02x\n",cpu_get_pc(), data);
			sprintf(baf,"ccnt = %02x", data);
	//		usrintf_showmessage(baf);
		}*/
	} }