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 #334 background imageLoading...
Page #334 background image
Chapter
10
I
BASIC Keywords
TROFF, TRON
Statements
TROFF
TRON
Turn the trace function on/off.
TRON turns on the tracer and TROFF turns it
off.
The tracer lets you follow program flow. This is helpful
for
de-
bugging and for analyzing the execution
of
a
program. After a
program
is
debugged, you can remove the TRON and TROFF
statements
.
Each time the program advances
to
a
new line, the tracer dis-
plays that line number inside a pair
of
brackets.
Sample Program
2290
TRON
2300
X
=
X
*
3.14159
2310
TROFF
Lines
2290
and
2310
assure you that Line
2300
is actually
being executed, because
[23001
is
printed on the display each
time it is executed.
5
TRON
10 K=10
20
FOR
J=l
TO
2
30 L=K+10
40
PRINT
J;K;L
50 K=K+10
60
NEXT
J
70
TROFF
80
END
When you run this program,
BASIC
prints:
[101[201[301~401
1
10 20
~501~601[301[401 2 20 30
[501[601[701
332

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