SlideShare a Scribd company logo
LECTURE - 3
• Binary Addition
• Binary Subtraction
• Complements
• 1’s Complement
• 2’s Complement
• Subtraction Using Complements
BASIC OPERATIONS
• ADDITION
• SUBTRACTION
• MULTIPLICATION
• DIVISION
COMPUTER OPERATIONS
• BINARY ADDITION
• BINARY SUBTRACTION
THE FIRST COMPUTER
• Covered a whole Room
• Separate Functions for Adding,
Subtracting, Multiplication and Division
ELIMINATION OF OPERATIONS
• MULTIPLICATION and DIVISION were eliminated
• MULTIPLICATION :
repeated addition
(2 x 4 = 8) , (2+ 2+ 2 + 2 = 8)
• DIVISION :
repeated subtractions
TODAY’S COMPUTER
• Computations
• Addition – (ADDERS)
• Subtraction – (SUBTRACTORS)
BINARY ADDITION
LOGIC:
0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 0 (1 Carry)
EXAMPLE
1 0 0 1 1 0
+ 1 1 0 1 0 1
1 0 1 1 0 1 1
Carry
BINARY SUBTRACTION
LOGIC:
0 - 0 = 0
0 - 1 = 1 ( Borrow 1)
1 - 0 = 1
1 - 1 = 0
EXAMPLE
1 1 0 1 0 1
- 0 1 1 0 1 0
0 1 1 0 1 1
COMPLEMENTS
2 types:
• 1’s Complement
• 2’s Complement
1’S COMPLEMENT
PROCEDURE
• Change every 0 to 1 and every 1 to 0
EXAMPLE
Find 1’s Complement of:
( 1 1 0 0 1 0 1 0 )2
2’S COMPLEMENT
PROCEDURE
1. Find 1’s Complement:
Change every 0 to 1 and every 1 to 0
2. Add 1 to L.S.B
EXAMPLE
Find 2’s Complement of :
( 1 1 0 1 0 1 0 )2
SOLUTION : ( 1 1 0 1 0 1 0 )2
STEP 1
0 0 1 0 1 0 1
STEP 2
0 0 1 0 1 0 1
+ 1
0 0 1 0 1 1 0
LSB
SUBTRACTION USING COMPLEMENTS
SUBTRACTION
• MINUEND (1st value)
• SUBTRAHEND (2nd value)
SUBTRACTION USING 1’S
COMPLEMENT
STEP 1
Take 1’s Complement of Subtrahend
STEP 2
Add the result to Minuend
STEP 3
Look for end Carry.
END CARRY
• If Carry Exists:
Add the carry to LSB of result
• If NO Carry:
Take 1’s complement of result
again and
place a –ve sign
EXAMPLE
Subtract: ( 1 1 0 1 0 1 1 - 1 0 1 1 0 1 )2
SOLUTION
Minuend: 1 1 0 1 0 1 1
Subtrahend: 0 1 0 1 1 0 1
STEP 1 1’s Complement of Subtrahend
1 0 1 0 0 1 0
STEP 2 Add to Minuend
STEP 3 Add end carry to LSB of result.
SUBTRACTION USING 2’S
COMPLEMENT
• STEP 1
Take 2’s Complement of Subtrahend
• STEP 2
Add the result to Minuend
• STEP 3
Look for end Carry.
END CARRY
• If Carry Exists:
Drop it
• If NO Carry:
• Take 2’s complement of result again and
• place a –ve sign
EXAMPLE
Subtract: ( 1 1 0 1 0 1 1 - 1 0 1 1 0 1 )2
ADVANTAGE OF COMPLEMENTS
• It Converts Subtraction Process to Addition
• Thus, the need for a Subtractor is Eliminated

More Related Content

PPT
1's and 2's Complements
PPTX
Arithmetic micro operations
PPTX
Arithmetic micro operations
PPTX
Logical and shift micro operations
PPTX
B.sc cs-ii-u-1.3 digital logic circuits, digital component
PPTX
Bca 2nd sem-u-1.3 digital logic circuits, digital component
PPTX
Logical micro-operations
PPS
Arithmetic Operations
1's and 2's Complements
Arithmetic micro operations
Arithmetic micro operations
Logical and shift micro operations
B.sc cs-ii-u-1.3 digital logic circuits, digital component
Bca 2nd sem-u-1.3 digital logic circuits, digital component
Logical micro-operations
Arithmetic Operations

What's hot (20)

