



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Example 2.6. 3 (subtraction from a negative) 1100 (-3) +1101 (-2) (1) 1001 (-6?) The solution is to wrap the carry back in to the LSB. Exercise 2.6. 4 Can you explain why this works?
The Arithmetic operations are perhaps easiest in 2’s complement.
value Sign Offset 2’s Magnitude Binary complement +7 0111 1111 0111 +6 0110 1110 0110 +5 0101 1101 0101 +4 0100 1100 0100 +3 0011 1011 0011 +2 0010 1010 0010 +1 0001 1001 0001 0 0000 1000 0000 -1 1001 0111 1111 -2 1010 0110 1110 -3 1011 0101 1101 -4 1100 0100 1100 -5 1101 0011 1011 -6 1110 0010 1010 -7 1111 0001 1001 -8 - 0000 1000 -0 1000 - -