SlideShare a Scribd company logo
5
Most read
10
Most read
11
Most read
Addressing Modes
• The term addressing modes refers to the
way in which the operand of an instruction
is specified. The addressing mode
specifies a rule for interpreting or
modifying the address field of the
instruction before the operand is actually
executed.
Addressing Modes
• Implied
• Immediate
• Direct
• Indirect
• Register
• Register Indirect
• Displacement (Indexed)
• Stack
Implied Addressing
• Implied addressing refers to instructions that comprise
only an opcode without an operand; for example, the
INCA(“increment accumulator”)Instruction.
• Zero address instruction are designed with implied
addressing mode.
• ADD (it takes previous two values from the stack and ADD’s
them).
• CLC (used to reset Carry flag to 0)
Immediate Addressing
• Operand is part of instruction
• Operand = address field
• e.g. ADD 5
—Add 5 to contents of accumulator
—5 is operand
• No memory reference to fetch data
• Fast
• Limited range
Immediate Addressing Diagram
Operand
Opcode
Instruction
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
Address A
Opcode
Instruction
Memory
Operand
Indirect Addressing (1)
• 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 (2)
• 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
Address A
Opcode
Instruction
Memory
Operand
Pointer to operand
Register Addressing (1)
• Operand is held in register named in
address filed
• EA = R
• Limited number of registers
• Very small address field needed
—Shorter instructions
—Faster instruction fetch
Register Addressing (2)
• No memory access
• Very fast execution
• Very limited address space
• Multiple registers helps performance
—Requires good assembly programming or
compiler writing
—N.B. C programming
– register int a;
• c.f. Direct addressing
Register Addressing Diagram
Register Address R
Opcode
Instruction
Registers
Operand
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
Register Address R
Opcode
Instruction
Memory
Operand
Pointer to Operand
Registers
addressing modes  in computer architecture
addressing modes  in computer architecture
Displacement Addressing
• EA = A + (R)
• Address field hold two values
—A = base value
—R = register that holds displacement
—or vice versa
Displacement Addressing Diagram
Register R
Opcode
Instruction
Memory
Operand
Pointer to Operand
Registers
Address A
+
addressing modes  in computer architecture
addressing modes  in computer architecture
addressing modes  in computer architecture

More Related Content

What's hot (20)

PPTX
Unit 4 sp macro
Deepmala Sharma
 
PPTX
Memory organization in computer architecture
Faisal Hussain
 
PPTX
Lecture 3 instruction set
Pradeep Kumar TS
 
PPT
Hardware implementation for Addition and subtraction in Digital Hardware
christyvincent5
 
PDF
Classical encryption techniques
Dr.Florence Dayana
 
PPT
Computer architecture pipelining
Mazin Alwaaly
 
PPTX
Addressing modes
RAMESHBABUA3
 
PPTX
Memory organization (Computer architecture)
Sandesh Jonchhe
 
PPTX
Modes of transfer
Andhra University
 
PPT
Memory management
Vishal Singh
 
PPTX
Instruction cycle with interrupts
Shubham Jain
 
PPT
Pass 1 flowchart
Namisha Sharma
 
PPS
Computer instructions
Anuj Modi
 
PPTX
Unit 4-booth algorithm
vishal choudhary
 
PPTX
Storage management in operating system
DeepikaT13
 
PPTX
Computer registers
DeepikaT13
 
PPTX
Presentation Routing algorithm
Basit Hussain
 
PPTX
Unit 3 sp assembler
Deepmala Sharma
 
PPTX
Disk structure
sangrampatil81
 
PDF
Formal Languages and Automata Theory Unit 1
Srimatre K
 
Unit 4 sp macro
Deepmala Sharma
 
Memory organization in computer architecture
Faisal Hussain
 
Lecture 3 instruction set
Pradeep Kumar TS
 
Hardware implementation for Addition and subtraction in Digital Hardware
christyvincent5
 
Classical encryption techniques
Dr.Florence Dayana
 
Computer architecture pipelining
Mazin Alwaaly
 
Addressing modes
RAMESHBABUA3
 
Memory organization (Computer architecture)
Sandesh Jonchhe
 
Modes of transfer
Andhra University
 
Memory management
Vishal Singh
 
Instruction cycle with interrupts
Shubham Jain
 
Pass 1 flowchart
Namisha Sharma
 
Computer instructions
Anuj Modi
 
Unit 4-booth algorithm
vishal choudhary
 
Storage management in operating system
DeepikaT13
 
Computer registers
DeepikaT13
 
Presentation Routing algorithm
Basit Hussain
 
Unit 3 sp assembler
Deepmala Sharma
 
