EasyManua.ls Logo

Rabbit 2000 - Page 83

Rabbit 2000
120 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Instruction Reference Manual 79
Description
RET transfers execution from a subroutine to the program that called it. First it loads the low order byte of the
Program Counter, PC, with the data at the memory address in the Stack Pointer, SP, then loads the high order
byte of PC with the data at the memory address immediately following the one held in SP. The data in SP is
then incremented twice.
RET
Opcode Instruction Clocks Operation
C9 RET 8 (2,1,2,2,1) PC
(low)
= (SP); PC
(high)
=(SP+1);
SP = SP + 2
Flags ALTD I/O
S Z L/V C F R SP S D
- - - -

Other manuals for Rabbit 2000