SlideShare a Scribd company logo
WELCOME TO 
OUR 
PRESENTATION 
10/17/2014 1
Define 
Addressing 
Mode 
& 
Different Types 
of addressing 
mode with 
numerical 
example 
10/17/2014 2
Prepared By 
NAME ID 
Israt Jahan Mishu BKH1201028F 
Asma Anika Shahabuddin BKH1201043F 
Parmita Dewanjee Shalu BKH1201040F 
10/17/2014 3
ADDRESSING MODES 
The way the operands are chosen during 
program execution is dependent on the 
addressing mode of the instruction. The 
addressing mode specifies a rule for interpreting 
or modifying the address field of the instruction 
before the operand is actually referenced. 
Computers use addressing mode techniques for 
the purpose of accomodating one or both of the 
following: 
10/17/2014 4
Computers use addressing mode techniques for 
the purpose of accomodating one or both of the 
following: 
 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. 
 To reduce the number of bits in the addressing 
field of the instruction. 
10/17/2014 5
DIFFERENT TYPES OF ADDRESSING 
MODES 
Implied mode 
Immediate mode 
Register mode 
Register indirect mode 
Autoincrement or Autodecrement mode 
Direct address mode 
Indirect address mode 
Relative address mode 
Indexed addressing mode 
Base register addressing mode 
10/17/2014 6
Implied Mode 
In this mode the operands are specified implicitly 
in the defination of the instruction. 
For example, the instruction “complement 
accumulator” is an implied-mode instruction. 
Opcode Mode Address 
Fig: Instruction format with mode field 
10/17/2014 7
Immediate Mode 
In this mode the operand is specified in 
the instruction itself. 
In other words, an immediate-mode 
instruction has an operand field rather 
than an address field. 
10/17/2014 
8
Immediate-mode instructions are useful for 
initializing registers to a constant value. 
The operand field contains the actual operand 
to be used in conjunction with the operation 
specified in instruction. 
10/17/2014 9
Register Mode 
In this mode the operands are in registers 
that reside within the CPU. 
The particular register is selected from register 
field in the instruction. 
A k-bit field can specify any one of 2ᴷ registers 
10/17/2014 10
In this mode the instruction specifies a 
register in the CPU whose contents give the 
address of the operand in memory. 
In other words, the selected register contains 
the address of the operand rather than the 
operand itself. 
10/17/2014 11
The advantage of a register indirect 
mode a instruction 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 
10/17/2014 12
AUTOINCREMENT OR 
AUTODECREMENT MODE: 
This is similar to the register indirect mode 
except that the register is increment or 
decrement after (or before) its value is used to 
access memory. 
When the address stored in the register refers to a 
table of data in memory,it is necessary to increment 
or decrement the register after every access to the 
table. 
10/17/2014 13
However, because it is such a 
common requirement. Some 
computers incorporate a special 
mode that automatically increments 
or decrements the content of the 
register after data access. 
10/17/2014 14
DIRECT ADDRESS MODE 
Is 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. 
In a branch-type instruction the address field 
specifies the actual branch address. 
10/17/2014 15
INDIRECT ADDRESS MODE 
In this mode the address field of the 
instruction gives the address where the 
effective address is stored in memory. 
Control fetches the instruction from memory 
and uses its address part to access memory 
again to read the effective address. 
10/17/2014 16
 A few addressing modes require that the address 
field of the instruction be added to the content of 
a specific register in the CPU. 
The effective address in these modes is obtained 
from the following computation: 
Effective address=address part of instruction + 
content of CPU register. 
10/17/2014 17
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. 
 The address part of the instruction is usually 
a signed number which can be either positive 
or negative. 
10/17/2014 18
When this number is added to the content of the 
program counter , the result produces an effective 
address whose position in memory is relative to 
the address of the next instruction. 
 It results in a shorter address field in the 
instruction format since the relative address can 
be specified with a smaller number of bits 
required to designate the entire memory address. 
10/17/2014 19
INDEXED ADDRESSING MODE 
 In this mode the content of an index 
register is added to the address part of 
the instruction to obtain the effective 
address. 
The index register is a special CPU 
register that contains an index value. 
10/17/2014 20
 The address field of the instruction 
defines the beginning address of a data 
array in memory. 
 Each operand in the array is stored in 
memory relative to the beginning 
address. 
10/17/2014 21
BASE REGISTER ADDRESSING MODE 
 In this mode the content of a base register is 
