Download Print this page

HP 35s User Manual page 5

Scientific calculator - indirect register data packing program
Hide thumbs Also See for 35s:

Advertisement

hp calculators
HP 35s Indirect register data packing program
Line Y043:
Lines Y044 through Y048:
Line Y049:
Line Y050:
Line Y051:
Line Y052:
Lines Y053 through Y057:
Lines Y058 through Y062:
Lines Y063 through Y069:
Lines Y070 through Y077:
Usage Examples. This program can be used in manual run mode or from within a program. The table below shows
several examples of how it might be used. Since the program preserves the stack, usage does not require much special
consideration, other than LASTx, as noted above. Program usage is the same as run mode usage – the routine is simply
called as a subroutine.
Usage Examples
1 ) Set aside 50 indirect registers.
50 divided by 3 is 17, rounded up to the next
highest integer.
2 ) Store the following numbers:
1.23456789 into logical register 10.
55 into logical register 7.
35.456565 into logical register 34.
3) Compute the following:
Logical register 34 divided by logical register 7. 34 ztYÏ7z
Multiply logical register 7 by 3. Multiply logical
register 34 by 5. Subtract the difference.
Add logical register 10 to the result just
computed.
hp calculators
Places in X the vector from the proper indirect register now with a zero in the location being
replaced.
These lines are stack manipulations to preserve the stack and store the previously
extracted value into LASTx.
Calls the subroutine that creates a vector with the proper position holding the value to be
stored with the other locations holding a zero.
Places this vector in T. At this point, register Z of the stack contains the original vector with
a zero in the position where the value is to be stored, and register T of the stack contains a
vector that has zeroes in the locations not being changed and the value being stored in the
proper location within the vector.
Adds these vectors in T and Z together and places the result in X.
Stores this new vector back into the proper indirect register.
Cleans up the stack so that the original value is in X, the original level Z is in Y, and the
original level T is in Z and T.
Cleans up the flags and exit the program.
These lines are the subroutine called at lines Y042 and Y049.
These lines are the initialization routine which stores vectors containing zeroes in the
proper indirect registers.
Keystrokes
17 tY070
1.23456789 Ï10 tYÏ
55 Ï 7 tYÏ
35.455565 Ï 34 tYÏ
tYϯ
7 ztYÏ3 ¸34
ztYÏ5 ¸Ã
10 ztYÏÙ
- 5 -
HP 35s Indirect register data packing program - Version 1.0

Advertisement

loading