EasyManua.ls Logo

Casio CFX-9800G - Page 174

Casio CFX-9800G
206 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...
The
above
program
uses
value
memories
as
follows:
x
data
Cit]
C2}
Cf3)
[4] Cs]
Cie] Cl7]
Cs] C9}
cr10]
D E
F
G
H
I
J
K
L
M
Clit]
C[12} Cf13]
-C[14]
C15]
N
°
P
Q
R
y
data
~
C[16}
Clt7]
C[18}
Cl19]}
Cj2o}
Clat]
[22]
C[23} C[24) C[25)
8.
T
U V
W
xX
Y
Zz
ZA;
Ze,
-
(26)
-C[27).
cl28] [29]. c[30]
23)
°
2(4)
26)
26)
Z(7)
Example
2]
This
version
is
identical
to
Example
1,
except
that
a
different
letter
is
used
for
the
x
and
»
data
names.
1,
7,A,:,
Defm,
7,
:,
Lol,
1,:,7,-,C,
LA]
:,
22R0~A15,
Isz,
A,:,
A,
=,
1,
6,
=,
Goto,
2,
:,
Goto,
1,
:,
Lol,
2,:,
1,5,
>,
A,:,
2,7,
B,:,
B,
=,
0,
>,
Goto,
5,
:,
Lbl,
3,:,
B,
=,
C,
[,
A,
],
=,
Goto,
4,
:,
Osz,
A,
:,
Goto,
3,
:,
Goto,
2,
:,
_(UbI
4,2,
R,
LA,
],
4,
Goto,
2,
:,
Lbl,
92
bytes
This
above
program
uses
value
memories
‘as
follows:
x
data
—
‘
Cit]
Cf2]
C[3]
*
C[4].
cfs]
Cie}
CI7}
~C[8]
cfg]
.
C10)
D
E F
G
H
|
J
K
L
M
C11]
Cf12]
C[13]
C14]
Cf15)
,
N
ce)
P
Q
R
y
data
Rit]
Rl2}
Rls]
Ri4] Rl5) Al6] Al7]
Als)
Al9]
Alto}
Ss
Ts
U
vow
xX
Y
Z
21)
22)
Rf11]
[12]
Ri#3] Rit4]
Rf+S)
2(3)
.
2(4)
25)
26)
(7)
Note
that
in
the
above
two
programs
the
Defm
command
was
necessary
to
increase
the
number
of
value
memories.
12-11
Displaying
Text
Messages
Text,
numbers,
and
symbols
can
be
displayed
by
programs
as
messages
that
prompt
input,
etc.
Note
the
following
example.
Statement
=
Display
Without
text’
?
>
X
?
-
With
text
“X=".?
>
X
X=?
As
you
can
see,
the
text
prompt
makes
it
much
easier
to
understand
what
input
is
required
by
the
program.
Messages
can
also
be
used
to
explain
the
meaning
of
a
displayed
result.
*All
of
the
explanations
provided
here
are
performed
using
the
Program
Mode
only.
Note,
however,
that
you
can
also
perform
the
same
operations
in
the
File
Editor
Mode,
Lbl,@,:,°.N,
=,
",7,7.B,~,
6,5,
0,-,A,
Stud
Lol,
1,:,C,
+,
2,
>,
C,:,
Frac,
C,
=,
0,
>,
Goto,
3,
:,
Isz,
A,
:,
C,
=,
1,
=,
Goto,
2,
:,
Goto,
1,:,
Lb,
2,:,°,X,
=,
4,
A,
4,
Goto,
@,
:,
Lol,
3,
:,”,
N,
0
70
bytes
This
program
prompts
for
input
of
a
value.
If
the
input
value
is
equivalent
to
2*,
it
dis-
plays
the
value
of
x.
If
the
input
value
is
not
equivalent
to
2%,
it
displays
the
message
-
"NO".
Be
sure
to
follow
the
message
with
a
display
result
command
if
there
is
another
state-
iment
following
the
message...
Assuming
that
the
program
is
stored
in
Prog
2:
“(E(RUN)
@OMHes
a)
:
(ee)
3)