Sharp MZ-700 Basic Manual page 99

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

Advertisement

101
5.1.16 Tab Function
TAB
10
PRINT TAB (X);A
Displays the value of variable A at the X
+
1 character
position counting from the left edge of the screen.
5.1.17 Arithmetic Operations
The calculation priority is of white figures on dark background at left side, but the calculation of
figures in parentheses ( ) has even higher priority.
t
10
A = X
t
Y
Substitutes the X
t
Y
calculation result for variable A.
*
+
(power)
10 A
=
-B
(minus sign)
10A=X*Y
(multiplication)
10A
=
XIY
(division)
10 A = X
+
Y
(addition)
10 A
=
X - Y
(subtraction)
(Note, however, that an error occurs if Y is not an
integral number when X is a negative number at X
t
Y.)
0- 8 is a subtraction; note that the "-" of -8 is a minus
sign.
Substitutes the multiplication result of X and Y for
variable A.
Substitutes the division result of X and Y for variable
A.
Substitutes the addition result of X and Y for variable A.
Substitutes the subtraction result of X and Y for variable
A.
5.1.18 Comparison Logic Operators
>
10 IF A = X THEN
20 IF A$ = "XYZ"
If variables A and X are equal, executes commands from
THEN onward.
If string variable AS content is string XYZ, executes
THEN ...............
commands from THEN onward.
10
IF A>X THEN ...
If variable A
is
greater than X, executes commands from
THEN onward.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mz-2z009

Table of Contents