1 xor 1 = 0 1 xor 0 = 1 0 xor 1 = 1 0 xor 0 = 0 1 or 1 = 1 1 or 0 = 1 0 or 1 = 1 0 or 0 = 0 1 and 1 = 1 1 and 0 = 0 0 and 1 = 0 0 and 0 = 0 bx 1010 1010 x 1000 1010 and 1000 1010 bx 1010 1010 x 1000 1010 or 1010 1010 bx 1010 1010 x 1000 1010 xor 0010 0000