Download Print this page

Radio Shack TRS-80 model III Owner's Manual page 130

Mini-disk operation, trsdos disk operating system, disk basic programming language
Hide thumbs Also See for TRS-80 model III:

Advertisement

**fe^j-;'
EXAMINE NEXT
CHARACTER
T
\/
NO
PUT
IT
INTO
TEMPORARY
SAVE
AREA
-s.
EXAMINE NEXT
CHARACTER
y/lS
I
^
S
PICKUP
THE
TERMINATOR
SET
GET
DATA FROM
TEMPORARY
SAVE
AREA
EVALUATE
IT
ASStGN
TO
VARIABLE
Figure
13.
Input
process.
The
following
table
shows
how
various data
images
will
be
read-in
by
the
statement:
INPUT*! tAtBtC
Ex.#
Image on
disk
123,45
(ENTERS
8,2E4
70B8
[ENTER)
3©(HT|H)
4
fENTER)
5
(ENTER)
AlZeof
1
,,2,3*4
CENTER)
i
,3
t
eof
Values
assigned
A-
123.45
B = 82000
C
=
7000
A =
34
B =
5
C
=
A=1
B =
C
=
2
A=1
B
=
3
C
=
eof
error
(eof
=
end
of
file):
In
Example
2 above,
why
does
variable
c
get the
value
0?
When
the input
reaches
the
end
of
file,
it
terminates
that
last
data item,
which
then contains
4t
Ai2."
This
is
evaluated
by
a routine
just like the
basic
val
function
which
returns a
zero since
the
first
character of
"a
12"
is
a
non-numeric.
129

Advertisement

loading