Disk structure
sangrampatil81
 
Formal Languages and Automata Theory Unit 1
Srimatre K
 

Similar to addressing modes in computer architecture (20)

PPT
11 instruction sets addressing modes
Wasif Naeem
 
PDF
Presentation of addressing mode presentation
kiranrawkey2912
 
PPT
11 instruction sets addressing modes
dilip kumar
 
PPT
Digital principles and computer organisation -Addressing modes.ppt
JemimaA1
 
PPT
Computer Architecture and organization ppt.
mali yogesh kumar
 
PPT
Ch 11
Rishi Trivedi
 
PPT
Lec3 instructions branch carl hamcher
Venkata Krishnakanth P
 
PPT
ch 3_The CPU_modified.ppt of central processing unit
Toyba2
 
PPT
11_ Instruction Sets addressing modes -1.ppt
Suchikage
 
PPTX
Anshika 1111.pptx
AnSHiKa187943
 
PPT
11 instruction sets addressing modes
Seshu Chakravarthy
 
PPT
11_ Instruction Sets addressing modes .ppt
SwarajKumarPradhan
 
PPT
11 instruction sets addressing modes
Kanika Thakur
 
PPT
11 instruction sets addressing modes
Sher Shah Merkhel
 
PPT
11 instruction sets addressing modes
Anwal Mirza
 
PPTX
Computer organization and architecture
Subesh Kumar Yadav
 
PDF
Ch13- Inst Addressing Modes & Formats.pdf
saimawarsi
 
PPTX
Computer Organisation - Addressing Modes
ArunaDevi63
 
PDF
Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086
samirbharat77
 
PPTX
lecture3-instructionset-120307014407-phpapp01.pptx
rajesshs31r
 
11 instruction sets addressing modes
Wasif Naeem
 
Presentation of addressing mode presentation
kiranrawkey2912
 
11 instruction sets addressing modes
dilip kumar
 
Digital principles and computer organisation -Addressing modes.ppt
JemimaA1
 
Computer Architecture and organization ppt.
mali yogesh kumar
 
Lec3 instructions branch carl hamcher
Venkata Krishnakanth P
 
ch 3_The CPU_modified.ppt of central processing unit
Toyba2
 
11_ Instruction Sets addressing modes -1.ppt
Suchikage
 
Anshika 1111.pptx
AnSHiKa187943
 
11 instruction sets addressing modes
Seshu Chakravarthy
 
11_ Instruction Sets addressing modes .ppt
SwarajKumarPradhan
 
11 instruction sets addressing modes
Kanika Thakur
 
11 instruction sets addressing modes
Sher Shah Merkhel
 
11 instruction sets addressing modes
Anwal Mirza
 
Computer organization and architecture
Subesh Kumar Yadav
 
Ch13- Inst Addressing Modes & Formats.pdf
saimawarsi
 
Computer Organisation - Addressing Modes
ArunaDevi63
 
Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086
samirbharat77
 
lecture3-instructionset-120307014407-phpapp01.pptx
rajesshs31r
 
Ad

More from ShahidSultan24 (8)

PPT
09-ch04-1-scanner class in java with explainiation
ShahidSultan24
 
PPT
Strings in javamnjn ijnjun oinoin oinoi .ppt
ShahidSultan24
 
PPTX
Introduction-to-the-Internet-of-Things.pptx
ShahidSultan24
 
PPTX
Computer System Architecture INTRODUCTION
ShahidSultan24
 
PPTX
COMPUTER SYSTEM ARCHITECTURE UNIT 3 FULL SLIDES
ShahidSultan24
 
PPT
relational algebra and calculus queries .ppt
ShahidSultan24
 
PPT
hgvgvhbhv hvh h h h h h h h h h h h h .ppt
ShahidSultan24
 
PPT
Relational Algebra and relational queries .ppt
ShahidSultan24
 
09-ch04-1-scanner class in java with explainiation
ShahidSultan24
 
Strings in javamnjn ijnjun oinoin oinoi .ppt
ShahidSultan24
 
Introduction-to-the-Internet-of-Things.pptx
ShahidSultan24
 
Computer System Architecture INTRODUCTION
ShahidSultan24
 
COMPUTER SYSTEM ARCHITECTURE UNIT 3 FULL SLIDES
ShahidSultan24
 
relational algebra and calculus queries .ppt
ShahidSultan24
 
hgvgvhbhv hvh h h h h h h h h h h h h .ppt
ShahidSultan24
 
Relational Algebra and relational queries .ppt
ShahidSultan24
 
Ad

Recently uploaded (20)

PPT
Carmon_Remote Sensing GIS by Mahesh kumar
DhananjayM6
 