added to the address part of the instruction to 
obtain the effective address. 
 This is similar to the indexed addressing mode 
except that the register is now called a base 
register instead of an index register. 
10/17/2014 22
 The base register addressing mode is used in 
computers to facilitate the relocation of 
programs in memory. 
 Only the value of the base register requires 
updating to reflect the beginning of a new 
memory segment. 
10/17/2014 23
Numerical Example 
To show the differences between the various modes, 
we will show the effect of the addressing modes on 
the instruction defined in fig:1. The two-word 
instruction at address 200 and 201 is a “load to AC” 
instruction with an address field equal to 500. The 
first word of the instruction specifies the operation 
code and mode, and the second word specifies the 
address part. PC has the value 200 for fetching this 
instruction. The content of the processor register R1 
is 400,and the content of an index register XR is 100. 
AC receives the operand after the instruction is 
executed. 
10/17/2014 24
Address Memory 
PC=200 
R1=400 
XR=100 
AC 
Load to Ac Mode 
Address=500 
Next instruction 
450 
700 
800 
900 
325 
10/17/2014 1 
300 
Figure: Numerical example for 
addressing modes 
200 
201 
202 
399 
400 
500 
600 
702 
800
Addressing mode Effective Address Content of AC 
Direct Address 500 800 
Immediate 
operand 
201 500 
Indirect Address 800 300 
Relative Address 702 325 
Indexed Address 600 900 
Register 400 
Register Indirect 400 700 
AutoIncrement 400 700 
Autodecrement 399 450 
Table :Tabular List of Numerical Example 
10/17/2014 26
Thanks To All 
10/17/2014 27
Special Thanks To………….. 
Our honourable Sir 
Abul kalam Azad 
Lecturer ,Dept. Of CSTE 
Noakhali Science & Technology 
University 
10/17/2014 28

More Related Content

PPTX
ADDRESSING MODES
PPTX
Addressing modes
PPTX
Register organization, stack
PDF
Addressing modes in computer organization
PPTX
8237 dma controller
PPT
Addressing modes
PPT
Types of instructions
PPT
Memory & I/O interfacing
ADDRESSING MODES
Addressing modes
Register organization, stack
Addressing modes in computer organization
8237 dma controller
Addressing modes
Types of instructions
Memory & I/O interfacing

What's hot (20)

PPTX
Computer Organisation - Addressing Modes
PPS
Addressing modes of 8085
PPTX
bus and memory tranfer (computer organaization)
PPTX
General register organization (computer organization)
PPTX
Interrupts of microprocessor 8085
PPTX
3.programmable interrupt controller 8259
PDF
Addressing modes of 80386
PPTX
Computer organization and architecture
PPTX
Interfacing memory with 8086 microprocessor
PPTX
LCD Interacing with 8051
PPT
8255 presentaion.ppt
PPTX
Addressing Modes Of 8086
PPTX
Computer registers
PPTX
Digital signal processing
PPTX
8257 DMA Controller
PPTX
Types of Addressing modes- COA
PPTX
Interrupts of 8086
PPTX
Addressing modes of 8086
PPTX
PPTX
Modes of transfer
Computer Organisation - Addressing Modes
Addressing modes of 8085
bus and memory tranfer (computer organaization)
General register organization (computer organization)
Interrupts of microprocessor 8085
3.programmable interrupt controller 8259
Addressing modes of 80386
Computer organization and architecture
Interfacing memory with 8086 microprocessor
LCD Interacing with 8051
8255 presentaion.ppt
Addressing Modes Of 8086
Computer registers
Digital signal processing
8257 DMA Controller
Types of Addressing modes- COA
Interrupts of 8086
Addressing modes of 8086
Modes of transfer
Ad

Viewers also liked (14)

PPT
Fms
PPSX
Coa presentation2
PPTX
Basic Computer Organization and Design
PPTX
8086 microprocessor instruction set by Er. Swapnil Kaware
PPT
Chapter 3 - Top Level View of Computer / Function and Interconection
PPT
1327 Addressing Modes Of 8086
PPT
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
PPT
Instruction cycle
PPT
11 instruction sets addressing modes
PDF
Instruction cycle
PDF
Unit II arm 7 Instruction Set
PPT
Input and Output Devices.
PDF
LinkedIn SlideShare: Knowledge, Well-Presented
Fms
Coa presentation2
Basic Computer Organization and Design
8086 microprocessor instruction set by Er. Swapnil Kaware
Chapter 3 - Top Level View of Computer / Function and Interconection
1327 Addressing Modes Of 8086
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
Instruction cycle
11 instruction sets addressing modes
Instruction cycle
Unit II arm 7 Instruction Set
Input and Output Devices.
LinkedIn SlideShare: Knowledge, Well-Presented
Ad

