Storing Data into Variables
3–5
File name 33s-English-Manual-040130-Publication(Edition 2).doc Page : 388
Printed Date : 2004/1/30 Size : 13.7 x 21.2 cm
A
15
A
12
Result: 15 3
that is,A x
T
t
T
t
Z
z
Z
z
Y
y
Y
y
X
3
X
3
Recall Arithmetic
Recall arithmetic
uses
h
Ù
,
h
Ã
,
h
¸
, or
h
¯
to do
arithmetic in the X–register using a recalled number and to leave the result in the
display. Only the X–register is affected.
New
x
= Previous
x
{+, –,
×
,
÷
} Variable
For example, suppose you want to divide the number in the X–register (3,
displayed) by the value in
A
(12). Press
h
¯
A. Now
x
= 0.25, while 12 is
still in
A
. Recall arithmetic saves memory in programs: using
h
Ù
A
(one
instruction) uses half as much memory as
h
A,
Ù
(two instructions).
A
12
A
12
T
t
T
t
Z
z
Z
z
Y
y
Y
y
X
3
X
0.25
Result: 3 12
that is, x 12
Example:
Suppose the variables
D
,
E
, and
F
contain the values 1, 2, and 3. Use storage
arithmetic to add 1 to each of those variables.
Summary of Contents for 33S
Page 14: ......
Page 15: ...Part 1 Basic Operation ...
Page 16: ......
Page 56: ......
Page 64: ......
Page 82: ......
Page 92: ......
Page 122: ......
Page 138: ......
Page 157: ...Part 2 Programming ...
Page 158: ......
Page 184: ......
Page 210: ......
Page 222: ......
Page 293: ...Part 3 Appendixes and Reference ...
Page 294: ......
Page 324: ......
Page 348: ......