computer architecture 1 Add the following numbers using sign
computer architecture
Solution
1) 8 +(-14)
8 is positive number and binary represenation is 1000
-14 is negative number and to represent it using two\' s complement
first get the binary represenation of 14 which 1110
now take its one\'s complement which is inversion of bits i.e 0001
now add 1 to it 0001+1 which becomes 0010
Now add binary of 8 + binary of -14
1000 + 0010
1010 (this is two complement representation of -6)
b) -10 + 12
Binary of -10 is 0110 (by two\'s complement as explained in first part)
Binary of 12 - 1100
Now add these 0110 + 1100
0010 (which is binary representation of 2)