Similar to ADDRESSING MODE (20)

PPTX
PPT on Addressing Modes.ppt.pptx
PPTX
Addressing modes
PPTX
ADDRESSING MODES.pptx
PPTX
Addressing modes ppt
PPTX
ADDRESSING MODES
PPTX
addressing modes
PPTX
Addressing Modes.pptx
PPTX
Addressing modes
PPTX
CS304PC:Computer Organization and Architecture Session 13 Addressing modes.pptx
PPTX
Addressing Modes.pptx
PDF
Lect14 organization
PDF
Addressing Modes _ Types of Addressing Modes _ Gate Vidyalay.pdf
PPSX
Addressing modes presentation
PPTX
Introduction to Addressing modes in computer memory.pptx
PPTX
UNDERSTANDING ADDRESSING MODES1 IN THE CPU.pptx
PPTX
Lecture 10
PPTX
Address mode adress mode mode of adressing addressingmodes.pptx
PPTX
Addressing mode Computer Architecture
PPTX
csopptvhghjgluilyuiyuilyuiuiyuyuyuiyuy1.pptx
PPTX
PPT on Addressing Modes.ppt.pptx
Addressing modes
ADDRESSING MODES.pptx
Addressing modes ppt
ADDRESSING MODES
addressing modes
Addressing Modes.pptx
Addressing modes
CS304PC:Computer Organization and Architecture Session 13 Addressing modes.pptx
Addressing Modes.pptx
Lect14 organization
Addressing Modes _ Types of Addressing Modes _ Gate Vidyalay.pdf
Addressing modes presentation
Introduction to Addressing modes in computer memory.pptx
UNDERSTANDING ADDRESSING MODES1 IN THE CPU.pptx
Lecture 10
Address mode adress mode mode of adressing addressingmodes.pptx
Addressing mode Computer Architecture
csopptvhghjgluilyuiyuilyuiuiyuyuyuiyuy1.pptx

Recently uploaded (20)

PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Modernizing your data center with Dell and AMD
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Approach and Philosophy of On baking technology
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Encapsulation theory and applications.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Review of recent advances in non-invasive hemoglobin estimation
Mobile App Security Testing_ A Comprehensive Guide.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Unlocking AI with Model Context Protocol (MCP)
Diabetes mellitus diagnosis method based random forest with bat algorithm
Building Integrated photovoltaic BIPV_UPV.pdf
Modernizing your data center with Dell and AMD
Per capita expenditure prediction using model stacking based on satellite ima...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Approach and Philosophy of On baking technology
“AI and Expert System Decision Support & Business Intelligence Systems”
Encapsulation theory and applications.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
NewMind AI Weekly Chronicles - August'25 Week I
Chapter 3 Spatial Domain Image Processing.pdf
Digital-Transformation-Roadmap-for-Companies.pptx

