Tandy TRS-80 Owner Manual & Programming Manual page 55

Color computer disk system
Hide thumbs Also See for TRS-80:
Table of Contents

Advertisement

HOW
MUCH CAN ONE
DISK
HOLD?
PRINT "PEN"! "PAPER"
fEHTER)
PRINT "JONES. MARY"
(iNTEff)
print "pen".
5
(mm
The
line
PRINT
«l
>
"PEN"
i
"PAPER"
(in
your
disk
program)
would
print
this
in
your
disk
file:
PENPAPER*
The Computer would
read
PEN
5
(with
all
the
blank
spaces)
back
into
memory
as
one
item.
(Reason; although
the
Computer
nor-
mally
interprets
blank
spaces as
a
delimeter,
it
will
not
interpret
them
in this
way when
they follow
a
string
and
precede a number).
For
more
information
on using
PRINT
in
disk pro-
grams,
see the
TRS-80
Model
I,
Model
II,
or
Model
III
Disk System Owner's Manual.
AN
ATTRACTIVE
DISK
FILE
The Computer would
read
PENPAPER
back
into
memory
as
one
item.
(Reason:
there
is
not
a
"deli-
meter"
a
comma,
quotation
mark,
or space
to
separate
PEN
from
PAPER).
The
line
PRINT
*l
,
"JONES
>
MARY"
would
print
this
in
your
disk
file:
7
JONES
t
MARY*
The Computer would
read
JONES,
MARY
back
as
two
items:
JONES
and
MARY.
(Reason:
The
Computer
interprets
the
comma
as a
delimeter).
The
line
PRINT
«i
,
"PEN"
,
5,
would
print
this
in
your
disk
file:
PRINT
USING
is
another
word you
can
substitute
for
WRITE.
We
discussed
PRINT
USING
in
Going
Ahead
With Extended Color
BASIC).
Type:
PRINT USING
"1
(ENTER)
PRINT USING
"I
'
ENTER)
*,$+#«.**"
5
"PEN"
<
5
!$+»#,»»"
!
"PAPER"
,
-16
You
can
get the
Computer
to
print these
same
images on your
disk
with
this
program.
KILL
"OFFICE/DAT,"
erase
memory, and
type
and
RUN:
PROGRAM
4
32 bytes
10
OPEN
"0"
t
#1
t
"OFFICE/DAT"
20 PRINT #1.
USING
"X
**+##,«#"!
"PEN"
f
5
30
PRINT tl, USING
"X
2$+*»
(
#t"i
"PAPER"* -IB
40
CLOSE
#1
i
PEN
which
prints
this in
your
disk
file:
PEN
$+
5
.
00*PAPER
*
-
1
B
.
130*
\
45

Advertisement

Table of Contents
loading

Table of Contents