0% found this document useful (0 votes)
98 views2 pages

Case: Here Carry Is 1. So Drop It and Add 1 To The Result

Binary subtraction can be performed using either 1's complement or 2's complement methods. For 1's complement subtraction: (1) take the 1's complement of the number to be subtracted, (2) add the 1's complement to the other number, and (3) if there is a carry, add 1 to the result. For 2's complement subtraction: (1) take the 2's complement of the number to be subtracted, (2) add the 2's complement to the other number, and (3) a carry indicates a positive result, no carry indicates a negative result.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
98 views2 pages

Case: Here Carry Is 1. So Drop It and Add 1 To The Result

Binary subtraction can be performed using either 1's complement or 2's complement methods. For 1's complement subtraction: (1) take the 1's complement of the number to be subtracted, (2) add the 1's complement to the other number, and (3) if there is a carry, add 1 to the result. For 2's complement subtraction: (1) take the 2's complement of the number to be subtracted, (2) add the 2's complement to the other number, and (3) a carry indicates a positive result, no carry indicates a negative result.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Binary Addition and subtraction

Subtraction: (Using 1’s complement)


Steps:

Step 1: Convert number to be subtracted to its 1’s complement.


Step 2: Perform the Addition.
Step 3:  If the final carry is 1 then add it to the result obtained in step2.
 If final carry is 0, result obtained in step 2 is negative and in the 1’s complemented form.

1)) 1101012 -1001012


Steps 1: find 1’s complement of 2nd N0.
100101  1’s comp  011010
Step 2: add to 1st N0.
110101 + 011010 = 1001111
Case : here carry is 1. So Drop it and add 1 to the result:
001111 + 1 = 01000 This is answer.
Check: first No. : 1101012 = 5310
Second No.: 1001012 = +3710
So, 53 -37 =16 which is 010002

Example: 2)) 101011 2 -111012


Steps 1: find 1’s complement of 2nd N0.
111001 2  1’s comp  000110
Step 2: add to 1st N0.
101011 2 + 000102 = 1100012
Case: here NO CARRY appears. So Find the 1’s complement.
1100012  1’s comp  001110
This number is negative number.
Check:
First No:. 1010112  4310
Second No:. 1110012  5710
So, 4310 – 5710 = - 1410
https://www.youtube.com/watch?v=xVN7kMSfFNY
https://www.youtube.com/watch?v=_7RK3rsfQ8w

Subtraction using 2’s complement:


Step 1: Find 2’s complement of number to be subtracted.
Step 2: Perform the addition.
Step 3:  If final carry is generated then the result is positive and in its true form.
If final carry is not produced, then the result is negative and its 2’s complement form.

Example 1)) 1101102 – 0101102


Steps 1: find 2’s complement of 2nd N0.
 0101102 1’s complement  101001
 Now add 1 to get 2’s complement: 101001 + 1 =101010
Step 2 :

You might also like