-
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...
-
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...
-
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...
-
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...
- XT=SQRT(XI*XI+ZT*ZT)*XF: XX=XI 120 YY=(SIN(XT)+0.4*SIN(3.0*XT))*YF 130
GOSUB 170 140 NEXT XI 150 NEXT ZI 160
PAUSE 10 END 170 X1=XX+ZZ+P 180 Y1=YY-ZZ+Q:Y1=199-Y1...
- 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...
- are DATA, DEF, DIM, END, FOR..TO..STEP..NEXT,
GOSUB, GOTO, IF..THEN..ELSE, INPUT, LET, NEXT, ON..
GOSUB, ON..GOTO,
OPTION BASE, PRINT, RANDOMIZE, READ...
-
subroutines via the
GOSUB and
RETURN statements Conditional flow-control via IF/THEN
statement Calculated flow-control via the GOTO/OF and
GOSUB/OF statements...
-
identified with a number,
which could be used as the
target of a GOTO or
GOSUB transfer. Only line
editing commands were provided. It was
often beneficial...