RETURN
Syntax: RETURN
The return statement is used following a GOSUB command. The GOSUB command is used to temporarily start executing statements from the specified line number. The return command is used at the end of these lines to resume execution immediately after the GOSUB command.
Should your subroutine decide that it doesn't need to return then it must use the POP command to remove the return address from the stack. Failure to do so will use additional memory and since the stack only has a finite size you will eventually get a STACK OVERFLOW error.
Example
RETURN
|