PPTX
Binary to Decimal Conversion
PDF
Complement
PDF
Integer represention
PPTX
Octal COnversion
PPTX
Hexadecimal Conversion
PPTX
Lecture 3 time complexity
PDF
Dld lecture module 02
PPTX
Decimal to Binary Conversion
PPT
computer arithmatic
PPTX
Microoperations
PPT
09 arithmetic
PDF
8th alg -l9.1
PDF
Logic microoperations
PDF
Shift micro operations & 4 bit combinational circuit shifter
PPTX
Multiplication algorithm, hardware and flowchart
PPTX
Sequential multiplication
PPT
Number system
PPTX
Multiplication algorithm
PPT
09 arithmetic
PPT
compliments
Binary to Decimal Conversion
Complement
Integer represention
Octal COnversion
Hexadecimal Conversion
Lecture 3 time complexity
Dld lecture module 02
Decimal to Binary Conversion
computer arithmatic
Microoperations
09 arithmetic
8th alg -l9.1
Logic microoperations
Shift micro operations & 4 bit combinational circuit shifter
Multiplication algorithm, hardware and flowchart
Sequential multiplication
Number system
Multiplication algorithm
09 arithmetic
compliments
Ad

Similar to Boolean operators (20)

PPTX
L3 ARITHMETIC OPERATIONS.pptx
PPT
1’s and 2’s complements
PDF
unit-2_DL.pdf
PPTX
Arithmetic Logic
PDF
FYBSC IT Digital Electronics Unit I Chapter II Number System and Binary Arith...
PPTX
Binary Operations: The Foundation of Mathematics.pptx
PPT
binary arithmetic rules
PPTX
Number system
PPT
Unit-1 Chap-2.ppt( binary arithmetic bscit)
PDF
complement methods.pdf foto djhdfhkfdhkjhn sjsjknmcf
PPT
105_2_digitalSystem_Chap_3_part_3.ppt
PPTX
Arithmetic logic units
PPT
558196807-1-s-and-2-s-complement-Lecture-3.ppt
PPTX
Binary-Arithmeticcccccccccccccccccc.pptx
PPTX
CA UNIT II.pptx
PPTX
1’s_and_2’s_Complements.pptx electronic notes
PPTX
1’s_and_2’s_Complements.pptx electronic note
DOC
Digital 1
DOC
Kasthuri i bca
PPTX
Signed Addition And Subtraction
L3 ARITHMETIC OPERATIONS.pptx
1’s and 2’s complements
unit-2_DL.pdf
Arithmetic Logic
FYBSC IT Digital Electronics Unit I Chapter II Number System and Binary Arith...
Binary Operations: The Foundation of Mathematics.pptx
binary arithmetic rules
Number system
Unit-1 Chap-2.ppt( binary arithmetic bscit)
complement methods.pdf foto djhdfhkfdhkjhn sjsjknmcf
105_2_digitalSystem_Chap_3_part_3.ppt
Arithmetic logic units
558196807-1-s-and-2-s-complement-Lecture-3.ppt
Binary-Arithmeticcccccccccccccccccc.pptx
CA UNIT II.pptx
1’s_and_2’s_Complements.pptx electronic notes
1’s_and_2’s_Complements.pptx electronic note
Digital 1
Kasthuri i bca
Signed Addition And Subtraction
Ad

More from ZareenRauf1 (13)

PPTX
Communication system lec 8
PPTX
Communication system lec7
PPTX
Communication system lec6
PPTX
Communication system lec5
PPTX
communication system lec4
PPTX
communication system lec3
PPTX
communication system lec2
PPTX
Communication system
PPT
Boolean algebra and logic gates
PPT
Binary codes
PPT
Boolean functions
PPT
Lecture 2
PPT
Lecture 1
Communication system lec 8
Communication system lec7
Communication system lec6
Communication system lec5
communication system lec4
communication system lec3
communication system lec2
Communication system
Boolean algebra and logic gates
Binary codes
Boolean functions
Lecture 2
Lecture 1

Recently uploaded (20)

PDF
PPT on Performance Review to get promotions
PPTX
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
introduction to high performance computing
PPTX
Information Storage and Retrieval Techniques Unit III
PDF
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
PPTX
UNIT - 3 Total quality Management .pptx
PPT
Occupational Health and Safety Management System
PDF
Abrasive, erosive and cavitation wear.pdf
PPTX
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
PDF
Exploratory_Data_Analysis_Fundamentals.pdf
PDF
Integrating Fractal Dimension and Time Series Analysis for Optimized Hyperspe...
PDF
Visual Aids for Exploratory Data Analysis.pdf
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
III.4.1.2_The_Space_Environment.p pdffdf
PPT
introduction to datamining and warehousing
PDF
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
PPT on Performance Review to get promotions
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
introduction to high performance computing
Information Storage and Retrieval Techniques Unit III
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
UNIT - 3 Total quality Management .pptx
Occupational Health and Safety Management System
Abrasive, erosive and cavitation wear.pdf
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
Exploratory_Data_Analysis_Fundamentals.pdf
Integrating Fractal Dimension and Time Series Analysis for Optimized Hyperspe...
Visual Aids for Exploratory Data Analysis.pdf
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
III.4.1.2_The_Space_Environment.p pdffdf
introduction to datamining and warehousing
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf

Boolean operators