basic/doc/statements/gosub.rs
1/*!
2# `GOSUB <line number>`
3
4## Purpose
5Save the program counter on the stack and move execution to the specified line number.
6
7## Remarks
8`RETURN` will return execution to the program counter on the stack.
9
10## Example
11```text
1210 GOSUB 100
1320 PRINT "WORLD"
1490 END
15100 PRINT "HELLO ";
16110 RETURN
17RUN
18HELLO WORLD
19```
20
21*/