GATE / CS ARCHIVE

GATE CSE 2006 / QUESTION 9

Instruction address alignment

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

GATE 2006, Q9 1 mark · MCQ
Report issue

Instructions & Addressing Modes

Question 9, GATE 2006: A CPU has fixed 24-bit instructions and a program beginning at decimal address 300. Which listed decimal value is a legal program counter in that instruction stream? The conventional byte-addressing assumption is implicit in the reproduction.
Options:
(A) 400
(B) 500
(C) 600
(D) 700
Tap to enlarge
Your answer
Answer & solution

Answer: C under byte addressing (no official key was published)

1. With byte-addressed memory and fixed 24-bit instructions, each instruction occupies 3 bytes. Addresses in this instruction stream are 300+3k.

2. Only600 among the listed values differs from 300 by a multiple of 3, so C. Instruction width alone does not establish byte addressing or prohibit other instruction streams; those are the conventional implicit assumptions.

3. Teaching check: Convert instruction width from bits to bytes before testing alignment: 24/8=3. The differences from the starting address are 100,200,300,400; only 300 is divisible by three. This checks positions in the given instruction stream, not all arbitrary code addresses in memory.

Original paper, page 2