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 #241 background imageLoading...
Page #241 background image
Chawter
10
I
BASIC Kevwords
Sample Program
5
STRIG(0)
ON:
STRIG(2) ON
10 ON STRIGC0) GOSUB 1000
20 ON STRIGC2) GOSUB 2000
30 PRINT
"Press one
of
the joystick buttons."
40 FOR
I
=
1
TO
3000:NEXT
I
50 GOTO 30
1000 PRINT
"You pressed the left button."
:RETURN
2000 PRINT
"You pressed the right button."
:
RETURN
Lines 10 and 20 turn on joystick trapping. Line 30 instructs you
to press one
of
the buttons. Line 40 waits
for
you to press a but-
ton. If you press the left button, BASIC transfers program control
to
the subroutine
at
Line 1000. If you press the right button,
BASIC transfers program control
to
the subroutine at Line 2000.
If you
do
not press
a
button, Line 50 returns to print the mes-
sage again. This program is
a
continuous loop. To end the pro-
gram, press
[CTRL]m].
239

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