Sharp MZ-700 Basic Manual page 88

Disk basic interpreter
Hide thumbs Also See for MZ-700:
Table of Contents

Advertisement

90
SET
RESET
GET
40 INPUT X, XS, y,
Numerical variables and string variables can be combined
YS
by using the comma ( , ) to separate them, but it is
necessary to match the type of variable at the time of
input.
SET 30,15
RESET 30,15
10
GET N
20 GET KS
Illuminates the position of coordinates (30,15).
Er!Ules the position of coordinates (30,15).
Inputs one numerical character from the keyboard relative
to numerical variable N. If the key is not pressed at that
time, 0 is input.
Inputs one string from the keyboard relative to string
variable KS. If the key is not pressed at that time, AS
becomes vacant.
READ -
DATA 10 READ A,B,C
1010 DATA 25,
-0.5,500
Numerical data 25, -0.5 and 500 are substituted to,
respectively, numerical variables A, B and C by execution
of the READ-DATA statements at the left.
RESTORE
10 READ HS, H, SS, The first data of the DATA statement, i.e., string data
S
"HEART", is substituted for the first variable of the
30 DATA "HEART", 3READ statement, i.e., for the string variable HS. Next,
35 DATA" SPADE ", numerical data 3 is substituted for the second variable H,
1 1
and read-in continues one after the other.
10 READ A,B,C
In the example at the left, 3, 6 and 9 are respectively
20 RESTORE
substituted for variables A, Band C by the READ
30 READ D,E
statement in statement number 10, but, because the
100 DATA 3,6,9,
RESTORE statement occurs next, the values next substi-
12, 15
tuted for variables D and E by statement number 30's
READ are, respectively, 3 and 6, not 12 and 15.
700 RESTORE 200
Moves the data read-out pointer in the READ-DATA
statement to the heading of the DATA statement in
statement number 200.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mz-2z009

Table of Contents