![]() |
|
| << Previous | Next >> | |
| | |
RET Return Rabbit 2000/3000/4000/5000 Instruction
C9 RET PClow = (SP)
PChigh = (SP + 1) SP = SP + 2
Rabbit 2000/3000/4000 Rabbit 5000
Description
Transfers execution from a subroutine to the program that called the subroutine by popping the return address from the stack into PC.
First, the low-order byte of PC is loaded with the data at the memory address in SP then the high-order byte of PC is loaded with the data at the memory address immediately following the one held in SP. The data in SP is then incremented twice.
| Rabbit Instructions | << Previous | Next >> | rabbit.com |