retagged by
8,386 views
28 votes
28 votes

The most appropriate matching for the following pairs$$\begin{array}{ll} \text{X: Indirect addressing} & \text{1: Loops } \\  \text{Y: Immediate addressing } & \text{2: Pointers} \\   \text{Z: Auto decrement addressing } & \text{3: Constants } \\  \end{array}$$ 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$
retagged by

2 Answers

Best answer
35 votes
35 votes

(C) is the most appropriate one.

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

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

edited by
1 votes
1 votes

Indirect addressing:
Indirect addressing means that the address of the data is held in an intermediate location so that the address is first 'looked up' and then used to locate the data itself.


Immediate addressing:
Immediate Addressing. An immediate operand has a constant value or an expression. When an instruction with two operands uses immediate addressing, the first operand may be a register or memory location, and the second operand is an immediate constant.

 Auto increment or decrements: can be one by using loops.

Answer:

Related questions

52 votes
52 votes
3 answers
2
Kathleen asked Sep 14, 2014
11,743 views
The most appropriate matching for the following pairs$$\begin{array}{|ll|ll|}\hline X: & \text{m = malloc(5); m = NULL;} & 1: & \text{using dangling pointers} \\\hline Y...
29 votes
29 votes
3 answers
3
makhdoom ghaya asked Nov 27, 2016
5,825 views
Match the pairs in the following questions:$$\begin{array}{ll|ll}\hline \text{(A)} & \text{Base addressing} & \text{(p)} & \text{Reentranecy} \\\hline \text{(B)} & \text...
27 votes
27 votes
1 answer
4
Kathleen asked Sep 22, 2014
6,749 views
Match each of the high level language statements given on the left hand side with the most natural addressing mode from those listed on the right hand side.$$\begin{array...