When a subroutine is called, the address of the instruction following the CALL…
2017
When a subroutine is called, the address of the instruction following the CALL instruction is stored in the ______.
Answer: B. stack — When a subroutine is called, the CPU must remember where to return after the subroutine finishes. Therefore, the address of the next instruction after CALL is…
- A.
program counter
- B.
stack
- C.
stack pointer
- D.
accumulator
Attempted by 354 students.
Show answer & explanation
Correct answer: B
When a subroutine is called, the CPU must remember where to return after the subroutine finishes.
Therefore, the address of the next instruction after CALL is pushed onto the stack.
After the subroutine completes, this return address is popped from the stack.
Loading lesson…