SlideShare a Scribd company logo
3
Most read
6
Most read
10
Most read
CLASS PRESENTATION
UNIT-1
Mohammad Asif Iqbal
Assistant Professor,
Deptt of ECE,
JETGI, Barabanki
ADRESSING MODES
LETS BEGAIN WITH AS EXAMPLE..
Suppose we have a two operands instruction
ADD X, Y
X in register
Y in memory
Then, after taking this particular example, we were in fact working out
the series of actions we must take
Next step is to look the various possible ways in which the operands can
be referred to. In other words, what we are talking about is the different
modes in which we can address the data.
That is, modes of addressing the data or referring to the data will usually
be called addressing modes
DIFFERENT TYPES OF ADDRESSING MODE?
Immediate Addressing
Direct Addressing
Indirect Addressing
Register Addressing
Register Indirect Addressing
Relative Addressing
Indexed Addressing
IMMEDIATE ADDRESSING
Operand is given explicitly in the instruction
Operand = Value
e.g. ADD 5
Add 5 to contents of accumulator
5 is operand
No memory reference to fetch data
Fast
Limited range
Instruction
opcode operand
DIRECT ADDRESSING
Address field contains address of operand
Effective address (EA) = address field (A)
e.g. ADD A
Add contents of cell A to accumulator
Look in memory at address A for operand
Single memory reference to access data
No additional calculations to work out effective
address
Limited address space
DIRECT ADDRESSING DIAGRAM
INDIRECT ADDRESSING
Memory cell pointed to by address field contains
the address of (pointer to) the operand
EA = [A]
Look in A, find address (A) and look there for
operand
e.g. ADD (A)
Add contents of cell pointed to by contents of A to
accumulator
INDIRECT ADDRESSING
Large address space
2n where n = word length
May be nested, multilevel, cascaded
e.g. EA = (((A)))
Draw the diagram yourself
Multiple memory accesses to find operand
Hence slower
INDIRECT ADDRESSING DIAGRAM
REGISTER ADDRESSING
Operand is held in register named in
address field
EA = R
Limited number of registers
Very small address field needed
Shorter instructions
Faster instruction fetch
REGISTER ADDRESSING
No memory access
Very fast execution
Very limited address space
Multiple registers helps performance
Requires good assembly programming or
compiler writing
REGISTER ADDRESSING DIAGRAM
REGISTER INDIRECT ADDRESSING
C.f. indirect addressing
EA = [R]
Operand is in memory cell pointed to by
contents of register R
Large address space (2n)
One fewer memory access than indirect
addressing
REGISTER INDIRECT ADDRESSING DIAGRAM
INDEX ADDRESSING
EA = X + [R]
Address field hold two values
X = constant value (offset)
R = register that holds address of memory
locations
or vice versa
(Offset given as constant or in the index register)
Add 20(R1),R2 or Add 1000(R1),R2
INDEX ADDRESSING DIAGRAM
RELATIVE ADDRESSING
A version of displacement addressing
R = Program counter, PC
EA = X + (PC)
i.e. get operand from X bytes away from
current location pointed to by PC
c.f locality of reference & cache usage
AUTO INCREMENT MODE
The effective address of the operand is the
contents of a register specified in the
instruction.
After accessing the operand, the contents of
this register are automatically incremented to
point to the next item in the list
EA=[Ri]; Increment Ri ---- (Ri)+
Eg: Add (R2)+,R0
AUTO DECREMENT MODE
The contents of a register specified in the
instruction are first automatically
decremented and are then used as the
effective address of the operand
Decrement Ri; EA= [Ri] ----- -(Ri)
THANK YOU!

More Related Content

PPTX
Computer Organisation - Addressing Modes
PPT
Registers
PPTX
Register organization, stack
PPTX
bus and memory tranfer (computer organaization)
PPT
Instruction format
PPTX
Computer organization
PDF
Bus structure in Computer Organization.pdf
PPT
Instruction cycle
Computer Organisation - Addressing Modes
Registers
Register organization, stack
bus and memory tranfer (computer organaization)
Instruction format
Computer organization
Bus structure in Computer Organization.pdf
Instruction cycle

What's hot (20)

