SlideShare a Scribd company logo
Assignment on
Different types of Addressing Modes
Course Title: Computer Architecture & Organization
Course Code: CSE 322
Submitted By:
Umme Habiba
ID: 142-15-3677
Section: B
Submitted To
Rubaiya Hafiz
Lecturer
Department of Computer
Science & Engineering
Addressing modes:
Addressing modes are nothing but the different ways in which the
location of an operand can be specified in an instruction. The number of
addressing modes that a processor supports changes according to the
instruction set it is based on, however there are a few generic ones that
are present in almost all processors and are thus of utmost importance.
They are as follows:
• register (or register-direct) addressing: R1
• register indirect addressing: M[R1]
• immediate addressing: data
• direct (or absolute) addressing: M[address]
• indirect addressing: M[M[address]]
• implicit addressing: default location
• relative & indexed addressing: M[R1+address]
• pre-decrement, post-decrement, pre-increment, ...
Register(or register-direct)Addressing:
• The operand is specified with in one of the processor register.
• Instruction specifies the register in which the operand is stored.
Example:
Move
MOV C , A C ← A Here A is the operand specified
in register
Add
ADD B A ← A + B Here B is the operand specified
in register
Figure: Register Addressing Diagram
RegisterIndirect Addressing:
The instruction specifies the register in which the memory address of
operand is placed.
• It do not specify the operand itself but its location with in the memory
where operand is placed.
Example:
Move
MOV A , M A ← [[H][L]]
It moves the data from memory location specified by HL register pair to
A
Figure: Register Indirect Addressing Diagram
Immediate Addressing:
The operand is specified with in the instruction.
• Operand itself is provided in the instruction rather than its address.
Example:
Move Immediate
MVI A , 15h A ← 15h
Here 15h is the immediate operand
Add Immediate
ADI 3Eh A ← A + 3Eh
Here 3Eh is the immediate operand
Figure: Immediate Addressing Diagram
Direct (or absolute)addressing:
• The instruction specifies the direct address of the operand.
• The memory address is specified where the actual operand is.
Example:
Load Accumulator
LDA 2805h A ← [2805]
It loads the data from memory location 2805 to A.
Store Accumulator
STA 2803h [2803] ← A
It stores the data from A to memory location 2803.
Figure: Direct Addressing Diagram
Indirect Addressing:
• The instruction specifies the indirect address where the effective
address of the operand is placed.
• The memory address is specified where the actual address of operand
is placed.
Example:
Move
MOV A, 2802h A ← [[2802]]
It moves the data from memory location specified by the
location 2802 to A.
Figure: Indirect Addressing Diagram
Implicit Addressing:
• It is also called inherent addressing mode.
• The operand is implied by the instruction.
• The operand is hidden/fixed inside the instruction.
Example:
Complement Accumulator CMA
(Here accumulator A is implied by the instruction)
Complement Carry Flag CMC
(Here Flags register is implied by the instruction)
Set Carry Flag STC
(Here Flags register is implied by the instruction)
RelativeAddressing Mode:
In relative addressing mode, contents of Program Counter PC is added to
address part of instruction to obtain effective address.
• The address part of the instruction is called as offset and it can +ve or –
ve. • When the offset is added to the PC the resultant number is the
memory location where the operand will be placed.
Example:
Figure: Relative Addressing Diagram
Index Addressing Mode:
In index addressing mode, contents of Index register is added to address
part of instruction to obtain effective address.
• The address part of instruction holds the beginning/base address and is
called as base.
• The index register hold the index value, which is +ve.
• Base remains same, the index changes.
• When the base is added to the index register the resultant number is the
memory location where the operand will be placed.
Example:
Figure: Indexed Addressing Diagram
Auto-incrementor Auto-decrement Addressing Mode:
• It is similar to register indirect addressing mode.
• Here the register is incremented or decremented before or after its
value is used.
Example:
Figure: Indirect Addressing Diagram
Figure: Indirect Addressing Diagram

More Related Content

What's hot

Addressing mode Computer Architecture
Addressing mode  Computer ArchitectureAddressing mode  Computer Architecture
Addressing mode Computer Architecture
Haris456
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
9840596838
 

What's hot (20)

Logical micro-operations
Logical micro-operationsLogical micro-operations
Logical micro-operations
 
instruction format and addressing modes
instruction format and addressing modesinstruction format and addressing modes
instruction format and addressing modes
 
Addressing modes ppt
Addressing modes pptAddressing modes ppt
Addressing modes ppt
 
General register organization (computer organization)
General register organization  (computer organization)General register organization  (computer organization)
General register organization (computer organization)
 
Instruction codes
Instruction codesInstruction codes
Instruction codes
 
8086 instruction set (with simulator)
8086 instruction set (with simulator)8086 instruction set (with simulator)
8086 instruction set (with simulator)
 
