EasyManua.ls Logo

Tandy 1000 - Page 298

Default Icon
337 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Basic
ON
n
GOSUB
line[,line,
...I
Looks at n and transfers program control to the subroutine indicated
by the nth line listed.
If n equals
1,
BASIC branches to the first line listed. If n equals
2,
BASIC branches to the second line listed, and
so
on.
N
must in
the range
0
to
255.
ON
Y
GOSUB1000, 2000,3000
ON
n
GOTO
Zine[,Zine,
...I
Looks at n and transfers program control to the nth line listed.
If n equals
1,
BASIC branches
to
the first line listed. If
n
equals
2,
BASIC branches to the second line listed, and
so
on.
N
must be
in the range
0
to
255.
ON
MI
GOTO
150, 160, 170, 150, 180
ON
KEY(number)
GOSUB
line
Transfers program control to a subroutine, beginning at line when
you press the specified key.
Number indicates the number of the key to trap. Function keys are
1
to
12.
The cursor direction keys are numbered:
Q
13
Q
14
0
15
Q
16
User keys are numbered
17
through
20.
User keys are defined with
the
KEY
statement.
Specifying Line
0
turns off key trapping for the specified key.
ON
KEY(13)
GOSUB
500
Tandy
1000
47

Table of Contents

Other manuals for Tandy 1000

Related product manuals