Instructions fun 129 ret subroutine return – Toshiba 6F3B0253 User Manual
Page 206

6F3B0253
204
T1-16S User’s Manual
7. Instructions
FUN 129
RET
Subroutine return
Expression
−−
[ RET ]
−
Function
This instruction indicates the end of a subroutine. When program execution is reached this
instruction, it is returned to the original CALL instruction.
Execution condition
Input
Operation
Output
-
Execution
-
Operand
No operand is required.
Example
Main program
Subroutine
| | [ CALL N.008 ]
[ SUBR (008)]
[ RET ]
Note
•
Refer to the SUBR instruction (FUN 137).
•
The RET instruction can be programmed only in the program type ‘Subroutine’.
•
The RET instruction must be connected directly to the left power rail.