Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

Write short note on relative addressing mode and indirect addressing mode. OR Explain the following addressing modes with the help of an example each :i. Direct ii. Register indirect iii. Implied iv. Immediate v. Indexed

Addressing modes in computer architecture determine how instructions specify the operands they operate on. Let’s break down each addressing mode with simpler explanations and examples:

  1. Direct Addressing:
    • Explanation: In direct addressing, the operand’s address is directly specified in the instruction.
    • Example: LOAD 500 means load the value from memory address 500 into a register.
  1. Register Indirect Addressing:
    • Explanation: The instruction contains the address of a register whose content is the effective address of the operand.
    • Example: LOAD (R1) means load the value from the memory address stored in register R1 into a register.
  1. Implied Addressing:
    • Explanation: Operand is implied by the instruction itself, often used for operations where operands are known.
    • Example: INCREMENT without specifying any operand directly implies to increment the value in a specific register.
  1. Immediate Addressing:
    • Explanation: The operand’s value is directly specified within the instruction.
    • Example: ADD #10 means add the immediate value 10 to the content of a register.
  1. Indexed Addressing:
    • Explanation: The effective address is generated by adding a constant value to the contents of a register (index).
    • Example: LOAD 600(R2) means load the value from memory address calculated by adding 600 to the content of register R2.

Leave a Comment