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
-
-
-
-
Summary of Contents for 2000
Page 2: ...ii Rabbit 2000 3000 Microprocessor...
Page 4: ...iv Rabbit 2000 Microprocessor...
Page 16: ...12 Rabbit 2000 3000 Microprocessor...
Page 112: ...108 Rabbit 2000 3000 Microprocessor...
Page 120: ...ii Rabbit 2000 3000 Microprocessor...