10 Addressing Modes
10 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.