SlideShare a Scribd company logo
5
Most read
6
Most read
7
Most read
ADD instructions
Part #1
University of Duhok,
Computer Science Dept.
ADD instruction
The ADD instruction has the following format:
ADD destination,source
The ADD instruction tells the CPU to add the source and the
destination operands and put the result in the destination.
Destination = Destination + Source
• The destination operand can be a register or a memory location.
• The source operand can be an immediate, a register, or a memory
location.
By: Jawaher A. Fadhil Computer Science Dept.
• Two memory operands cannot be used in one instruction.
• When an immediate value is used as an operand, it is sign-
extended to the length of the destination operand format.
ADD AL,1355H
ADD instruction
ADD [500],[502]
By: Jawaher A. Fadhil Computer Science Dept.
Example#1
To add two numbers such as 25H and 34H, each can be
moved to a register and then added together:
MOV AL,25h
MOV BL,34h
ADD AL,BL AL= 25H +34H
AL=59H BL=34H
By: Jawaher A. Fadhil Computer Science Dept.
Example#2
Write the Assembly language instructions to add the values
6BH and A8H. Place the result in register AX?
MOV AX,0000
MOV AL,6BH
ADD AL,A8
By: Jawaher A. Fadhil Computer Science Dept.
AL=AL+A8
6 B
+
A 8
HEX
0
1
2
.
.
9
A
B
C
D
E
F
10
11
12
13
14
15
16
3
1
1 1
AX= 00 13CF= 1
Add instruction-part1
Example#2
Write the Assembly language instructions to add the values
6BH and A8H. Place the result in register AX?
MOV AX,0000
MOV AL,6BH
ADD AX,A8
By: Jawaher A. Fadhil Computer Science Dept.
AX=AL+A8
6 B
+
A 8
3
1
1 1
AX= 01 13
CF= 0
By: Jawaher A. Fadhil Computer Science Dept.
Add instruction-part1

More Related Content

PPT
Data representation moris mano ch 03
PPTX
Assembly Language and microprocessor
PPTX
Input Output Organization
PPTX
Combinational circuit
DOCX
Conversion from infix to prefix using stack
PPTX
Clock divider by 3
PPTX
Programmable peripheral interface 8255
PPTX
bus and memory tranfer (computer organaization)
Data representation moris mano ch 03
Assembly Language and microprocessor
Input Output Organization
Combinational circuit
Conversion from infix to prefix using stack
Clock divider by 3
Programmable peripheral interface 8255
bus and memory tranfer (computer organaization)

What's hot (20)

PPTX
2.2 stack applications Infix to Postfix & Evaluation of Post Fix
PDF
8086 instruction set
PDF
Escape sequences
PPTX
Don't care conditions
PPTX
Chap ii.BCD code,Gray code
PPTX
Computer instruction
PPT
Expression evaluation
PPT
Adder and subtrctor DLD
PPTX
VTU 18CPS13/23 CPPS module-1 PPT
PPT
Number system part 1
PDF
Serial communication in 8085
PPTX
INSTRUCTION CYCLE
PDF
Unit-8-Computer-Arithmetic.pdf
PPTX
MOV instruction part1
PPTX
Adder
PDF
Concepts of Behavioral modelling in Verilog HDL
PPTX
Stack in 8085 microprocessor
PDF
FPGA Verilog Processor Design
PPT
Instruction format
PPT
8255 presentaion.ppt
2.2 stack applications Infix to Postfix & Evaluation of Post Fix
8086 instruction set
Escape sequences
Don't care conditions
Chap ii.BCD code,Gray code
Computer instruction
Expression evaluation
Adder and subtrctor DLD
VTU 18CPS13/23 CPPS module-1 PPT
Number system part 1
Serial communication in 8085
INSTRUCTION CYCLE
Unit-8-Computer-Arithmetic.pdf
MOV instruction part1
Adder
Concepts of Behavioral modelling in Verilog HDL
Stack in 8085 microprocessor
FPGA Verilog Processor Design
Instruction format
8255 presentaion.ppt
Ad

Similar to Add instruction-part1 (20)

DOCX
Different types of Addressing.cao
PDF
Handout#11
PPTX
Basic programming of 8085
PPTX
Memory Reference Instructions
PPTX
Addressing mode & data transfer instruction of 8085
PPTX
ITEC582-Chapter 12.pptx
PDF
MPMC UNIT-2.pdf
PDF
4CS3-MPI-Unit-2.pdf microprocessor and interface
PPT
Assembly Components and other tolls like
PPTX
PPT
Introduction to Assembly language Programming.ppt
PDF
4bit PC report
PDF
4bit pc report[cse 08-section-b2_group-02]
PPTX
Memory reference
PPTX
Instruction Set Architecture
PPTX
module 3 instruction set and control unit
PPTX
CH-3 CO-all-about-operating-system(Update).pptx
PDF
Introduction to Processor Design in System Verilog
PPTX
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Different types of Addressing.cao
Handout#11
Basic programming of 8085
Memory Reference Instructions
Addressing mode & data transfer instruction of 8085
ITEC582-Chapter 12.pptx
MPMC UNIT-2.pdf
4CS3-MPI-Unit-2.pdf microprocessor and interface
Assembly Components and other tolls like
Introduction to Assembly language Programming.ppt
4bit PC report
4bit pc report[cse 08-section-b2_group-02]
Memory reference
Instruction Set Architecture
module 3 instruction set and control unit
CH-3 CO-all-about-operating-system(Update).pptx
Introduction to Processor Design in System Verilog
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Ad

