<< Previous | Next >>

> RET Return Rabbit 2000/3000/4000 Instruction

> Opcode | Instruction | Clocks | Operation
> C9 | RET | 8 (2,1,2,2,1) | PClow = (SP) PChigh = (SP + 1) SP = SP + 2

> Flags | ALTD | IOI/IOE
> S | Z | L/V | C | F | R | SP | S | D
> - | - | - | - |  |  |  |  |

> #### 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.

<< Previous | Next >>