Professional Documents
Culture Documents
BINARY ADDITION O Level 7-5-2020 PDF
BINARY ADDITION O Level 7-5-2020 PDF
Rules
0+1= 1
1+0= 1
0+0= 0
1 + 1 = 0 carry 1
1 + 1 + 1 = 1 carry 1
10 0 1 0 1
+1 0 0 0 1 0
-------------------------
10 0 0 1 1 1
------------------------
(e) 100100+101101
1 0 0 1 0 0
+ 1 0 1 1 0 1
1 0 1 0 0 0 1
(11000000)
BINARY SUBTRACTION
Rules –
1) Get complement of the
number subtracting
2) Add result of step 1 to the
number subtracting from
3) If there is one carry then add
carry to result otherwise re-
complement the sum and put
minus sign before result
0 1 0 0 0 1
1 1 1 0 0 1
0 0 1 0 1 0
1
0 0 1 0 1 1
=(1011)2
0 1 1 1 1
1 0 0 1 1
0 0 0 1 0
1
0 0 0 1 1
(11)2
(d) 100111-100010
(e) 111100-110011
0 0 0 1
1 0 0 0
1 0 0 1
-0110 = (-110)2
0 0 0 0 1
1 0 1 1 0
1 0 1 1 1
=(-01000) = (-1000)2