Method : 16's complement subtraction steps : 1. At first, find 16'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 the result is positive.
4. If there is no carry over, then 16's complement of the sum is the final result and it is negative.
1. Find Subtraction of 1B06 and 77C using 16's complementSolution:16's complement subtraction steps :
1. At first, find 16'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 the result is positive.
4. If there is no carry over, then 16's complement of the sum is the final result and it is negative.
Here A = 1B06, B = 077C.
Find A - B = ? using 16's complement
First find 16's complement of B = 077C
Note : 16's complement of a number is 1 added to it's 15's complement number.
Step-1: 15's complement of 077C is obtained by subtracting each digit from F
Step-2: Now add 1 :
F883 + 1 = F884
Step-3: Now Add this F884 to 1B06
Step by step solution of 1B06 + F884 = 1138A
Write the numbers, so that each digit lines up vertically
Step-1 :
`=6_16+4_16`
`=6_10+4_10`
`=10_10`
`=A_16`
Write the A in the sum place
Step-2 :
`=0_16+8_16`
`=0_10+8_10`
`=8_10`
`=8_16`
Write the 8 in the sum place
Step-3 :
`=B_16+8_16`
`=11_10+8_10`
`=19_10`
`=16xx1+3`
`=13_16`
Write the 3 in the sum place and carry the 1 to the next carry place
Step-4 :
`=1+1_16+F_16`
`=1+1_10+15_10`
`=17_10`
`=16xx1+1`
`=11_16`
Write the 11 in the sum place
The left most bit of the result (1138A) is 1, called carry and it is ignored.
So answer is 138A
This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then