Binary Arithmetic
Add or subtract binary numbers, and encode an integer in two's complement.
8-bit two's complement11111011
Signed-5
Unsigned reading251
Two's complement of a negative integer is the bit pattern of 2ⁿ + value. Invert the bits of the positive magnitude and add 1. Example: −5 in 8 bits is 11111011.