SlideShare a Scribd company logo
12/14/2014
1
Computer Organization
Instructors :
Dr. Abdul Raouf Khan
Mr.Marwan El-Haj
Addressing Modes
The addressing mode specifies a rule for
interpreting or modifying the address field of
the instruction before the operand is actually
referenced.
In some computers, the addressing mode is
specified with a distinct binary code. Other
computers use a single binary code that
designates both the operation and mode of
the instruction.
12/14/2014
2
Advantages of using Addressing
modes
1. To give programming versatility to the user
by providing such facilities as pointers to
memory, counters for loop control, indexing
of data and program relocation.
2. To reduce the number of bits in the
addressing field of the instruction.
1. Implied Mode
In this mode the operands are specified implicitly in the
definition of the instruction. Needs no address field
for example: CMA (Complement Accumulator)
In fact all register reference instructions that use an
accumulator are implied-mode instructions.
Zero address instructions in a stack organized computer
are implied-mode instructions since the operands are
implied to be on top of the stack
12/14/2014
3
2. Immediate Mode
In this mode the operand is specified in the
instruction itself. Needs no address field
For example ADD 55, here 55 is the data to be
added not the address of the data.
Immediate mode instructions are useful for
initializing registers to a constant value.
3. Register Mode
In this mode the operands are in registers
that reside within the CPU.
For example MOV A, B
ADD C
Where A, B and C are the registers
This modes helps in faster execution.
12/14/2014
4
4. Register Indirect Mode
In this mode, the instruction specifies a
register which contains the address of the
operand.
The advantage is that the address field of the
instruction uses fewer bits to select a register
than would have been required to specify a
memory address directly.
5. Direct Address Mode
In this mode, the effective address is equal to
the address part of the instruction. The
operand resides in memory and its address
is given directly by the address field of the
instruction.
Helps in actual address for branch type
instruction
12/14/2014
5
6. Indirect Address Mode
In this mode the address field of the
instruction gives the address where the
effective address is stored in memory.
7. Relative Address Mode
In this mode the content of the program
counter is added to the address part of the
instruction in order to obtain the effective
address.
Results in a shorter address field
12/14/2014
6
8. Indexed Address Mode
In this mode the content of an index register
is added to the address part of the instruction
to obtain the effective address.
Used to address arrays
9. Base Register Address Mode
In this mode the contents of a base register
is added to the address part of the instruction
to obtain the effective address.
Helps to relocate programs in the memory.
12/14/2014
7
Example continued .

More Related Content

PPTX
Addressing modes
PPTX
Addresing modes
PPT
Addressing modes
PPTX
Addressing modes
PPTX
UNIT-2.pptx
PPT
Addressing modes
PDF
Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086
PPTX
Computer Organisation - Addressing Modes
Addressing modes
Addresing modes
Addressing modes
Addressing modes
UNIT-2.pptx
Addressing modes
Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086
Computer Organisation - Addressing Modes

Viewers also liked (20)

PDF
Lect11 organization
PPTX
Lecture02
PDF
Lect7 organization
PPTX
Bfs and dfs
PPTX
Chain matrix multiplication
PPTX
Topological sort
PPTX
Complexity theory 2
PPTX
Dijekstra
PPTX
Activity selection 2
PPTX
Graph theory
PDF
Lect5 organization
PPTX
Minimum spanning trees
PPTX
PDF
Lect8 organization
PPTX
Complexity theory 3
PDF
Lect6 organization
PDF
Lect9 organization
PPTX
Floyd warshal 2
PPTX
Matrix chain multiplication
PPTX
Lect11 organization
Lecture02
Lect7 organization
Bfs and dfs
Chain matrix multiplication
Topological sort
Complexity theory 2
Dijekstra
Activity selection 2
Graph theory
Lect5 organization
Minimum spanning trees
Lect8 organization
Complexity theory 3
Lect6 organization
Lect9 organization
Floyd warshal 2
Matrix chain multiplication
Ad

Similar to Lect14 organization (20)

