EasyManua.ls Logo

Texas Instruments TI-99/4A - Page 151

Texas Instruments TI-99/4A
204 pages
Print Icon
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
PRINT
#l1le·number1.REC numeric-expressionll:print-listl
(For
a
description
of the
PRINT
format
for
priming
Oil
the
computer
screen,
see
the
"[nput·Output
Statements"
section.)
This
form
of
the
PRINT
statement
allows
you
to
write
d;:l.la
onto
an
accessory device.
The
PRIN
T
statement
can
be
used
to write only
on files
opened
in
OUTPUT,
UPDATE.
or
APPEND
mode.
The
hie-number
must
be
the
hie-number
of
a
currently
open
file.
When
the
computer
performs a
PRINT
statement,
it
stores
the
data
in
a
temporary
storage
area
called
an
input/output
(I/O) buffer. A
separate
buffer is provided for
each
open
file-number.
If
the
PRINT
statement
does
not
end with a
print-separator
(comma. semicolon.
or colon). the
record
is immediately
written
onto
the
file
from the
I/O
buffer.
If
the
PRINT
statement
ends with a print-separator, the
data
is held in the buffer and a "pending" print condition occurs (see
"Using
Pending
Prints" in this section.)
The
information you need for
creating
a print-list to record
data
on
accessory file
storage
devices is
discussed
here.
The
print-list
needed to display print lines (on a printer. etc.) is the
same
as
the
print-list
described
in "Input-Output Statements."
You
may
use
either
DISPLAY
or
INTERNAL
format for
data
stored
on
accessory devices. However. since these files
are
read
only
by
the
computer, by far the easiest-to'use and
most
efficient data-type
is
INTERNAL.
Using PRINT with INTERNAL-type Data
The
print·list consists of numeric and
string
expressions
separated
by
commas.
colons.
or
semicolons.
All
print-separators
in a print-
li:;t
have
the
same
effect
for
INTERN
AL
type
data
they
only
separate
the items from each
other
and
do
not
indicate spacing
character
positions in a record.
User's Reference Guide
Examples:
>NEW
>100
OPEN
115:"CS1",SEQUENTIAL
,INTERNAL,OUTPUT,FIXED
program
lines
>170
PRINT
~5;A,8,C$,D$
program
lines
>200
CLOSE
~5
>'210
END
>NEw
>100
OPEN
116:"CS2",SEQUENTIAL
,DISPLAY,OUTPUT,FIXED
program
Lines
-
>170
PRINT
#6:A;",";S;",";C$;
",II;D$
program
lines
>200
CLOSE
116
>
210
EN
D
11·131

Other manuals for Texas Instruments TI-99/4A

Related product manuals