Memory mapping
Memory mappingMemory mapping
Memory mapping
 
assembly flag resister
assembly flag resisterassembly flag resister
assembly flag resister
 
Addressing mode Computer Architecture
Addressing mode  Computer ArchitectureAddressing mode  Computer Architecture
Addressing mode Computer Architecture
 
8086
80868086
8086
 
Direct memory access
Direct memory accessDirect memory access
Direct memory access
 
DMA operation
DMA operationDMA operation
DMA operation
 
ADDRESSING MODE
ADDRESSING MODEADDRESSING MODE
ADDRESSING MODE
 
Instruction cycle
Instruction cycleInstruction cycle
Instruction cycle
 
Computer architecture addressing modes and formats
Computer architecture addressing modes and formatsComputer architecture addressing modes and formats
Computer architecture addressing modes and formats
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
 
Register organization, stack
Register organization, stackRegister organization, stack
Register organization, stack
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
Memory Reference instruction
Memory Reference instructionMemory Reference instruction
Memory Reference instruction
 

Viewers also liked

Types of Addressing modes- COA
Types of Addressing modes- COATypes of Addressing modes- COA
Types of Addressing modes- COA
Ruchi Maurya
 
Lodge Guest Directory
Lodge Guest DirectoryLodge Guest Directory
Lodge Guest Directory
Iris Klein
 

Viewers also liked (15)

Addressing modes
Addressing modesAddressing modes
Addressing modes
 
Types of Addressing modes- COA
Types of Addressing modes- COATypes of Addressing modes- COA
Types of Addressing modes- COA
 
Readme
ReadmeReadme
Readme
 
slide do 5ºA
slide do 5ºAslide do 5ºA
slide do 5ºA
 
بروشور معرفی مرکز دولتی صدور گواهی الکترونیکی ریشه
بروشور معرفی مرکز دولتی صدور گواهی الکترونیکی ریشهبروشور معرفی مرکز دولتی صدور گواهی الکترونیکی ریشه
بروشور معرفی مرکز دولتی صدور گواهی الکترونیکی ریشه
 
how to check line chat history of others
 how to check line chat history of others how to check line chat history of others
how to check line chat history of others
 
Lodge Guest Directory
Lodge Guest DirectoryLodge Guest Directory
Lodge Guest Directory
 
how to check line history
how to check line historyhow to check line history
how to check line history
 
Критрерії успіху вашого сайту
Критрерії успіху вашого сайтуКритрерії успіху вашого сайту
Критрерії успіху вашого сайту
 
how to monitor line messages android
how to monitor line messages androidhow to monitor line messages android
how to monitor line messages android
 
без инт
без интбез инт
без инт
 
how to track someones line conversations
how to track someones line conversationshow to track someones line conversations
how to track someones line conversations
 
how to spy on LINE chat history
how to spy on LINE chat history how to spy on LINE chat history
how to spy on LINE chat history
 
Readme
ReadmeReadme
Readme
 
DIY - Rose & Wax Flower Crown
DIY - Rose & Wax Flower CrownDIY - Rose & Wax Flower Crown
DIY - Rose & Wax Flower Crown
 

Similar to Different types of Addressing.cao

Addressing mode & data transfer instruction of 8085
Addressing mode & data transfer instruction of 8085Addressing mode & data transfer instruction of 8085
Addressing mode & data transfer instruction of 8085
Chinmayee samal
 
Computer organization and architecture
Computer organization and architectureComputer organization and architecture
Computer organization and architecture
Subesh Kumar Yadav
 
(246431835) instruction set principles (2) (1)
(246431835) instruction set principles (2) (1)(246431835) instruction set principles (2) (1)
(246431835) instruction set principles (2) (1)
Alveena Saleem
 
itft-Instruction set-of-8085
itft-Instruction set-of-8085itft-Instruction set-of-8085
itft-Instruction set-of-8085
Shifali Sharma
 

Similar to Different types of Addressing.cao (20)

Assignment on different types of addressing modes
Assignment on different types of addressing modesAssignment on different types of addressing modes
Assignment on different types of addressing modes
 
Addressing mode & data transfer instruction of 8085
Addressing mode & data transfer instruction of 8085Addressing mode & data transfer instruction of 8085
Addressing mode & data transfer instruction of 8085
 
Computer organization and architecture
Computer organization and architectureComputer organization and architecture
Computer organization and architecture
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
 
Instruction format UJJWAL MATOLIYA.pptx
Instruction format UJJWAL MATOLIYA.pptxInstruction format UJJWAL MATOLIYA.pptx
Instruction format UJJWAL MATOLIYA.pptx
 
Arithmetic & Logic Unit
Arithmetic & Logic UnitArithmetic & Logic Unit
Arithmetic & Logic Unit
 