PPTX
ADDRESSING MODES.pptx
PPTX
ADDRESSING MODES
PPTX
ADDRESSING MODES
PPTX
addressing modes
PPTX
ADDRESSING MODE
PPTX
Addressing Modes.pptx
PPTX
PPT on Addressing Modes.ppt.pptx
PPTX
Addressing modes ppt
PPTX
Addressing Modes.pptx
PDF
Addressing modes in computer organization
PPTX
Introduction to Addressing modes in computer memory.pptx
PPTX
UNDERSTANDING ADDRESSING MODES1 IN THE CPU.pptx
PPTX
a-m-170612075909.pptx download by student
PPTX
Module 3.1_Instruction Types and Addressing modes.pptx
PPTX
Address mode adress mode mode of adressing addressingmodes.pptx
PDF
Addressing Modes _ Types of Addressing Modes _ Gate Vidyalay.pdf
PPT
Advanced computer architect lesson 3 and 4
PPTX
Addressing mode
PPTX
addressing modeLecture3-Intro to Ht.pptx
PPTX
MSc 1st year Computer system organization.pptx
ADDRESSING MODES.pptx
ADDRESSING MODES
ADDRESSING MODES
addressing modes
ADDRESSING MODE
Addressing Modes.pptx
PPT on Addressing Modes.ppt.pptx
Addressing modes ppt
Addressing Modes.pptx
Addressing modes in computer organization
Introduction to Addressing modes in computer memory.pptx
UNDERSTANDING ADDRESSING MODES1 IN THE CPU.pptx
a-m-170612075909.pptx download by student
Module 3.1_Instruction Types and Addressing modes.pptx
Address mode adress mode mode of adressing addressingmodes.pptx
Addressing Modes _ Types of Addressing Modes _ Gate Vidyalay.pdf
Advanced computer architect lesson 3 and 4
Addressing mode
addressing modeLecture3-Intro to Ht.pptx
MSc 1st year Computer system organization.pptx
Ad

More from Maher Alshammari (17)

PDF
Cis cvs risc
PDF
Lect10 organization
PDF
Lect12 organization
PDF
Lect13 organization
PDF
Lect15 organization
PDF
Lect1 organization 2
PDF
Lect4 organization
PDF
Lect2 organization 2
PDF
Lect3 organization 2
PPTX
Greedy algorithm
PPTX
Matrix chain multiplication 2
PPTX
Edit distance problem
PPTX
Merge sort
PPT
Lecture01
PPTX
Bellman ford and floyd warshal
PPTX
Dijekstra algorithm
PPTX
Greedy algorithm huffman encoding
Cis cvs risc
Lect10 organization
Lect12 organization
Lect13 organization
Lect15 organization
Lect1 organization 2
Lect4 organization
Lect2 organization 2
Lect3 organization 2
Greedy algorithm
Matrix chain multiplication 2
Edit distance problem
Merge sort
Lecture01
Bellman ford and floyd warshal
Dijekstra algorithm
Greedy algorithm huffman encoding

Recently uploaded (20)

