All Exams Test series for 1 year @ ₹349 only
Question

A programmer writes a subroutine that calls another subroutine. To ensure that the 8085 microprocessor returns to the correct location after execution, which register plays the most important role?

This question was previously asked in
RRB Technician 2026 Grade 3 Question Paper (7-Oct-2026) (Shift 3)
The correct answer is

Stack Pointer

When the 8085 executes CALL, it pushes the return address (the address of the next instruction, from the program counter) onto the stack in memory.

The Stack Pointer (16-bit) holds the address of the top of this stack; it is decremented by 2 on each CALL and incremented by 2 on each RET.

In nested subroutines, return addresses are stacked in last-in-first-out order, so each RET pops the correct address back into the PC.

The Accumulator holds data for arithmetic/logic operations; the Instruction Register holds the opcode being decoded; Register B is a general-purpose data register — none of them tracks return addresses.

Hence, the answer is Stack Pointer.

Was this answer helpful?

Important Questions from Architecture of 8085

  1. In the 8085 microprocessor, if SP = 3FFFH and memory contains: 

    3FFEH = 20H, 

    3FFFH = 20H, 

    4000H = 10H, 

    4001H = 10H.

     After executing POP H, what will be the contents of HL?

  2. In an 8085 microprocessor, the contents of the accumulator and the carry flag are A7 (in hex) and 0, respectively. If the instruction RLC is executed, then the contents of the accumulator (in hex) and the carry flag, respectively, will be
  3. The number of objects crossing a window sequentially at variable speed is to be counted using an interrupt in the 8085 microprocessor. The objects are sensed by an optical source and a detector with associated signal conditioning circuit. The circuit produces a logic high output as long as the object is in front of the window, and this output is used to interrupt the processor. The duration of an object being in front of the window is in the range of $100 ms$ to $2 s$. The processor takes $1 ms$ to process the input after an interrupt. The best choice of interrupt for an error free counting is
  4. In an 8085 microprocessor, which one of the following instructions changes the content of the accumulator?

  5. Which stack is used in 8085 microprocessors?

Need Expert Advice?
Upcoming Exams
RRB Staff Nurse
November 23, 2026
RRB Paramedical
November 23, 2026
Test Series
RRB Technicians img
Railways
RRB Technician Grade 1 (Signal) 2026 Mock Test Series
270 Tests 3 Tests Free
7613 Attempts
4.8(215)
English, Hindi, Bengali +7 More

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App