public static ReadHandlerPtr timer_r = new ReadHandlerPtr() { public int handler(int offset)
	{
		int res;
	
	
		int coinflip = read_4990_testbit();
		int databit = read_4990_databit();
	
	//	if (errorlog) fprintf(errorlog,"CPU %04x - Read timer\n",cpu_get_pc());
	
		res = readinputport(4) ^ (coinflip << 6) ^ (databit << 7);
	
		if (Machine.sample_rate!=0)
		{
			res |= result_code << 8;
			if (pending_command!=0) res &= 0x7fff;
		}
		else
			res |= 0x0100;
	
		return res;
	} }