DOC
MRRS Strength and Durability of Concrete
CivilMythili
 
PPTX
VITEEE 2026 Exam Details , Important Dates
SonaliSingh127098
 
PPTX
Introduction to Basic Renewable Energy.pptx
examcoordinatormesu
 
PDF
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
PPTX
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
PPTX
DATA BASE MANAGEMENT AND RELATIONAL DATA
gomathisankariv2
 
PDF
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
PPTX
fatigue in aircraft structures-221113192308-0ad6dc8c.pptx
aviatecofficial
 
PPTX
Damage of stability of a ship and how its change .pptx
ehamadulhaque
 
PPTX
Presentation 2.pptx AI-powered home security systems Secure-by-design IoT fr...
SoundaryaBC2
 
PPTX
Knowledge Representation : Semantic Networks
Amity University, Patna
 
PDF
Design Thinking basics for Engineers.pdf
CMR University
 
PPT
PPT2_Metal formingMECHANICALENGINEEIRNG .ppt
Praveen Kumar
 
PPTX
The Role of Information Technology in Environmental Protectio....pptx
nallamillisriram
 
PDF
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
PDF
International Journal of Information Technology Convergence and services (IJI...
ijitcsjournal4
 
PPTX
2025 CGI Congres - Surviving agile v05.pptx
Derk-Jan de Grood
 
PDF
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
PPTX
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
Carmon_Remote Sensing GIS by Mahesh kumar
DhananjayM6
 
MRRS Strength and Durability of Concrete
CivilMythili
 
VITEEE 2026 Exam Details , Important Dates
SonaliSingh127098
 
Introduction to Basic Renewable Energy.pptx
examcoordinatormesu
 
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
DATA BASE MANAGEMENT AND RELATIONAL DATA
gomathisankariv2
 
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
fatigue in aircraft structures-221113192308-0ad6dc8c.pptx
aviatecofficial
 
Damage of stability of a ship and how its change .pptx
ehamadulhaque
 
Presentation 2.pptx AI-powered home security systems Secure-by-design IoT fr...
SoundaryaBC2
 
Knowledge Representation : Semantic Networks
Amity University, Patna
 
Design Thinking basics for Engineers.pdf
CMR University
 
PPT2_Metal formingMECHANICALENGINEEIRNG .ppt
Praveen Kumar
 
The Role of Information Technology in Environmental Protectio....pptx
nallamillisriram
 
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
International Journal of Information Technology Convergence and services (IJI...
ijitcsjournal4
 
2025 CGI Congres - Surviving agile v05.pptx
Derk-Jan de Grood
 
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 

addressing modes in computer architecture

  • 1. Addressing Modes • The term addressing modes refers to the way in which the operand of an instruction is specified. The addressing mode specifies a rule for interpreting or modifying the address field of the instruction before the operand is actually executed.
  • 2. Addressing Modes • Implied • Immediate • Direct • Indirect • Register • Register Indirect • Displacement (Indexed) • Stack
  • 3. Implied Addressing • Implied addressing refers to instructions that comprise only an opcode without an operand; for example, the INCA(“increment accumulator”)Instruction. • Zero address instruction are designed with implied addressing mode. • ADD (it takes previous two values from the stack and ADD’s them). • CLC (used to reset Carry flag to 0)
  • 4. Immediate Addressing • Operand is part of instruction • Operand = address field • e.g. ADD 5 —Add 5 to contents of accumulator —5 is operand • No memory reference to fetch data • Fast • Limited range
  • 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
  • 7. Direct Addressing Diagram Address A Opcode Instruction Memory Operand
  • 8. Indirect Addressing (1) • 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 (2) • 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
  • 10. Indirect Addressing Diagram Address A Opcode Instruction Memory Operand Pointer to operand
  • 11. Register Addressing (1) • Operand is held in register named in address filed • EA = R • Limited number of registers • Very small address field needed —Shorter instructions —Faster instruction fetch
  • 12. Register Addressing (2) • No memory access • Very fast execution • Very limited address space • Multiple registers helps performance —Requires good assembly programming or compiler writing —N.B. C programming – register int a; • c.f. Direct addressing
  • 13. Register Addressing Diagram Register Address R Opcode Instruction Registers Operand
  • 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
  • 15. Register Indirect Addressing Diagram Register Address R Opcode Instruction Memory Operand Pointer to Operand Registers
  • 18. Displacement Addressing • EA = A + (R) • Address field hold two values —A = base value —R = register that holds displacement —or vice versa
  • 19. Displacement Addressing Diagram Register R Opcode Instruction Memory Operand Pointer to Operand Registers Address A +

Editor's Notes