EasyManua.ls Logo

Tandy 1000 - Page 299

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
PEN
GOSUB
line
Transfers program control to the subroutine
at
line
when you ac-
tivate the light pen. Specifying Line
0
turns off pen trapping.
ON
PEN
GOSUB
1000
ON
PLAY(number)
GOSUB
line
Transfers program control to the subroutine, beginning
at
line
when
the number of notes in the background music buffer is less than
number.
Number
indicates that control should transfer to
line
when the
number of notes left in the music buffer is less than
number. Number
must be in the range
1
to
32.
Specifying Line
0
turns off play trapping.
ON
PLAY(30)
GOSUB
200
ON
STRIG(number)
GOSUB
line
Transfers program control to the subroutine
at
line
when you press
one of the joystick’s buttons.
Number
specifies the button pressed and is one of the following:
0
left joystick, button
1
2
right joystick, button
1
4
left joystick, button
2
6
right joystick, button
2
Specifying Line
0
turns off joystick trapping.
10
ON
STRIG(0)
GOSUB
I000
ON
TIMER(number)
GOSUB
line
Transfers program control to the subroutine, beginning
at
line
when
the specified time has elapsed.
Number
indicates the number of seconds. It may be
a
value in the
range
1
to
86400
(86400
seconds
=
24
hours).
ON
TIMER(3600)
GOSUB
500
48
Tandy
1000

Table of Contents

Other manuals for Tandy 1000

Related product manuals