ITEC582-Chapter 12.pptx
ITEC582-Chapter 12.pptxITEC582-Chapter 12.pptx
ITEC582-Chapter 12.pptx
 
UNIT-3.pptx
UNIT-3.pptxUNIT-3.pptx
UNIT-3.pptx
 
Chapter 7
Chapter 7Chapter 7
Chapter 7
 
Memory Reference Instructions
Memory Reference InstructionsMemory Reference Instructions
Memory Reference Instructions
 
(246431835) instruction set principles (2) (1)
(246431835) instruction set principles (2) (1)(246431835) instruction set principles (2) (1)
(246431835) instruction set principles (2) (1)
 
Data_Transfer&Manupulation Instructions.pptx
Data_Transfer&Manupulation Instructions.pptxData_Transfer&Manupulation Instructions.pptx
Data_Transfer&Manupulation Instructions.pptx
 
Assembly Language for as level computer science
Assembly Language for as level computer scienceAssembly Language for as level computer science
Assembly Language for as level computer science
 
Instruction format
Instruction formatInstruction format
Instruction format
 
Assembler - System Programming
Assembler - System ProgrammingAssembler - System Programming
Assembler - System Programming
 
Anshika 1111.pptx
Anshika 1111.pptxAnshika 1111.pptx
Anshika 1111.pptx
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
 
Instruction-Sets-2.pptx
Instruction-Sets-2.pptxInstruction-Sets-2.pptx
Instruction-Sets-2.pptx
 
Al2ed chapter4
Al2ed chapter4Al2ed chapter4
Al2ed chapter4
 
itft-Instruction set-of-8085
itft-Instruction set-of-8085itft-Instruction set-of-8085
itft-Instruction set-of-8085
 

More from Umme habiba

More from Umme habiba (20)

Compiler lab final report writing
Compiler lab final report writingCompiler lab final report writing
Compiler lab final report writing
 
online bus ticket booking system
online bus ticket booking systemonline bus ticket booking system
online bus ticket booking system
 
online bus ticket booking system
online bus ticket booking systemonline bus ticket booking system
online bus ticket booking system
 
online bus ticket booking system
online bus ticket booking systemonline bus ticket booking system
online bus ticket booking system
 
Accounting adjusting
Accounting adjustingAccounting adjusting
Accounting adjusting
 
Economic.assignment
Economic.assignmentEconomic.assignment
Economic.assignment
 
Major economic problems of bangladesh
Major economic problems of bangladeshMajor economic problems of bangladesh
Major economic problems of bangladesh
 
Overview of various types of operating system
Overview of various types of operating systemOverview of various types of operating system
Overview of various types of operating system
 
Os lab report(shell coding)
Os lab report(shell coding)Os lab report(shell coding)
Os lab report(shell coding)
 
Ecommerce(online Shopping)
Ecommerce(online Shopping)Ecommerce(online Shopping)
Ecommerce(online Shopping)
 
2nd generation of computer
2nd generation of computer2nd generation of computer
2nd generation of computer
 
Art_of_living assignment
Art_of_living assignmentArt_of_living assignment
Art_of_living assignment
 
Art_of_living
Art_of_livingArt_of_living
Art_of_living
 
Informationsecurity
InformationsecurityInformationsecurity
Informationsecurity
 
SQL Joinning.Database
SQL Joinning.DatabaseSQL Joinning.Database
SQL Joinning.Database
 
WLAN of networking.ppt
WLAN of networking.pptWLAN of networking.ppt
WLAN of networking.ppt
 
simpson's in numerical method
simpson's in numerical methodsimpson's in numerical method
simpson's in numerical method
 
Error detection in Data comunication
 Error detection in Data comunication Error detection in Data comunication
Error detection in Data comunication
 
microsoft word & powerpoint
 microsoft word & powerpoint microsoft word & powerpoint
microsoft word & powerpoint
 
Upmovie review (1)
Upmovie review (1)Upmovie review (1)
Upmovie review (1)
 

Recently uploaded

Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdf
Kamal Acharya
 

Recently uploaded (20)

Construction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxConstruction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptx
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
fundamentals of drawing and isometric and orthographic projection
fundamentals of drawing and isometric and orthographic projectionfundamentals of drawing and isometric and orthographic projection
fundamentals of drawing and isometric and orthographic projection
 
Top 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering ScientistTop 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering Scientist
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
Scaling in conventional MOSFET for constant electric field and constant voltage
Scaling in conventional MOSFET for constant electric field and constant voltageScaling in conventional MOSFET for constant electric field and constant voltage
Scaling in conventional MOSFET for constant electric field and constant voltage
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdfONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
ONLINE VEHICLE RENTAL SYSTEM PROJECT REPORT.pdf
 
