Need Help with binary addition. The following needs to be added 16-bits at a time. the result should then be converted to 1s complement.
10011001 00010010
00001000 01101001
10101011 00000010
00001110 00001010
00000000 00010001
00000000 00001111
00000100 00111111
00000000 00001101
00000000 00001111
00000000 00000000
01010100 01000101
01010011 01010100
01001001 01001110
+01000111 00000000
10011001 00010010 00001000 01101001 10101011 00000010 00001110 00001010 00000000 00010001 00000000 00001111 00000100 00111111 00000000 00001101 00000000 00001111 00000000 00000000 01010100 01000101 01010011 01010100 01001001 01001110 + 01000111 00000000 -------------------- 10 10010110 11101001
As you can see the addition of all 14 binary numbers is an 18-bit binary number i.e. there is an overflow.
Since we're dealing with only 16-bit binary numbers, therefore, we need to exclude two MSBs(Most Significant Bits).
So our result becomes
10010110 11101001
1's complement of 10010110 11101001 = 01101001 00010110
Need Help with binary addition. The following needs to be added 16-bits at a time. the...