public static void makeMaskR()
	{
		int sq;
		for (sq = 0; sq < 64; ++sq)
		{
			maskR[sq] = 0;
			int i;
			for ( i = sq - 8; i >= 0; i -= 8 )
				maskR[sq] |= 1L << i;
			for ( i = sq - 1; i >= 0 && (i & 7) != 7; --i )
				maskR[sq] |= 1L << i;
			for ( i = sq + 1; i < 64 && (i & 7) != 0; ++i )
				maskR[sq] |= 1L << i;
			for ( i = sq + 8; i < 64; i += 8 )
				maskR[sq] |= 1L << i;
		}
	}