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