18:02 -
Digital system
Perform binary subtraction a) (10110)2 – (11000)2 b) (110110)2 – (111010)2 c) (00100)2 – (100100)2 d) (11110)2 – (00100)2 e) (11111)2 – (110011)2
a) Using
1’s Complement method (because subtrahend is larger)
10110(2)
+00111(2) (1’s complement of 11000)
|
11101(2) Answer is negative and
is in 1’s complement form
|
-00010(2) Answer
|
b) Using
1’s Complement method (because subtrahend is larger)
110110(2)
+000101(2) (1’s complement of 111010)
|
111011(2) Answer is negative and
is in 1’s complement form
|
-000100(2) Answer
|
c) Using
1’s Complement method (because subtrahend is larger)
00100(2)
+011011(2) (1’s complement of 100100)
|
011111(2) Answer
is negative and is in 1’s complement form
|
-100000(2) Answer
|
d) Simple
method (because subtrahend is smaller)
11110(2)
-
00100(2)
|
11010(2) Answer
|
e) Using
1’s Complement method (because subtrahend is larger)
11111(2)
+001100(2) (1’s complement of 110011)
|
101011(2) Answer is negative and
is in 1’s complement form
|
-010100(2) Answer
|