NEC 78K/0S Series User Manual page 95

8-bit single-chip microcontroller
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents