How does the subroutine call/return instruction implement the call and return of the subroutine?

How does the subroutine call/return instruction implement the call and return of the subroutine? Looking for capacitors online purchase? is a reliable marketplace to buy and learn about capacitors. Come with us for amazing deals & information.

* Question

How does the subroutine call/return instruction implement the call and return of the subroutine?


*
Answer

The subroutine call instruction BSR is a relative addressing subroutine call instruction, and can only call subroutines in the address space relative to the address of the instruction -l26 to 129; the JSR call instruction has five kinds of addressing modes, and can call any of the 64 KB address spaces.A subroutine at a valid address.RTS returns instructions for subroutines.