EasyManua.ls Logo

Radio Shack TRS-80 Model 3 - Input-Output Statements

Radio Shack TRS-80 Model 3
276 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...
3/Input-Output
The statements described in this chapter let you senddatafrom Keyboard to
Computer, Computer to Display,
and
backandforth between Computer and the
Cassette andthe LinePrinter
(if
you have one). These willprimarily be used inside
programs to input data
and
outputresults andmessages.
Statements
covered
in this chapter:
PRINT
@
(PRINT
modifier)
TAB
(PRINT Illodifier)
USING
(PRINT
formatter)
PRINT item list
INPUT
DATA
READ
RESTORE
LPRINT
PRINT
#
-1
(Output
to Cassette)
INPUT
#
-1
(Input to Cassette)
Prints an
item
or
a list
of
items
on
the Display.
The
items
may
be either string
constants
(messages
enclosed
in quotes), string variables, numeric constants
(numbers), variables,
or
expressions involving all
of
the preceding items.
The
items to
be
PRINTed
may
be separated
by
commas
or
semi-colons.
If
commas
are
used, the
cursor
automatically advances to the next print zone before printing the
nextitem.
If
semi-colons
are
used,
no space is inserted between the items printed
on
the Display. In
cases
where
no ambiguity would result, all punctuation
can
be
omitted.
Examples:
30
X::::
::.
40
PRINT
25;
"IS
EQUAL
TO"; X t 2
:::>0
E:ND
80
A$
= "STRING"
90
PR
I
NT
A$;
1-1$
,
A$;
"
";
A~~
100
END
130
X
:::
25
140
PRINT 25
"IS
EQUAL
TO"
X
1~)0
END
180
A =
5:
8 =
10:
C - 3
190
PH
I
NT
(.\Be
200
END
3/1

Related product manuals