GATE / CS ARCHIVE

GATE CSE 2002 / QUESTION 1.10

Program counter during instruction execution

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

GATE 2002, Q1.10 1 mark · MCQ
Report issue

Instructions & Addressing Modes

Question 1.10, GATE 2002: Which 8085 instructions modify the program counter?
(A) Only PCHL; (B) Only ADD instructions; (C) Only JMP and CALL; (D) All instructions.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

Step 1: Include the fetch phase, not only the instruction’s explicit operation.

Step 2: An arithmetic instruction still consumes its opcode and possibly operand bytes from the instruction stream. The PC must move beyond those bytes so execution can continue. A jump changes where execution continues, but this extra change does not make jumps the only PC-modifying instructions.

Conclusion: The program counter advances during instruction fetching even for instructions that do not explicitly branch. Branch, call and PCHL instructions additionally replace its value. Therefore it is not modified only by a special instruction subset: D in the ordinary 8085 instruction-fetch model.

Original paper, page 2