Information Representation
Computer Arithmetic - Binary Adddition


The basic rules for binary addition are shown below.
0 1 1
+ 0 + 0 + 1
0 1 10

(10 in binary = 2 in decimal)

To add two bytes (two 8 bit numbers) the individual bits of each byte are added and any carry bits generated are added in the same way as a carry operation in decimal arithmetic.

Example: To add the decimal numbers 29 and 7 we convert them to binary and add the bits following the rules above:

29 00011101
+7 00000111
36 00100100