../ home
unfiled / 8 bits
(a ^ b) + 2 * (a & b) == a + b
Two unsigned bytes
a
b
a 00100101 37 b 00010011 19 xor 00110110 54 carry 00000010 2 sum 00111000 56
Arithmetic modulo 256. Carry beyond bit 7 is discarded.