GATE / CS ARCHIVE

GATE CSE 2008 / QUESTION 33

Auto-increment addressing properties

Computer Organization & Architecture · Instructions & Addressing Modes · Full GATE CSE 2008 paper

GATE 2008, Q33 2 marks · MCQ
Report issue

Instructions & Addressing Modes

Question 33, GATE 2008: Which statements about auto-increment addressing are true? I: useful for self-relocating code. II: including it in an ISA requires an additional ALU for effective-address calculation. III: increment amount depends on the accessed data-item size.

(A) I only
(B) II only
(C) III only
(D) II and III only
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. Auto-increment addressing uses a register as an operand address and advances it after the access. To point at the next element, the increment must match the item’s byte size: III is true.
2. It does not inherently make code relocation-independent, so I is not a property of this mode.
3. An implementation can reuse existing arithmetic hardware; an additional ALU is not logically required. II is false, leaving C.

Original paper, page 6