EasyManua.ls Logo

Radio Shack TRS-80 Model III - Page 143

Radio Shack TRS-80 Model III
274 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...
BASIC
17
/ Input-Output
The
statements described
in this chapter
let
you send data
from
Keyboard
to
Computer,
Computer
to Display,
and back
and
forth
between
Computer
and the
Cassette
and the
Line Printer
(if
you have
one). These will be
usedprimarily
inside
programs
to
input data
and output results
and messages
.
Statements covered in this chapter:
PRINT
@
(PRINT modifier)
TAB ((PRINT
modifier)
USING (PRINT
formatter)
INPUT
DATA
READ
RESTORE
LPRINT
PRINT
#-
] (Output to
Cassette)
INPUT
#-
1
(Input
to
Cassette)
PRINT
item list
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
next item.
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:
3(3
X
=
5
40
PRINT
50 END
" IS
EQUAL
TO"
? X
t
80 A$
=
"STRING"
90
PRINT
A$5
A$,
A$;
100
END
A*
130 X
=
25
140 PRINT
25
150 END
"IS
EQUAL
TO"
X
180 A
=
5:
B
=
190
PRINT ABC
200
END
10:
C
=
3
133

Other manuals for Radio Shack TRS-80 Model III

Related product manuals