RETURN

Return from Subroutine

Return from subroutine. The stack is POPed and the top of the stack (TOS) is loaded into the program counter. This is a two-cycle instruction.

[the_ad id="3059"]

Syntax:

[ label ] RETURN

Operation:

TOS → PC

Operands:

  • None

Status Affected: None

Example:

CALL DELAY

DELAY      ;name of the subroutine
NOP
RETURN     ;returns to the caller

[the_ad id="3059"]