private static short Movs3(short intX1, short intX2, short intδ) { short num = (short)((intX1 + intX2 + intδ) % 8); checked { short num2 = (short)(num / 2 + num % 2 * 4); return (short)(num2 / 2 + num2 % 2 * 4); } } #endregion