0% found this document useful (0 votes)
4 views

10 Addressing Modes

Uploaded by

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

10 Addressing Modes

Uploaded by

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

Addressing Modes

Addressing Modes
• Specify different ways of determining (calculating) effective address of an
operand.
• 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.
• The effective address is a term that describes the address
of an operand that is stored in memory.
• There are several methods to designate the effective address
of those operands or get them directly from the register.
These methods are known as addressing modes.
Types of Addressing Modes
• Direct address mode :The operand is located at the specified address given
• Indirect address mode: The address specifies the effective address of the operand
• Register mode: The operands are in registers.
• Register indirect mode: The instruction specifies a register that contains the address of the operand
• Relative address mode: The effective address is the summation of the address field and the content
of the PC.
• Immediate mode: The operand is specified in the instruction
• Implied mode: The operands are specified implicitly in the definition of the instruction –complement
accumulator or zero-address instructions
• Auto increment or auto decrement mode: Similar to the register indirect mode
• Indexed addressing mode: The effective address is the summation of an index register and the
address field
• Base register address mode: The effective address is the summation of a base register and the
address field
Direct Addressing Mode

Direct address mode: the operand is located at the specified address given
Indirect address mode:
Register Addressing mode
Register Indirect Addressing
Relative Addressing Mode.
Immediate Addressing Mode
Index Register Addressing Mode
Base Register Addressing Mode
Implied Addressing Mode
Autoincrement Addressing Mode
Auto-decrement Addressing Mode
Problem
•An instruction is stored at location 300 with its address fields at location 301. The
address field has the value 400. A processor register RI contain the number 200.

• Evaluate the effective address if the addressing mode of the instruction is


(a) Direct (b) Immediate (c) Relative (d) Register Indirect
a) Direct Addressing:
Effective Address(EA)= Value of address field=400
b) Indirect Addressing
Effective Address(EA)= Memory content of address field=M[400]
c) Immediate Addressing:
Effective Address(EA)= Address of the address field
d) Register Addressing :
Effective Address(EA)= Name of register= R1
e) Register Indirect Addressing :
Effective Address(EA)= Value of register =200
f) Relative Addressing:
Effective Address(EA)= Value of PC + value of address field = 702
g) Index Addressing:
Effective Address(EA)= value of indexing + value of address field
= 200 +400
= 600.
h) Auto-Increment Addressing:
Effective Address(EA)= Value of register = 200
i) Auto-Decrement Addressing:
Effective Address(EA)= Value of register -1 = 200-1=199

You might also like