ADDRESSING MODE

  • 1. WELCOME TO OUR PRESENTATION 10/17/2014 1
  • 2. Define Addressing Mode & Different Types of addressing mode with numerical example 10/17/2014 2
  • 3. Prepared By NAME ID Israt Jahan Mishu BKH1201028F Asma Anika Shahabuddin BKH1201043F Parmita Dewanjee Shalu BKH1201040F 10/17/2014 3
  • 4. ADDRESSING MODES The way the operands are chosen during program execution is dependent on the addressing mode of the instruction. The addressing mode specifies a rule for interpreting or modifying the address field of the instruction before the operand is actually referenced. Computers use addressing mode techniques for the purpose of accomodating one or both of the following: 10/17/2014 4
  • 5. Computers use addressing mode techniques for the purpose of accomodating one or both of the following:  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.  To reduce the number of bits in the addressing field of the instruction. 10/17/2014 5
  • 6. DIFFERENT TYPES OF ADDRESSING MODES Implied mode Immediate mode Register mode Register indirect mode Autoincrement or Autodecrement mode Direct address mode Indirect address mode Relative address mode Indexed addressing mode Base register addressing mode 10/17/2014 6
  • 7. Implied Mode In this mode the operands are specified implicitly in the defination of the instruction. For example, the instruction “complement accumulator” is an implied-mode instruction. Opcode Mode Address Fig: Instruction format with mode field 10/17/2014 7
  • 8. Immediate Mode In this mode the operand is specified in the instruction itself. In other words, an immediate-mode instruction has an operand field rather than an address field. 10/17/2014 8
  • 9. Immediate-mode instructions are useful for initializing registers to a constant value. The operand field contains the actual operand to be used in conjunction with the operation specified in instruction. 10/17/2014 9
  • 10. Register Mode In this mode the operands are in registers that reside within the CPU. The particular register is selected from register field in the instruction. A k-bit field can specify any one of 2ᴷ registers 10/17/2014 10
  • 11. In this mode the instruction specifies a register in the CPU whose contents give the address of the operand in memory. In other words, the selected register contains the address of the operand rather than the operand itself. 10/17/2014 11
  • 12. The advantage of a register indirect mode a instruction 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 10/17/2014 12
  • 13. AUTOINCREMENT OR AUTODECREMENT MODE: This is similar to the register indirect mode except that the register is increment or decrement after (or before) its value is used to access memory. When the address stored in the register refers to a table of data in memory,it is necessary to increment or decrement the register after every access to the table. 10/17/2014 13
  • 14. However, because it is such a common requirement. Some computers incorporate a special mode that automatically increments or decrements the content of the register after data access. 10/17/2014 14
  • 15. DIRECT ADDRESS MODE Is 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. In a branch-type instruction the address field specifies the actual branch address. 10/17/2014 15
  • 16. INDIRECT ADDRESS MODE In this mode the address field of the instruction gives the address where the effective address is stored in memory. Control fetches the instruction from memory and uses its address part to access memory again to read the effective address. 10/17/2014 16
  • 17.  A few addressing modes require that the address field of the instruction be added to the content of a specific register in the CPU. The effective address in these modes is obtained from the following computation: Effective address=address part of instruction + content of CPU register. 10/17/2014 17
  • 18. 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.  The address part of the instruction is usually a signed number which can be either positive or negative. 10/17/2014 18
  • 19. When this number is added to the content of the program counter , the result produces an effective address whose position in memory is relative to the address of the next instruction.  It results in a shorter address field in the instruction format since the relative address can be specified with a smaller number of bits required to designate the entire memory address. 10/17/2014 19
  • 20. INDEXED ADDRESSING MODE  In this mode the content of an index register is added to the address part of the instruction to obtain the effective address. The index register is a special CPU register that contains an index value. 10/17/2014 20
  • 21.  The address field of the instruction defines the beginning address of a data array in memory.  Each operand in the array is stored in memory relative to the beginning address. 10/17/2014 21
  • 22. BASE REGISTER ADDRESSING MODE  In this mode the content of a base register is added to the address part of the instruction to obtain the effective address.  This is similar to the indexed addressing mode except that the register is now called a base register instead of an index register. 10/17/2014 22
  • 23.  The base register addressing mode is used in computers to facilitate the relocation of programs in memory.  Only the value of the base register requires updating to reflect the beginning of a new memory segment. 10/17/2014 23
  • 24. Numerical Example To show the differences between the various modes, we will show the effect of the addressing modes on the instruction defined in fig:1. The two-word instruction at address 200 and 201 is a “load to AC” instruction with an address field equal to 500. The first word of the instruction specifies the operation code and mode, and the second word specifies the address part. PC has the value 200 for fetching this instruction. The content of the processor register R1 is 400,and the content of an index register XR is 100. AC receives the operand after the instruction is executed. 10/17/2014 24
  • 25. Address Memory PC=200 R1=400 XR=100 AC Load to Ac Mode Address=500 Next instruction 450 700 800 900 325 10/17/2014 1 300 Figure: Numerical example for addressing modes 200 201 202 399 400 500 600 702 800
  • 26. Addressing mode Effective Address Content of AC Direct Address 500 800 Immediate operand 201 500 Indirect Address 800 300 Relative Address 702 325 Indexed Address 600 900 Register 400 Register Indirect 400 700 AutoIncrement 400 700 Autodecrement 399 450 Table :Tabular List of Numerical Example 10/17/2014 26
  • 27. Thanks To All 10/17/2014 27
  • 28. Special Thanks To………….. Our honourable Sir Abul kalam Azad Lecturer ,Dept. Of CSTE Noakhali Science & Technology University 10/17/2014 28