More from Jawaher Abdulwahab Fadhil (20)

PDF
PPT
PPTX
Dealing with 8086 memory
PDF
Cisco webex installation guide
PPTX
A survey on the applications of smart home
PPT
Flag register and add instruction
PDF
Computer Organization -part 1
PPTX
iOS Operating System
PPTX
Android Operating system
PPTX
Types of Mobile Applications
PDF
Ultrasonic with buzzer
PDF
Lecture6 modulation
PDF
Lecture 5: The Convolution Sum
PDF
Lecture 4: Classification of system
PDF
Lecture3: Operations of Ct signals
PDF
Lecture2 : Common continuous time signals
PDF
Lecture1: Introduction to signals
PDF
Arduino- Serial communication
PDF
Arduino based Applications-part 6
PDF
Arduino based Applications-part 5
Dealing with 8086 memory
Cisco webex installation guide
A survey on the applications of smart home
Flag register and add instruction
Computer Organization -part 1
iOS Operating System
Android Operating system
Types of Mobile Applications
Ultrasonic with buzzer
Lecture6 modulation
Lecture 5: The Convolution Sum
Lecture 4: Classification of system
Lecture3: Operations of Ct signals
Lecture2 : Common continuous time signals
Lecture1: Introduction to signals
Arduino- Serial communication
Arduino based Applications-part 6
Arduino based Applications-part 5

Recently uploaded (20)

PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Basic Mud Logging Guide for educational purpose
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Cell Types and Its function , kingdom of life
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
master seminar digital applications in india
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Complications of Minimal Access Surgery at WLH
PDF
RMMM.pdf make it easy to upload and study
PDF
Business Ethics Teaching Materials for college
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
01-Introduction-to-Information-Management.pdf
PDF
Insiders guide to clinical Medicine.pdf
PPTX
Cell Structure & Organelles in detailed.
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
2.FourierTransform-ShortQuestionswithAnswers.pdf
Renaissance Architecture: A Journey from Faith to Humanism
Basic Mud Logging Guide for educational purpose
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Pharma ospi slides which help in ospi learning
Cell Types and Its function , kingdom of life
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
master seminar digital applications in india
Module 4: Burden of Disease Tutorial Slides S2 2025
Complications of Minimal Access Surgery at WLH
RMMM.pdf make it easy to upload and study
Business Ethics Teaching Materials for college
STATICS OF THE RIGID BODIES Hibbelers.pdf
01-Introduction-to-Information-Management.pdf
Insiders guide to clinical Medicine.pdf
Cell Structure & Organelles in detailed.
Supply Chain Operations Speaking Notes -ICLT Program

Add instruction-part1

  • 1. ADD instructions Part #1 University of Duhok, Computer Science Dept.
  • 2. ADD instruction The ADD instruction has the following format: ADD destination,source The ADD instruction tells the CPU to add the source and the destination operands and put the result in the destination. Destination = Destination + Source • The destination operand can be a register or a memory location. • The source operand can be an immediate, a register, or a memory location. By: Jawaher A. Fadhil Computer Science Dept.
  • 3. • Two memory operands cannot be used in one instruction. • When an immediate value is used as an operand, it is sign- extended to the length of the destination operand format. ADD AL,1355H ADD instruction ADD [500],[502] By: Jawaher A. Fadhil Computer Science Dept.
  • 4. Example#1 To add two numbers such as 25H and 34H, each can be moved to a register and then added together: MOV AL,25h MOV BL,34h ADD AL,BL AL= 25H +34H AL=59H BL=34H By: Jawaher A. Fadhil Computer Science Dept.
  • 5. Example#2 Write the Assembly language instructions to add the values 6BH and A8H. Place the result in register AX? MOV AX,0000 MOV AL,6BH ADD AL,A8 By: Jawaher A. Fadhil Computer Science Dept. AL=AL+A8 6 B + A 8 HEX 0 1 2 . . 9 A B C D E F 10 11 12 13 14 15 16 3 1 1 1 AX= 00 13CF= 1
  • 7. Example#2 Write the Assembly language instructions to add the values 6BH and A8H. Place the result in register AX? MOV AX,0000 MOV AL,6BH ADD AX,A8 By: Jawaher A. Fadhil Computer Science Dept. AX=AL+A8 6 B + A 8 3 1 1 1 AX= 01 13 CF= 0
  • 8. By: Jawaher A. Fadhil Computer Science Dept.