NEC 78K/0 Series User Manual

Page 98

Advertising
background image

98

CHAPTER 5 EXPLANATION OF INSTRUCTIONS

User's Manual U12326EJ4V0UM

Return

RET

Return from Subroutine

[Instruction format]

RET

[Operation]

PC

L

(SP),

PC

H

(SP+1),

SP

SP+2

[Operand]

None

[Flag]

Z

AC

CY

[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.

Advertising