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 #175 background imageLoading...
Page #175 background image
Chapter
10
I
BASIC
Keywords
GOTO
Statement
GOTO
line
Branches
to
the specified
line.
When used alone, GOTO results in an unconditional branch.
However, test statements, such as IFITHEN, may precede the
GOTO
to
effect a conditional branch. Note that the GOTO is op-
tional in IFiTHEN statements. For example:
IF
X=O
THEN 360 ELSE 200
BASIC branches
to
Line 360 if
X
equals 0. If not, BASIC
branches
to
Line 200
You can use GOTO in the command mode as an alternative
to
RUN.
This lets you
pass
values assigned
as
a command
to
vari-
ables used in the program.
Example
GOTO 100
BASIC transfers control
to
Line 100.
Sample
Program
10
20
30
40
50
60
70
80
Line 10
READ
R
IF
R
=
13 THEN 80
PR
I
NT
"R
="
;
R
A=3.1 4*RA2
PRINT "AREA
=";A
GOTO 10
DATA 5,7,12, 13
END
reads each
of
the data items in Line 70; Line 60 returns
program control
to
Line
10.
This enables
BASIC
to
calculate the
area for each of the data items until it reaches item
13.
173

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