The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+12 votes
2k views

The most appropriate matching for the following pairs

     X: Indirect addressing          1: Loops 
     Y: Immediate addressing         2: Pointers 
     Z: Auto decrement addressing    3: Constants 

is:

  1. X - 3,  Y - 2,  Z - 1
  2. X - 1,  Y - 3,  Z - 2
  3. X - 2,  Y - 3,  Z - 1
  4. X - 3,  Y - 1,  Z - 2
asked in CO & Architecture by Veteran (59.5k points)
edited by | 2k views

2 Answers

+20 votes
Best answer

C is the most appropriate one.

General instruction format: |opcode|Mode|Address Field|
Pointer dereference-> Indirect addressing, $E.A = M$[ Value stored in address field]
Operating with a constant -> Immediate addressing, $E.A =$ Address field of the instruction.
Loop iteration counter check -> Auto decrement addressing $R1=R1-1$; $E.A = R1$

E.A = Effective address, where the required operand will be found.
 

answered by Boss (14.2k points)
edited by
+7
Pointer dereference-> indirect addressing
Operating with a constant -> immediate addressing
Loop iteration counter check -> auto decrement addressing
–3 votes
Ans: C
answered by Loyal (7.1k points)
Answer:

Related questions



Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

37,117 questions
44,701 answers
127,277 comments
43,765 users