-
statement following the
GOSUB,
either after a colon, or on the next line. This is used to
implement subroutines. ON ... GOTO/
GOSUB chooses where to jump...
- and
GOSUB could take an
expression rather than just a line number,
providing an ****igned GOTO
rather than the
switch statement of the GOTO/
GOSUB ... OF...
-
store the line
numbers of
looping statements (FOR...NEXT) and
subroutines (
GOSUB...RETURN). Finally, the end of
BASIC memory usage is
indicated by an address...
-
Defines labels in CONFIG.SYS as jump
targets for CHAIN, DRSWITCH, GOTO,
GOSUB and
SWITCH directives. ; (DOS 6.0 and DR DOS 6.0 and higher)
Similar to...
-
TRace ON. It was used
primarily for
debugging line-numbered
BASIC GOTO and
GOSUB statements. In text-mode
environments such as the TRS-80 or DOS, it would...
- 27
GOSUB 100: A=E:
PRINT "EVEN BRICK";:
GOSUB 100: B=E:
PRINT "ODD BRICK";:
GOSUB 100: C=E:
PRINT "PADDLE";:
GOSUB 100: D=E :
PRINT "BALL";:
GOSUB 100...
- sequence. If the
algorithm requires a
conditional branch, the GOTO (or
GOSUB subroutine call) is
preceded by an IF-THEN
statement specifying the condition(s)...
- of the
command were needed, such as GO{Shift-S} (GO♥)
being required for
GOSUB. Some
commands had no
abbreviated form,
either due to
brevity or ambiguity...
- to
return a
value and all
variables are global. It
provides the
command GOSUB where sub is
short for sub procedure,
subprocedure or subroutine. Control...
-
features in
addition to older-style programming.
Implicit variables, suffixes,
GOSUB / RETURN,
numeric labels and
other features are
allowed in this dialect...