Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.
Assignment on
Different types of Addressing Modes
Course Title: Computer Architecture & Organization
Course Code: CSE 322
...
Addressing modes:
Addressing modes are nothing but the different ways in which the
location of an operand can be specified...
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 re...
Move
MOV A , M A ← [[H][L]]
It moves the data from memory location specified by HL register pair to
A
Figure: Register Ind...
ADI 3Eh A ← A + 3Eh
Here 3Eh is the immediate operand
Figure: Immediate Addressing Diagram
Direct (or absolute)addressing:...
Figure: Direct Addressing Diagram
Indirect Addressing:
• The instruction specifies the indirect address where the effectiv...
Figure: Indirect Addressing Diagram
Implicit Addressing:
• It is also called inherent addressing mode.
• The operand is im...
RelativeAddressing Mode:
In relative addressing mode, contents of Program Counter PC is added to
address part of instructi...
Index Addressing Mode:
In index addressing mode, contents of Index register is added to address
part of instruction to obt...
Auto-incrementor Auto-decrement Addressing Mode:
• It is similar to register indirect addressing mode.
• Here the register...
Sie haben dieses Dokument abgeschlossen.
Lade die Datei herunter und lese sie offline.
Nächste SlideShare
Addressing modes
Weiter
Nächste SlideShare
Addressing modes
Weiter
Herunterladen, um offline zu lesen und im Vollbildmodus anzuzeigen.

3

Teilen

Different types of Addressing.cao

Herunterladen, um offline zu lesen

Different types of addressing mode in computer architecture and organization

Ähnliche Bücher

Kostenlos mit einer 30-tägigen Testversion von Scribd

Alle anzeigen

Ähnliche Hörbücher

Kostenlos mit einer 30-tägigen Testversion von Scribd

Alle anzeigen

Different types of Addressing.cao

  1. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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
  • shewadebalke

    May. 9, 2021
  • ThulasiGantla

    Jan. 2, 2019
  • PratibhaSingh173

    Sep. 4, 2017

Different types of addressing mode in computer architecture and organization

Aufrufe

Aufrufe insgesamt

2.650

Auf Slideshare

0

Aus Einbettungen

0

Anzahl der Einbettungen

0

Befehle

Downloads

24

Geteilt

0

Kommentare

0

Likes

3

×