To find the representation of a negative integer B,
complement the bits of the representation of B, and add 1,
where
complement: if (bit = 0) then bit <- 1 else bit <- 0
3310 is 0010 00012
-3310 is 1101 11102
+1
--------------------------
1101 1111
--------------------------
-1 is 1111 1111
-2 is 1111 1110
-3 is 1111 1101
::
::
-128 is 1000 0000
127 is 0111 1111
::
::
2 is 0000 0010
1 is 0000 0001
0 is 0000 0000
![[Prev]](prev.gif)
![[TOC]](TOC.gif)
CS1104 Main Page
Last Updated 09/21/2000
© L.Heath, 2000