PPTX
Auxiliary memory
PPTX
Instruction codes
PPTX
Computer instruction
PPTX
Cache memory
PPTX
memory reference instruction
PDF
COMPUTER ORGANIZATION NOTES Unit 2
PPTX
Segmentation in operating systems
PPTX
Computer architecture instruction formats
PPTX
Microprogrammed Control Unit
PPTX
Osi reference model
PPTX
instruction cycle ppt
PPT
Addressing modes
PPTX
Timing and control
PPTX
PPTX
BFS and DFS
PPTX
Direct Memory Access(DMA)
PPTX
Auxiliary Memory in computer Architecture.pptx
PPTX
Instruction cycle presentation
PPT
aloha
PPTX
Addressing Modes
Auxiliary memory
Instruction codes
Computer instruction
Cache memory
memory reference instruction
COMPUTER ORGANIZATION NOTES Unit 2
Segmentation in operating systems
Computer architecture instruction formats
Microprogrammed Control Unit
Osi reference model
instruction cycle ppt
Addressing modes
Timing and control
BFS and DFS
Direct Memory Access(DMA)
Auxiliary Memory in computer Architecture.pptx
Instruction cycle presentation
aloha
Addressing Modes
Ad

Similar to Addressing modes (20)

PPTX
Addressing
PPTX
CH13-COA10e update Addressing mode of instruction.pptx
PPT
Addressing
PDF
Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086
PPTX
Chapter11 addressing
PPTX
Instruction Set (Part 2)
PPTX
Computer architecture addressing modes and formats
PPT
Advanced computer architect lesson 3 and 4
PDF
Ec 252 ec-252-l10-instruction sets and addressing modes
PPTX
ITEC582-Chapter 13-CO-UNIT-1-IMPORT.pptx
PPTX
ITEC582-Chapter 13-usefull-Computer.pptx
PPSX
Addressing modes presentation
PPTX
Unit 1 ca-introduction
PPT
Compreport
PPTX
module 3 instruction set and control unit
PPTX
Anshika 1111.pptx
PPT
(246431835) instruction set principles (2) (1)
PDF
CSN221_Lec_22.pdf Computer Architecture and Microprocessor
PPTX
Address mode adress mode mode of adressing addressingmodes.pptx
PDF
Presentation of addressing mode presentation
Addressing
CH13-COA10e update Addressing mode of instruction.pptx
Addressing
Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086
Chapter11 addressing
Instruction Set (Part 2)
Computer architecture addressing modes and formats
Advanced computer architect lesson 3 and 4
Ec 252 ec-252-l10-instruction sets and addressing modes
ITEC582-Chapter 13-CO-UNIT-1-IMPORT.pptx
ITEC582-Chapter 13-usefull-Computer.pptx
Addressing modes presentation
Unit 1 ca-introduction
Compreport
module 3 instruction set and control unit
Anshika 1111.pptx
(246431835) instruction set principles (2) (1)
CSN221_Lec_22.pdf Computer Architecture and Microprocessor
Address mode adress mode mode of adressing addressingmodes.pptx
Presentation of addressing mode presentation
Ad

More from Asif Iqbal (20)

PPTX
IOT WITH NODEMCU13231244425435465645.pptx
PPT
RaspberryPI PPT WITH ALL THE DETAILS OF PROGRAMMING
PPTX
first day presentation related to iot.pptx
PDF
5415Microprocessor-Lecture-11.pdf
PPT
11815939.ppt
PPTX
Chandrayaan 3.pptx
PPTX
Memory unit 6
PPTX
instruction
PPTX
OPTICAL COMMUNICATION Unit 5
PPTX
OPTICAL COMMUNICATION Unit 4
PPTX
optical communication Unit 3
PPTX
OPTICAL COMMUNICATION Unit 2
PPTX
OPTICAL FIBER COMMUNICATION UNIT-1
PPTX
Synchronous Sequential Logic Unit 4
PPTX
Combinational Logic Unit 2
PPTX
Unit-1 Digital Design and Binary Numbers:
PPTX
voltage regulater
PPTX
special diode
PPTX
oscillator unit 3
PPTX
Nunit 2 feedback
IOT WITH NODEMCU13231244425435465645.pptx
RaspberryPI PPT WITH ALL THE DETAILS OF PROGRAMMING
first day presentation related to iot.pptx
5415Microprocessor-Lecture-11.pdf
11815939.ppt
Chandrayaan 3.pptx
Memory unit 6
instruction
OPTICAL COMMUNICATION Unit 5
OPTICAL COMMUNICATION Unit 4
optical communication Unit 3
OPTICAL COMMUNICATION Unit 2
OPTICAL FIBER COMMUNICATION UNIT-1
Synchronous Sequential Logic Unit 4
Combinational Logic Unit 2
Unit-1 Digital Design and Binary Numbers:
voltage regulater
special diode
oscillator unit 3
Nunit 2 feedback

