RET
[Instruction format]
[Operation]
[Operand]
None
[Flag]
Z
AC
[Description]
•
This is a return instruction from the subroutine call made with the CALL and CALLT instructions.
•
The word data saved in the stack returns to the PC, and the program returns from the subroutine.
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
RET
← (SP),
PC
L
← (SP + 1),
PC
H
SP ← SP + 2
CY
User's Manual U11047EJ3V0UM00
Return
Return from Subroutine
95