EasyManua.ls Logo

Texas Instruments TI-99/4A - Page 152

Texas Instruments TI-99/4A
204 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
Loading...
PRINT
When
items
in the print-list
are
written
on
the accessory
storage
of'.virf'.
in
INTERN
AL
format. they
have
the following
characteristics:
Examples:
NllmArir
items:
>NEW
>100
OPEN
115:"CS1",SEQUENTIAL
,INTERNAL,OUTPUT,FIXED
128
>110
A$="TEXAS INSTRUMENTS"
>120 8$="COMPUTER "
>130
READ
X,Y,Z
>140
IF
X=99
THEN
190
>150
A=X*Y*Z
>160
PRINT
115:A$,X,Y,Z,8$,A
>170
GOTO
130
>180
DATA
',A,7,1,2,3,10,20,3
0,20,40,60,1.5,2.3,7.6,99,99
,99
>190
CLOSE
115
>200
EN
D
>RUN
designates
length
value
of
item
of
item
(always
8)
String
~
items:
designates
length value
of
item
of item
In the
example
on
the
right.
the
total length of the
data
recorded
in
INTERNAL
format is
71
positions_
Each
numeric
variable
uses 9
positions,
A$
is
18
characters
long
(line
110)
plus
1
position
to
record
the length
of
the string.
B$
is 15
characters
(line 120) plus
1.
If
the values
of
A$
and
B$
change
during
the
program.
their
lengths
will
vary
according
to
whatever
value
is
present
when
the
record
is
written
onto
the
files. In designing your record. therefore. become
familiar
with
the
data
each
variable might
contain
and
plan your
I
eCUl
U
tu
alluw
for
the
largest
length
possible.
Whenever you specify
FIXED-length
records.
the
computer
will
pad
each
INTERN
AL-type record with binary zeros. if necessary.
to
bring
each
record to the specified length.
The
computer
will not allow a record to be longer
than
the specified
or default length for the device you
are
using,
If
including all
data
In
a print-list would
cause
this condition to
occur
for
an
INTERNALĀ·
type record. the
program
will
terminate
with the
message
"FILE
ERROR
IN
XX,"
*
RE~IND
CASSETTE
TAPE
THEN
PRESS
ENTER
* PRESS
CASSETTE
RECORD
THEN
PRESS
ENTER
--data
~ritten
on
tape
CS1
CS1
IIĀ·132
* PRESS
CASSETTE
STOP
CS1
THEN
PRESS
ENTER
**
DONE
**
User's Reference Guide

Other manuals for Texas Instruments TI-99/4A

Related product manuals