public static WriteHandlerPtr neo_irq2pos_w = new WriteHandlerPtr() { public void handler(int offset, int data)
	{
		
		int line;
	
		if (offset!=0)
		{
			value_irq2pos = (value_irq2pos & 0xffff0000) | data;
			if (neogeo_irq2type!=0) return;
		}
		else
		{
			value_irq2pos = (value_irq2pos & 0x0000ffff) | (data << 16);
			if (neogeo_irq2type==0) return;
		}
	
		line = value_irq2pos / 0x180 + 1;
		if (line <= irq2repeat_limit) irq2repeat = line;
		/* ugly kludge to align irq2start in all games */
		else irq2start = line + (neogeo_irq2type);
	} }