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

An instruction is stored at location 500 with its address field at location 501. The address field has the value 400. A processor register R 1contains the number 200. Match the addressing mode (List-I) given below with effective address (List-II) for the given instruction.

List I

List II

a.

Direct

i.

200

b.

Register indirect

ii.

902

c.

Index with R 1as the index register

iii.

400

d.

Relative

iv.

600

Choose the correct option from those given below:

The correct answer is

a – iii, b – i, c – iv, d - ii

Direct addressing uses the address field: 400. Register-indirect addressing uses R₁: 200. Indexed addressing gives 400 + 200 = 600. After fetching the two-location instruction, PC = 502, so relative addressing gives 502 + 400 = 902. Thus a–iii, b–i, c–iv, d–ii.

Was this answer helpful?

Important Questions from Indexed Address - Teaching

  1. Which of the following addressing mode is best suited to access elements of an array of contiguous memory locations ?

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