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 #323 background imageLoading...
Page #323 background image
Chapter
10
I
BASIC
Keywords
STRIG/Trap Statement
STRIG(number)
ON
STRIG(number)
OFF
STRIG(number)
STOP
Turns on, turns
off,
or
temporarily halts joystick trapping.
Number
is
a
value
of
0,
2,
4,
or
6
to
indicate the joystick button
you are trapping:
0
indicates Trigger Al.
2 indicates Trigger B1.
4
indicates Trigger A2.
6
indicates Trigger B2.
Joystick
A
is
the left joystick and Joystick
B
is the right joystick.
STRIGO
ON
STRIGO
ON
enables joystick trapping with the
ON
STRIGO
GOSUB statement. If you execute
a
STRIGO
ON
statement,
BASIC checks after every program statement to see if you
pressed
a
joystick button. If you press a joystick button, BASIC
transfers program control
to
the line number specified in the
ON
STRIGO GOSUB statement. See
ON
STRIGO GOSUB.
Note:
Do
not confuse the STRIG/Trap statement with
the STRIG function statement. These are 2 separate
statements that perform 2 distinct functions in BASIC.
STRIGO STOP
STRIG() STOP temporarily halts joystick trapping. If you press a
joystick button after
a
STRIGO STOP statement is executed,
BASIC does not transfer program control to the subroutine until
trapping is turned on again with a STRIGO
ON
statement.
BASIC remembers that the joystick buttons were pressed and
transfers program control
to
the subroutine immediately after
joystick trapping is turned on again.
321

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