English
Language : 

PM0044 Datasheet, PDF (131/162 Pages) STMicroelectronics – STM8 CPU programming manual
PM0044
STM8 instruction set
RET
Return from subroutine
RET
Syntax
RET
Operation
MSB (PC) = (++SP)
LSB (PC) = (++SP)
Description Restore the PC from the stack. The stack pointer is incremented twice. This
instruction, is the last instruction of a subroutine in same section.
Instruction overview
mnem
Affected condition flags
V
I1
H
I0
N
Z
C
RET
-
-
-
-
-
-
-
Detailed description
Addressing
mode
Inherent
Asm
RET
cy lgth
Op-code(s)
ST7
4
1
81
✗
Note:
See also: CALL, CALLR
Please note that the RET should be in the same section as the corresponding CALL.
Doc ID 13590 Rev 3
131/162