PDF
waiting, Queuing, best time an event cab be done at a time .pdf
PPTX
CPAR7 ARTS GRADE 112 LITERARY ARTS OR LI
PPTX
4277547e-f8e2-414e-8962-bf501ea91259.pptx
PPTX
400kV_Switchyard_Training_with_Diagrams.pptx
PPTX
Technical-Codes-presentation-G-12Student
PDF
Love & Romance in Every Sparkle_ Discover the Magic of Diamond Painting.pdf
PPTX
Green and Orange Illustration Understanding Climate Change Presentation.pptx
PDF
; Projeto Rixa Antiga.pdf
PDF
Ricardo Salinas Pliego Accused of Acting as A Narcotics Kingpin
PPTX
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
slide head and neck muscel for medical students
PPTX
SAPOTA CULTIVATION.pptxMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
PPTX
A slideshow about aesthetic value in arts
PPTX
CPAR-ELEMENTS AND PRINCIPLE OF ARTS.pptx
PPTX
MUSIC-W1-Q1-1.pptxL;ML;MLNL;NL;NL;N;LNL;NL;N
PDF
Chapter 3 about The site of the first mass
PPTX
Slide_Egg-81850-About Us PowerPoint Template Free.pptx
PPTX
G10 HOMEROOM PARENT-TEACHER ASSOCIATION MEETING SATURDAY.pptx
PPTX
EJ Wedding 520 It's official! We went to Xinyi District to do the documents
PPTX
VAD - Acute and chronic disorders of mesenteric.pptx
waiting, Queuing, best time an event cab be done at a time .pdf
CPAR7 ARTS GRADE 112 LITERARY ARTS OR LI
4277547e-f8e2-414e-8962-bf501ea91259.pptx
400kV_Switchyard_Training_with_Diagrams.pptx
Technical-Codes-presentation-G-12Student
Love & Romance in Every Sparkle_ Discover the Magic of Diamond Painting.pdf
Green and Orange Illustration Understanding Climate Change Presentation.pptx
; Projeto Rixa Antiga.pdf
Ricardo Salinas Pliego Accused of Acting as A Narcotics Kingpin
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
slide head and neck muscel for medical students
SAPOTA CULTIVATION.pptxMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
A slideshow about aesthetic value in arts
CPAR-ELEMENTS AND PRINCIPLE OF ARTS.pptx
MUSIC-W1-Q1-1.pptxL;ML;MLNL;NL;NL;N;LNL;NL;N
Chapter 3 about The site of the first mass
Slide_Egg-81850-About Us PowerPoint Template Free.pptx
G10 HOMEROOM PARENT-TEACHER ASSOCIATION MEETING SATURDAY.pptx
EJ Wedding 520 It's official! We went to Xinyi District to do the documents
VAD - Acute and chronic disorders of mesenteric.pptx

Lect14 organization

  • 1. 12/14/2014 1 Computer Organization Instructors : Dr. Abdul Raouf Khan Mr.Marwan El-Haj Addressing Modes The addressing mode specifies a rule for interpreting or modifying the address field of the instruction before the operand is actually referenced. In some computers, the addressing mode is specified with a distinct binary code. Other computers use a single binary code that designates both the operation and mode of the instruction.
  • 2. 12/14/2014 2 Advantages of using Addressing modes 1. To give programming versatility to the user by providing such facilities as pointers to memory, counters for loop control, indexing of data and program relocation. 2. To reduce the number of bits in the addressing field of the instruction. 1. Implied Mode In this mode the operands are specified implicitly in the definition of the instruction. Needs no address field for example: CMA (Complement Accumulator) In fact all register reference instructions that use an accumulator are implied-mode instructions. Zero address instructions in a stack organized computer are implied-mode instructions since the operands are implied to be on top of the stack
  • 3. 12/14/2014 3 2. Immediate Mode In this mode the operand is specified in the instruction itself. Needs no address field For example ADD 55, here 55 is the data to be added not the address of the data. Immediate mode instructions are useful for initializing registers to a constant value. 3. Register Mode In this mode the operands are in registers that reside within the CPU. For example MOV A, B ADD C Where A, B and C are the registers This modes helps in faster execution.
  • 4. 12/14/2014 4 4. Register Indirect Mode In this mode, the instruction specifies a register which contains the address of the operand. The advantage is that the address field of the instruction uses fewer bits to select a register than would have been required to specify a memory address directly. 5. Direct Address Mode In this mode, the effective address is equal to the address part of the instruction. The operand resides in memory and its address is given directly by the address field of the instruction. Helps in actual address for branch type instruction
  • 5. 12/14/2014 5 6. Indirect Address Mode In this mode the address field of the instruction gives the address where the effective address is stored in memory. 7. Relative Address Mode In this mode the content of the program counter is added to the address part of the instruction in order to obtain the effective address. Results in a shorter address field
  • 6. 12/14/2014 6 8. Indexed Address Mode In this mode the content of an index register is added to the address part of the instruction to obtain the effective address. Used to address arrays 9. Base Register Address Mode In this mode the contents of a base register is added to the address part of the instruction to obtain the effective address. Helps to relocate programs in the memory.