Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations - NIMCET

Previous Year Question (PYQs)



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_1$ contains the number $200$. Match the addressing mode $($List-I$)$ given below with effective address $($List-II$)$ for the given instruction:
List-I Addressing Mode List-II Effective Address
(a) Direct (i) 200
(b) Register indirect (ii) 902
(c) Index with $R_1$ as the index register (iii) 400
(d) Relative (iv) 600





Solution

Direct addressing:

$EA=400$

So, (a) $\rightarrow$ (iii)

Register indirect addressing:

$EA=R_1=200$

So, (b) $\rightarrow$ (i)

Index addressing:

$EA=Address+R_1$

$EA=400+200=600$

So, (c) $\rightarrow$ (iv)

Relative addressing:

Instruction is stored at location $500$, address field is at $501$, so next instruction location is $502$.

$EA=PC+Address$

$EA=502+400=902$

So, (d) $\rightarrow$ (ii)

Hence, correct matching is:

$(a)-(iii),\ (b)-(i),\ (c)-(iv),\ (d)-(ii)$



Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.

loading...