|Abbreviation:||R, E, Shift+T|
in BASIC ROM:
|List of all BASIC keywords|
Typ: Command General Programming-Syntax: RETURN
The BASIC command RETURN (don't confuse it with the GOSUB. After leaving the subroutine the program continues right after the calling GOSUB statement.) finishes a subroutine, which is called by the BASIC command
As a side-effect a RETURN disposes all open FOR-NEXT stack-frames on the stack and keeps the stack in a consistent, clean state.
The BASIC error message appears when a RETURN is executed without a prior GOSUB.