Top

When a subroutine is called, the address of the instruction following the CALL instructions stored in/on the:

Share:
Q. When a subroutine is called, the address of the instruction following the CALL instructions stored in/on the:

  1. Stack Pointer
  2. Accumulator
  3. Programs counter
  4. Stack
Answer: Stack

Stack and Subroutine

Q. What is the meaning of subroutine?
In computer programming, a subroutine is a sequence of program instructions that perform a specific task, packaged as a unit. This unit can then be used in programs wherever that particular task should be performed.

Q. What is stack memory in a microprocessor?
A stack is a separate memory location in R/W memory where microprocessor puts its program counter and program to do some other work intended like an interrupt or subroutine call.

No comments