Number systems and data representation
Computer Organization and Architecture · Engineering
Study notes
Represent -5 in 8-bit 2's complement: 5 = 00000101, invert = 11111010, add 1 = 11111011. Add 5 + (-5): 00000101 + 11111011 = 1 00000000; discard carry: 0. Subtraction becomes addition: hardware needs only an adder. Range: -128 to 127.