using System; public class Test { public static void Main() { byte p = 0xAA; ushort n = 0x55; Console.WriteLine("0x{0:X2}", p); Console.WriteLine("0x{0:X2}", n); // первые два бита p&=0x03; // Эти два бита приделываешь 8 и 9 битом в n n |= (ushort)(p<<8); Console.WriteLine("0x{0:X4}", n); } }