0% found this document useful (0 votes)
18 views9 pages

3.addressing Mode

The document discusses different addressing modes used in computer architecture including immediate, direct, indirect, register, register indirect, displacement, and implicit addressing modes. It provides examples and discusses the advantages and disadvantages of each addressing mode.

Uploaded by

honeykanna2024
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views9 pages

3.addressing Mode

The document discusses different addressing modes used in computer architecture including immediate, direct, indirect, register, register indirect, displacement, and implicit addressing modes. It provides examples and discusses the advantages and disadvantages of each addressing mode.

Uploaded by

honeykanna2024
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Addressing Mode

Subject: Computer Organization and Architecure


Cource Code: CS208 Semester: IV Unit: I

Dr. Varun Kumar


varun [email protected]

Indian Institute of Information Technology, Vadodara


International Campus Diu (IIITV-ICD)

Subject: Computer Organization and ArchitecureCource


Dr. Code:
Varun CS208
Kumar / Lecture-3
Semester: IV Unit: I Dr. Varun Kumarvarun
1 /kuma
9
Outlines

1 Introduction to addressing mode:


Immediate
Direct
Indirect
Register
Register indirect
Displacement
Implicit

2 8085 machine language

3 Register

4 Instruction type

Subject: Computer Organization and ArchitecureCource


Dr. Code:
Varun CS208
Kumar / Lecture-3
Semester: IV Unit: I Dr. Varun Kumarvarun
2 /kuma
9
Introduction to addressing mode

Key points to remember


⇒ Immediate addressing mode
8/16 bit data is specified in the instruction itself as one of its operand.

Example
MVI A, 45H
LXI H, 3050H
JMP 2051H
Advantage
No memory reference
Disadvantage
Limited operand magnitude

Subject: Computer Organization and ArchitecureCource


Dr. Code:
Varun CS208
Kumar / Lecture-3
Semester: IV Unit: I Dr. Varun Kumarvarun
3 /kuma
9
Continued–

⇒ Direct addressing mode

Example
LDA 2050H
STA 2176H
MOV D, 2176H
Advantage
Simple
Disadvantage
Limited address space
Subject: Computer Organization and ArchitecureCource
Dr. Code:
Varun CS208
Kumar / Lecture-3
Semester: IV Unit: I Dr. Varun Kumarvarun
4 /kuma
9
Continued–

⇒ Indirect addressing mode

Example
STAX M
LDAX B
Advantage
Large address space
Disadvantage
Multiple memory references

Subject: Computer Organization and ArchitecureCource


Dr. Code:
Varun CS208
Kumar / Lecture-3
Semester: IV Unit: I Dr. Varun Kumarvarun
5 /kuma
9
Continued–

⇒ Register addressing mode

Example
MOV A, B
ADD B
SUB A, D
Advantage
No memory reference
Disadvantage
Limited address space
Subject: Computer Organization and ArchitecureCource
Dr. Code:
Varun CS208
Kumar / Lecture-3
Semester: IV Unit: I Dr. Varun Kumarvarun
6 /kuma
9
Continued–

⇒ Register indirect addressing mode

Example
MOV A, M
ADD A, [BX]
Advantage
Large address space
Disadvantage
Extra memory reference

Subject: Computer Organization and ArchitecureCource


Dr. Code:
Varun CS208
Kumar / Lecture-3
Semester: IV Unit: I Dr. Varun Kumarvarun
7 /kuma
9
Continued–

⇒ Displacement addressing mode

EA = A + (R)
EA→ Effective address, A→ Memory address, R→ Register address
Advantage → Flexibility
Disadvantage → Complexity

Subject: Computer Organization and ArchitecureCource


Dr. Code:
Varun CS208
Kumar / Lecture-3
Semester: IV Unit: I Dr. Varun Kumarvarun
8 /kuma
9
Continued–

⇒ Implied or Implicit addressing mode


The operand are specified implicitly inside the instruction
Example
CMP A
STC
CMC
Advantage
No memory reference
Disadvantage
Limited applicability

Subject: Computer Organization and ArchitecureCource


Dr. Code:
Varun CS208
Kumar / Lecture-3
Semester: IV Unit: I Dr. Varun Kumarvarun
9 /kuma
9

You might also like