1 Perform the following 4bit signed operations For each indi
1. Perform the following 4-bit signed operations. For each, indicate the 4-bit result and indicate if there is an overflow or not.
a. 5 + 2
b. 6 + 4
c. -3 + -2
d. -4 + -5
e. 3 – 4
f. -2 – (-7)
Solution
operation result 4 bit result(negetive value are given in 2\'s compliment) overflow a 5+2 7 0111 no b 6+4 10 1010 yes c -3+ -2 -5 1011 no d -4 + -5 -9 0111 yes e 3-4 -1 1111 no f -2 - (-7) 5 0101 no