Twos Complement Examples
-5 = % 11111011 = $ FB+5 = % 00000101 = $ 05+127 = % 01111111 = $ 7F -127 = % 10000001 = $ 81-128 = % 10000000 = $80 (note the extended range!)+ 0 = % 00000000 = $ 00 - 0 = % 00000000 = $ 00 (only 1 zero!!!)
For 8 bits, can represent the signed integers -128 to +127.
For N bits, can represent the signed integers
Note that negative range extends one more than positive range.