Toll tax management system project report..pdf
Toll tax management system project report..pdfToll tax management system project report..pdf
Toll tax management system project report..pdf
 
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdfRESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
RESORT MANAGEMENT AND RESERVATION SYSTEM PROJECT REPORT.pdf
 
Arduino based vehicle speed tracker project
Arduino based vehicle speed tracker projectArduino based vehicle speed tracker project
Arduino based vehicle speed tracker project
 
KIT-601 Lecture Notes-UNIT-5.pdf Frame Works and Visualization
KIT-601 Lecture Notes-UNIT-5.pdf Frame Works and VisualizationKIT-601 Lecture Notes-UNIT-5.pdf Frame Works and Visualization
KIT-601 Lecture Notes-UNIT-5.pdf Frame Works and Visualization
 
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
 
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWINGBRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
 
Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdf
 
fluid mechanics gate notes . gate all pyqs answer
fluid mechanics gate notes . gate all pyqs answerfluid mechanics gate notes . gate all pyqs answer
fluid mechanics gate notes . gate all pyqs answer
 
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data StreamKIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
 

Different types of Addressing.cao

  • 1. Assignment on Different types of Addressing Modes Course Title: Computer Architecture & Organization Course Code: CSE 322 Submitted By: Umme Habiba ID: 142-15-3677 Section: B Submitted To Rubaiya Hafiz Lecturer Department of Computer Science & Engineering
  • 2. Addressing modes: Addressing modes are nothing but the different ways in which the location of an operand can be specified in an instruction. The number of addressing modes that a processor supports changes according to the instruction set it is based on, however there are a few generic ones that are present in almost all processors and are thus of utmost importance. They are as follows: • register (or register-direct) addressing: R1 • register indirect addressing: M[R1] • immediate addressing: data • direct (or absolute) addressing: M[address] • indirect addressing: M[M[address]] • implicit addressing: default location • relative & indexed addressing: M[R1+address] • pre-decrement, post-decrement, pre-increment, ... Register(or register-direct)Addressing: • The operand is specified with in one of the processor register. • Instruction specifies the register in which the operand is stored. Example:
  • 3. Move MOV C , A C ← A Here A is the operand specified in register Add ADD B A ← A + B Here B is the operand specified in register Figure: Register Addressing Diagram RegisterIndirect Addressing: The instruction specifies the register in which the memory address of operand is placed. • It do not specify the operand itself but its location with in the memory where operand is placed. Example:
  • 4. Move MOV A , M A ← [[H][L]] It moves the data from memory location specified by HL register pair to A Figure: Register Indirect Addressing Diagram Immediate Addressing: The operand is specified with in the instruction. • Operand itself is provided in the instruction rather than its address. Example: Move Immediate MVI A , 15h A ← 15h Here 15h is the immediate operand Add Immediate
  • 5. ADI 3Eh A ← A + 3Eh Here 3Eh is the immediate operand Figure: Immediate Addressing Diagram Direct (or absolute)addressing: • The instruction specifies the direct address of the operand. • The memory address is specified where the actual operand is. Example: Load Accumulator LDA 2805h A ← [2805] It loads the data from memory location 2805 to A. Store Accumulator STA 2803h [2803] ← A It stores the data from A to memory location 2803.
  • 6. Figure: Direct Addressing Diagram Indirect Addressing: • The instruction specifies the indirect address where the effective address of the operand is placed. • The memory address is specified where the actual address of operand is placed. Example: Move MOV A, 2802h A ← [[2802]] It moves the data from memory location specified by the location 2802 to A.
  • 7. Figure: Indirect Addressing Diagram Implicit Addressing: • It is also called inherent addressing mode. • The operand is implied by the instruction. • The operand is hidden/fixed inside the instruction. Example: Complement Accumulator CMA (Here accumulator A is implied by the instruction) Complement Carry Flag CMC (Here Flags register is implied by the instruction) Set Carry Flag STC (Here Flags register is implied by the instruction)
  • 8. RelativeAddressing Mode: In relative addressing mode, contents of Program Counter PC is added to address part of instruction to obtain effective address. • The address part of the instruction is called as offset and it can +ve or – ve. • When the offset is added to the PC the resultant number is the memory location where the operand will be placed. Example: Figure: Relative Addressing Diagram
  • 9. Index Addressing Mode: In index addressing mode, contents of Index register is added to address part of instruction to obtain effective address. • The address part of instruction holds the beginning/base address and is called as base. • The index register hold the index value, which is +ve. • Base remains same, the index changes. • When the base is added to the index register the resultant number is the memory location where the operand will be placed. Example: Figure: Indexed Addressing Diagram
  • 10. Auto-incrementor Auto-decrement Addressing Mode: • It is similar to register indirect addressing mode. • Here the register is incremented or decremented before or after its value is used. Example: Figure: Indirect Addressing Diagram Figure: Indirect Addressing Diagram