CH 4
CH 4
Bulb
Switch
Circuit
Pulse
Binary Arithmetic
0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 0 plus a carry of 1 to next higher column
Binary Addition (Example 1)
Example
Add binary numbers 10011 and 1001 in both decimal and
binary form
Solution
Binary Decimal
carry 11 carry 1
10011 19
+1001 +9
11100 28
In this example, carry are generated for first and second columns
Binary Addition (Example 2)
Example
Solution
The addition of three 1s
Binary Decimal can be broken up into two
steps. First, we add only
carry 11111 carry 1 two 1s giving 10 (1 + 1 =
10). The third 1 is now
added to this result to
100111 39
obtain 11 (a 1 sum with a 1
+11011 +27 carry). Hence, 1 + 1 + 1 =
1, plus a carry of 1 to next
1000010 66 higher column.
Binary Subtraction
0 - 0 = 0
0 - 1 = 1 with a borrow from the next column
1 - 0 = 1
1 - 1 = 0
Binary Subtraction (Example)
Example
Solution
12
0202
10101
-01110
00111
Number of digits
in the number
C = Bn - 1 - N
Example
Solution
Example
Find the complement of 68
Solution
Since the number has 1 digit and the value of
base is 8,
(Base)n - 1 = 81 - 1 = 710 = 78
Now 78 - 68 = 18
Hence, complement of 68 = 18
Complement of a Binary Number
Example
Complement of 1 0 1 1 0 1 0 is
0 1 0 0 1 0 1
Example:
Subtract 5610 from 9210 using complementary method.
Solution
Step 1: Complement of 5610
= 102 - 1 - 56 = 99 – 56 = 4310 The result may be
verified using the
Step 2: 92 + 43 (complement of 56) method of normal
= 135 (note 1 as carry) subtraction:
Result = 36
Complementary Subtraction (Example 2)
Example
Subtract 3510 from 1810 using complementary method.
Solution
18 - 35 = -17
Binary Subtraction Using Complementary Method
(Example 1)
Example
Subtract 01110002 (5610) from 10111002 (9210) using
complementary method.
Solution
1011100
+1000111 (complement of 0111000)
10100011
0100100
Example
Subtract 1000112 (3510) from 0100102 (1810) using
complementary method.
Solution
010010
+011100 (complement of 100011)
101110
0x0=0
0x1=0
1x0=0
1x1=1
Binary Multiplication (Example 1)
Example
Solution
1010 Multiplicand
x1001 Multiplier
1010 x1001
1010
1010SS (S = left shift)
1011010
Binary Division
Example
Example
4 x 8 = 8 + 8 + 8 + 8 = 32
Rules for Additive Method of Division
Example
Divide 3310 by 610 using the method of addition
Solution:
33 - 6 = 27
27 - 6 = 21 Since the result of the last
21 - 6 = 15 subtraction is less than zero,
15 - 6 = 9
9-6= 3 Quotient = 6 - 1 (ignore last
3 - 6 = -3 subtraction) = 5