public static WriteHandlerPtr eeprom_w = new WriteHandlerPtr() { public void handler(int offset, int data)
	{
	if (errorlog!=null) fprintf(errorlog,"%06x: write %04x to 108000\n",cpu_get_pc(),data);
		if ((data & 0x00ff0000) == 0)
		{
			/* bit 0 = coin counter */
			coin_counter_w.handler(0,data & 0x01);
	
			/* bit 2 is data */
			/* bit 3 is clock (active high) */
			/* bit 4 is cs (active low) */
			EEPROM_write_bit(data & 0x04);
			EEPROM_set_cs_line((data & 0x10)!=0 ? CLEAR_LINE : ASSERT_LINE);
			EEPROM_set_clock_line((data & 0x08)!=0 ? ASSERT_LINE : CLEAR_LINE);
		}
		else
		{
			/* bit 8 = enable sprite ROM reading */
			K053246_set_OBJCHA_line((data & 0x0100)!=0 ? ASSERT_LINE : CLEAR_LINE);
			/* bit 9 = enable char ROM reading through the video RAM */
			K052109_set_RMRD_line((data & 0x0200)!=0 ? ASSERT_LINE : CLEAR_LINE);
		}
	} }