All Exams Test series for 1 year @ ₹349 only
Question

Match the LIST-I with LIST-II
LIST-ILIST-II
A. Immediate addressing modeI. MOV A,@R0
B. Indexed addressing modeII. MOV DPTR,#4521H
C. Register addressing modeIII. MOVC A,@A+DPTR
D. Register indirect addressing modeIV. MOV A,R0
Choose the correct answer from the options given below:

The correct answer is
A-II, B-III, C-IV, D-I

Matching Addressing Modes with Instructions

This question requires matching specific assembly language instructions (LIST-I) with their corresponding addressing modes (LIST-II).

Addressing Mode Analysis

  • A. Immediate Addressing Mode: The data is part of the instruction itself.
    • Example: $MOV DPTR,#4521H$. Here, $#4521H$ is the immediate data being loaded into the DPTR register.
    • Matches with: II. MOV DPTR,#4521H
  • B. Indexed Addressing Mode: The effective address is calculated by adding a base register (like DPTR) and an index register (like A). This mode is typically used for look-up tables.
    • Example: $MOVC A,@A+DPTR$. The address is computed as the sum of the accumulator (A) and DPTR.
    • Matches with: III. MOVC A,@A+DPTR
  • C. Register Addressing Mode: The operand is directly located in a CPU register specified by the instruction.
    • Example: $MOV A, R0$. The content of register R0 is moved to register A.
    • Matches with: IV. MOV A, R0
  • D. Register Indirect Addressing Mode: The instruction specifies a register that contains the *address* of the operand, not the operand itself.
    • Example: $MOV A,@R0$. The data is fetched from the memory location whose address is currently stored in register R0.
    • Matches with: I. MOV A,@R0

Correct Matching

Based on the analysis:

  • A matches with II
  • B matches with III
  • C matches with IV
  • D matches with I

This corresponds to the matching: A-II, B-III, C-IV, D-I.

Was this answer helpful?

Important Questions from Addressing Modes

  1. How many bits are required to distinguish between a direct and an indirect address?

  2. Which of the following addressing modes is convenient to handle pointers?

  3. Which one of the following types of instructions is useful for initializing registers to assign a constant value?
  4. In which one of the following addressing modes, the effective address is equal to the address part of the instruction?
  5. Match each addressing mode in List I with a data element or an element of a data structure (in a high-level language) in List II:
    List IList II
    P. Immediate1. Element of an array
    Q. Indirect2. Pointer
    R. Base with index3. Element of a record
    S. Base with offset/displacement4. Constant
Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App