UNDERSTAND HOW TO ADD BINARY NUMBERS UNDERSTAND HOW

UNDERSTAND HOW TO ADD BINARY NUMBERS UNDERSTAND HOW TO SUBTRACT BINARY NUMBERS BINARY SUBTRACTION BINARY ADDITION R U L E S 0+0 0+1 1+0 1+1 =0 =1 =1 = 0 carry 1 0 -0=0 0 - 1 = 1 and borrow 1 from the next most significant bit 1 -0=1 1 -1=0 2 1 10 +0 1 11 1011 +0110 10001 01011 +1 0 1 10001 11 - 10 0 8 4 2 1 6 8 4 2 1 4 2 8 4 2 1 101 -1 01 1 10001 - 00011 01110

BINARY ADDITION EXAMPLE: INSTRUCTIONS STEP - 1 Write the two binary numbers. write one number in the top to the another number. The alignment should be properly made. STEP - 2 Start from the right side. Then add the two numbers. STEP - 3 If [RULE 1+ 1 = 0] carry 1 then it must be added to the next digit numbers. STEP - 4 0110 + 1101 S T E P 1 : Write the given binary number one over the another S T E P 2 : Start from right side. S T E P 3 : By using the rules add the two numbers Use binary addition rules S T E P 4 : Add the next two numbers 256 =0 =1 =1 = 0 carry 1 128 64 32 16 8 4 2 1 0 1101 1 1 ( Rule: 1 + 0 = 1 ) S T E P 5 : Add the next two numbers S T E P 6 : Add the next two numbers Answer: 1 0 0 1 1 0110 1101 1 ( Rule : 0 + 1 = 1 ) R U L E S 0+0 0+1 1+0 1+1 0110 1101 0 1 1 ( Rule: 1 + 1 = 0 + carry 1 ) 0110 1101 1 0 0 1 1 ( Rule: 1 + 1 = 0 + carry 1 )

BINARY SUBTRACTION EXAMPLE INSTRUCTIONS STEP - 1 Write the two binary numbers. write one number in the top to the another number. The alignment should be properly made. S T E P 1 : Solve : 1 1 0 1 - 0 1 1 1 0 1 0111 = STEP - 2 Start from the right side. Then the subtract the two numbers. S T E P 2 : Start from right side. STEP - 3 Borrow one if you encounter [RULE 0 – 1] borrow from the most significant bit. STEP - 4 4 2 2 1 1 0 0 1 S T E P 3 : By using the rules subtract the two numbers 1101 0111 0 ( RULE : 1 - 1 = 0 ) S T E P 4 : Subtract next number 1 1 0111 1 0 ( RULE: 0 – 1 Borrow 1 from most significant bit now is 1 -1 = 0 then 1 -0 = 1) 0 BORROWS 1 OVER Use binary subtraction rules R U L E S 0 -0=0 0 - 1 = 1 and borrow 1 from the next most significant bit 1 -0=1 1 -1=0 256 128 64 32 16 8 4 2 1 S T E P 4 : Subtract next number 1 1 0111 1 1 0 ( Rule: 0 – 1 Borrow 1 from most significant bit now is 1 -1 = 0 then 1 -0 = 1) S T E P 5 : Subtract next number 1 1 0111 0 1 1 0 ( Rule: 0 - 0 = 0 ) Answer: 0 1 1 0
- Slides: 3