Professional Documents
Culture Documents
SAMBHAV SAXENA
CSE-B
20001001100
BINARY ADDITION
110
(+)100
————-
1010
------------
Binary Addition Table
X Y X+Y
0 0 0
0 1 1
1 0 1
You can see from the above table, x and y are the two
binary numbers. So, when we give the input for X = 0
and Y= 0, then the output is equal to 0.
0–0 0
1–0 1
1–1 0
1010
(-) 1 0 1
——————
1
• Step 3: So, subtract the value in the 10’s place
(0 – 0) = 0.
1 Borrow
1010
(-) 1 0 1
——————
01
• Step 4: Now subtract the values in 100’s place.
Borrow 1 from the 1000’s place (0 – 1) = 1.
1 1 Borrow
1010
(-) 1 0 1
——————
0101
Procedures:
• Write the 1’s complement of the subtrahend.
• Then add the 1’s complement subtrahend with the
minuend.
• If the result has a carryover, then add that carry
over in the least significant bit.
• If there is no carryover, then take the 1’s
complement of the resultant, and it is negative.
Binary Multiplication
0-1=1
0+1=1 0÷1=0
(1 is borrowed)
1+1=0
1-1=0
(1 is carry forwarded)