Method : 1's complement subtraction steps : 1. At first, find 1's complement of the B(subtrahend).
2. Then add it to the A(minuend).
3. If the final carry over of the sum is 1, then it is dropped and 1 is added to the result.
4. If there is no carry over, then 1's complement of the sum is the final result and it is negative.
1. Find Subtraction of 110 and 101 using 1's complementSolution:1's complement subtraction steps :
1. At first, find 1's complement of the B(subtrahend).
2. Then add it to the A(minuend).
3. If the final carry over of the sum is 1, then it is dropped and 1 is added to the result.
4. If there is no carry over, then 1's complement of the sum is the final result and it is negative.
Here A = 110, B = 101.
Find A - B = ? using 1's complement
First find 1's complement of B = 101
Note : 1's complement of a number is obtained by subtracting all bits from 111
Step-1: 1's complement of 101 is obtained by subtracting each digit from 111
Step-2: Now Add this 010 to 110
Step by step solution of 110 + 010 = 1000
Write the numbers, so that each digit lines up vertically
Step-1 :
`=0_2+0_2`
`=0_10+0_10`
`=0_10`
`=0_2`
Write the 0 in the sum place
Step-2 :
`=1_2+1_2`
`=1_10+1_10`
`=2_10`
`=2xx1+0`
`=10_2`
Write the 0 in the sum place and carry the 1 to the next carry place
Step-3 :
`=1+1_2+0_2`
`=1+1_10+0_10`
`=2_10`
`=2xx1+0`
`=10_2`
Write the 10 in the sum place
The left most bit (1) of the result (1000) is called carry and add it to the rest part of the result (000)
So answer is 001
This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then