edited by
1,305 views
1 votes
1 votes

Consider the following statements :

  1. Auto increment addressing mode is useful in creating self-relocating code.
  2. If auto increment addressing mode is included in an instruction set architecture, then an additional ALU is required for effective address calculation.
  3. In auto incrementing addressing mode, the amount of increment depends on the size of the data item accessed.

Which of the above statements is/are true?

  1. (i) and (ii) only
  2. (ii) and (iii) only
  3. (iii) only
  4. (ii) only
edited by

1 Answer

1 votes
1 votes
Auto increment code is used in stack( push ,pop) ,loops . it has no use in self relocating as in this there is nothing like code goes out of program and then comes back.

2nd statement also false we have a concept of counters for this to be more specific binary counter ..so we dont need alu for incrementation.

yes 3rd statement is true that amount of increment depened on the size of data item access like we did this in programming when we have char just inc. 1 byte . whenn int 2or 4 bytes acccording to our implementation......

so only c is corrrect

Related questions

1 votes
1 votes
0 answers
3
0 votes
0 votes
2 answers
4
Arjun asked Jan 2, 2019
4,385 views
Consider the graph shown below:Use Kruskal’s algorithm to find the minimum spanning tree of the graph. The weight of this minimum spanning tree is$17$$14$$16$$13$