|
Section 2: Registers30
|
|
The following operations destroy R9.
|
|
SIN, COS, TAN, R P (trigonometric functions and their inverses)
|
|
x≠y, x≤y, x=y, x>y (relational tests)
|
|
|
|
Calculating in Addressable Registers
|
Thus far, all calculations have involved the X-register or the X and Y
registers to produce a result in X. In the case of addressable register arithmetic, the result is left
in the addressable register and x is unchanged.
|
|
|
Subtraction.
|
To subtract x from rn, press
|
STO – n
|
|
Addition.
|
To add x to rn, press
|
STO + n
|
|
Multiplication.
|
To multiply x and rn, press
|
STO × n
|
|
Division.
|
To divide x into rn, press
|
STO ÷ n
|
|
|
For example, store 6 in register R1 and then increment it by 2.
|
|
|
Press
|
|
See Displayed
|
|
Comment
|
|
6 STO 1
|
|
|
|
Stores 6 in R1.
|
|
2 STO + 1
|
|
|
|
Adds 2 to r1.
|
|
RCL 1
|
|
|
|
Confirms that r1 equals 8.
|
|
|
Now, subtract 5 from the contents of R1.
|
|
|
5 STO – 1
|
|
|
|
|
|
RCL 1
|
|
|
|
Confirms that r1 has been reduced to 3.
|
|
|
Finally, multiply the remaining contents of R1 by 2.
|
|
|
2 STO × 1
|
|
|
|
|
|
RCL 1
|
|
|
|
Confirms that r1 has been increased to 6.
|
|
|
Additional Stack Operations
|
You already know that, except for the case of the storage register arithmetic just described, all calculations
are done in the stack. You simply put the problem numbers into place and press the appropriate function key.
You already know of the possibility of
|