EasyManua.ls Logo

Sharp MZ-700 - Loop and Branch Instructions

Sharp MZ-700
213 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...
(Example 3)
10
DIM
A
(2)
20
READ
A
(0)
A C1 ) . A
(2)
30
PR
I
NT
A
(0)
; A (
1)
; A C2)
40
END
5 0
DATA
3.
4.
5
RUNJ
3 4 5
(Example 4)
1 0
READ
A
20
READ
8
30
DATA
X
·········
··
·······The
READ statement in this program
substitutes the numeric values following
the DATA statement
into
array elements
A(O), A( I), and A(2), then the PRINT
statement on line
30
displays the values
of
those array elements.
The example above is incorrect because
(I)
a numeric variable
is
specified by the
READ statement on line
10,
but
the
value
specified following the DATA statement
is
a string value, and (2) there
is
no data
which can be read
by
the READ statement
on line
20.
--------------------
-------------------------------------------------45

Other manuals for Sharp MZ-700

Related product manuals