Recently uploaded (20)

PPTX
Geodesy 1.pptx...............................................
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
PPT on Performance Review to get promotions
PDF
Well-logging-methods_new................
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
Construction Project Organization Group 2.pptx
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPT
Mechanical Engineering MATERIALS Selection
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Welding lecture in detail for understanding
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
composite construction of structures.pdf
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
Geodesy 1.pptx...............................................
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPT on Performance Review to get promotions
Well-logging-methods_new................
CYBER-CRIMES AND SECURITY A guide to understanding
R24 SURVEYING LAB MANUAL for civil enggi
Construction Project Organization Group 2.pptx
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Embodied AI: Ushering in the Next Era of Intelligent Systems
Mechanical Engineering MATERIALS Selection
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
additive manufacturing of ss316l using mig welding
Welding lecture in detail for understanding
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
composite construction of structures.pdf
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Model Code of Practice - Construction Work - 21102022 .pdf

Addressing modes

  • 1. CLASS PRESENTATION UNIT-1 Mohammad Asif Iqbal Assistant Professor, Deptt of ECE, JETGI, Barabanki
  • 3. LETS BEGAIN WITH AS EXAMPLE.. Suppose we have a two operands instruction ADD X, Y X in register Y in memory Then, after taking this particular example, we were in fact working out the series of actions we must take Next step is to look the various possible ways in which the operands can be referred to. In other words, what we are talking about is the different modes in which we can address the data. That is, modes of addressing the data or referring to the data will usually be called addressing modes
  • 4. DIFFERENT TYPES OF ADDRESSING MODE? Immediate Addressing Direct Addressing Indirect Addressing Register Addressing Register Indirect Addressing Relative Addressing Indexed Addressing
  • 5. IMMEDIATE ADDRESSING Operand is given explicitly in the instruction Operand = Value e.g. ADD 5 Add 5 to contents of accumulator 5 is operand No memory reference to fetch data Fast Limited range Instruction opcode operand
  • 6. DIRECT ADDRESSING Address field contains address of operand Effective address (EA) = address field (A) e.g. ADD A Add contents of cell A to accumulator Look in memory at address A for operand Single memory reference to access data No additional calculations to work out effective address Limited address space
  • 8. INDIRECT ADDRESSING Memory cell pointed to by address field contains the address of (pointer to) the operand EA = [A] Look in A, find address (A) and look there for operand e.g. ADD (A) Add contents of cell pointed to by contents of A to accumulator
  • 9. INDIRECT ADDRESSING Large address space 2n where n = word length May be nested, multilevel, cascaded e.g. EA = (((A))) Draw the diagram yourself Multiple memory accesses to find operand Hence slower
  • 11. REGISTER ADDRESSING Operand is held in register named in address field EA = R Limited number of registers Very small address field needed Shorter instructions Faster instruction fetch
  • 12. REGISTER ADDRESSING No memory access Very fast execution Very limited address space Multiple registers helps performance Requires good assembly programming or compiler writing
  • 14. REGISTER INDIRECT ADDRESSING C.f. indirect addressing EA = [R] Operand is in memory cell pointed to by contents of register R Large address space (2n) One fewer memory access than indirect addressing
  • 16. INDEX ADDRESSING EA = X + [R] Address field hold two values X = constant value (offset) R = register that holds address of memory locations or vice versa (Offset given as constant or in the index register) Add 20(R1),R2 or Add 1000(R1),R2
  • 18. RELATIVE ADDRESSING A version of displacement addressing R = Program counter, PC EA = X + (PC) i.e. get operand from X bytes away from current location pointed to by PC c.f locality of reference & cache usage
  • 19. AUTO INCREMENT MODE The effective address of the operand is the contents of a register specified in the instruction. After accessing the operand, the contents of this register are automatically incremented to point to the next item in the list EA=[Ri]; Increment Ri ---- (Ri)+ Eg: Add (R2)+,R0
  • 20. AUTO DECREMENT MODE The contents of a register specified in the instruction are first automatically decremented and are then used as the effective address of the operand Decrement Ri; EA= [Ri] ----- -(Ri)

Editor's Notes

  • #3: “Ant Colony Optimization (ACO) studies artificial systems that take inspiration from the behavior of real ant colonies and which are used to solve discrete optimization problems.”