EasyManuals Logo

Tandy 1000 Basic Reference Manual

Default Icon
411 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #240 background imageLoading...
Page #240 background image
Chapter
10
I
BASIC
Keywords
ON
STRIG()
GOSUB
Statement
ON
STRIG(number)
GOSUB
line
Transfers program control to a subroutine when you press one of
the joystick’s buttons.
Number
specifies the number of 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
Line
is
the
first
line number of the subroutine to be executed
when you press one of the joystick’s buttons. If you specify Line
0,
you turn off trapping for the joysticks. Use RETURN to exit
the subroutine.
BASIC executes the ON STRIGO GOSUB statement only if a
STRIG ON statement has been executed previously to enable
joystick trapping.
If a STRIG STOP statement has been issued to halt joystick
trapping temporarily, BASIC executes the subroutine immedi-
ately after the next STRIG
ON
statement.
When the
ON
STRIGO GOSUB statement is executed, BASIC
immediately issues
a
STRIG STOP statement to prevent recur-
sive traps. When BASIC executes the RETURN from the subrou-
tine, it automatically executes another STRIG ON statement to
enable joystick button trapping again, unless the subroutine exe-
cutes a STRIG
OFF
statement.
238

Table of Contents

Other manuals for Tandy 1000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tandy 1000 and is the answer not in the manual?

Tandy 1000 Specifications

General IconGeneral
ProcessorIntel 8088
Processor Speed4.77 MHz
RAM128 KB (expandable to 640 KB)
Operating SystemMS-DOS 2.11
ManufacturerTandy Corporation
Release Year1984
StorageSingle or double 5.25" floppy disk drive (360 KB), optional hard drive
SoundTandy 3-voice sound
PortsParallel, Serial
GraphicsCGA (Color Graphics Adapter)
Graphics Modes320x200, 640x200

Related product manuals