3 is 0011
Flip the bits 1100
Add 1 1101
1101 is -3
7 is 0111
flip the bits 1000
Add 1 1001
1001 is negative 7.
What is 1001 It starts with a 1 so it is negative. flip the bits 0110 Add 1 0111 This is 7, so 1001 is -7
It starts with a 1, so it is negative. Flip the bits 0000 Add 1 0001 = 1 So 1111 is -1
It starts with a 1 so it is negative. Flip the bits 1111 Add 1 1000 It is the same thing? This is defined to be -8.
0011 is 3.
0010 is 2,
0010 -> 1101 -> 1110
so 1110 is -2
0011
+1110
----
1|0001
-3 0011 -> 1100 -> 1101
2: 0010
1101
+0010
-----
0|1111
But what is 1111? It is negative
Flip the bits 0000
Add 1 0001
so 1111 is -1 (but we did that above)
0100
0101
----
1001