SECTION I-9: Addition of Binary and Hex Numbers

The Addition of Binary is a very straightforward process as demonstrated below showing the addition of two bits.

Binary Addition
A + B Carry Sum
0 + 0 0 0
0 + 1 0 1
1 + 0 0 1
1 + 1 1 0

 

The discussion of subtraction of binary numbers is bypassed since all computers use the addition process to implement subtraction. Although computers have adder circuitry, there is no separate circuitry subtracters. Instead, adders are used in conjunction with 2's complement circuitry to perform subtraction. To implement " x - y " , the computer takes the 2's complement of 'y' and adds it to ''x'. Below example demonstrated the addition of Binary numbers.

 

Add Binary numbers 1101 and 1001. Check against their decimal equivalents
Binary Decimal
    1101 13
+  1001 9
  10110 22

 

More From Iamtechnical.com

Advertisement: