EasyManua.ls Logo

Sharp MZ-800 - Page 187

Sharp MZ-800
221 pages
Print Icon
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...
Liem
Comparison
logic
operators
=
10
IF
A=X
THEN
If
variables
A
and
X
are
equal,
executes
commands
from
THEN
onward.
"XYZ"
If
string
variable
A$
content
is
string
XYZ,
executes
commands
from
THEN
onward.
>
10
IF
A>X
THEN
If
variable
A
is
greater
than
X,
executes
commands
from
THEN
+
onward.
<
10
IF
A<X
THEN
If
variable
A
is
smaller
than
X,
executes
commands
from
THEN
siekatanianaeaitai
onward.
<>or><
10
IF
A<
>F
If
variable
A
and
X
are
not
equal,
executes
commands
from
THEN
THEN.
crcnnnssss
onward.
>=or=>
10
IF
A>=X
If
variable
A
is
greater
than
or
equal
to
X,
executes
commands
from
THEN
..
THEN
onward.
<=or=<
10
IF
A<
=X
If
variable
A
is
smaller
than
or
equal
to
X,
executes
commands
from
THEN
wicinscesis
THEN
onward.
*
40
IF
(A>X)*(B
If
variable
A
is
greater
than
X
and
variable
B
is
greater
than
Y,
exe-
>Y)
THEN
....
cutes
commands
from
THEN
onward.
-
+
50
IF
(A>X)+(B_
If
variable
A
is
greater
than
X
or
variable
B
is
greater
than
Y,
exe-
>Y)
THEN
....
cutes
commands
from
THEN
onward.
Other
symbols
?
200
?A+B=";
Can
be
used
instead
of
PRINT.
Consequently,
statement
number
200
A+B
and 210
are
the
same.
210
PRINT
“A+B
="iA+B
$
220
A=X:B=Xt2
A
symbol
to
express
punctuation
of
the
command
statement;
used
in
:?2A,B
multiple
commands.
There
are
3
command
statements
used
in
the
statement
number
220
multiple
command.
.
230
PRINT’’AB";
Executes
PRINT
continuously.
As
a
result
line
number
230,
““ABC-
“CD"";
‘EF’
DEF”?
is
displayed
on
the
screen
continuously,
with
no
space.
240
INPUT’’X
="";
Displays
“‘X=""
on
screen;
awaits
data
key
input
of
string
variable
x$
xs.
250
PRINT’’AB"’,
Executes
PRINT
with
tabulation.
For
statement
number
250,
first
AB
“CD!
Ee?
is
displayed
on
the
screen,
then
CD
is
displayed
in
the
position
10
characters
to
the
right
of
A,
and
then
E
is
displayed
in
the
position
10
characters
to
the
right
of C.
300
DIM
A(20),
An
example
used
in
punctuation
of
a
variable.
BS$(3,6)
chee
330
B$
="‘MZ-
“*
indicates
a
string
content
700°"
$
340
C$="ABC”’
Indicates
a
string
variable.
+CHRS$(3)
500
LIMIT
$BFFF
Indicates
hexadecimal
number.
.
550
S=SIN
The
approximate
value
of
pi
(3.1415927)
is
expressed
by
m.
(X
*
#/180)
9-12

Other manuals for Sharp MZ-800

Related product manuals