Download Print this page

HP 35s User Manual page 4

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

Advertisement

hp calculators
HP 35s Indirect register data packing program
Usage Instructions:
1 ) Initialize the indirect registers to be used by providing the number of logical registers desired divided by 3 rounded up
to the next highest integer. Then press XEQ Y070. For example, if you want 100 logical registers, give this routine 100 /
3, or 34 as an input. Note that you should probably keep at least 200-300 bytes free on the 35s.
2 ) To store a number, place the number to be stored in Y and the logical register location in X and press XEQ Y ENTER.
Upon completion, the number just stored is in X. The original Z is now in Y and the original T is now in Z and T. LASTx is
cleared.
3 ) To recall a number, place the logical register location to be recalled in X as a negative number and press XEQ Y
ENTER. The recalled number is in X. The original contents of Y, Z, and T are undisturbed. LASTx contains the
associated identity vector.
Entering program lines. How to enter some of the program lines might not appear obvious at first. Here are the key
presses to place them into the program.
Line Y012:
d¹g2<ÕÕÏÃ1Õ3Ï
Line Y018:
d¹g3<ÕÕÏÃ1Õ3Ï
Line Y024:
d<ÕÕÏÃ1Ï
Line Y037:
h¸7
Line Y043:
hÙ7
Line Y046:
º¡1
Line Y051:
d<ÕÏÙ<ÕÕÏÏ
Line Y056:
º¡1
Line Y064:
d<ÕÕϸº31¹
Line Y066:
d<ÕÕϸº30¹
Line Y068:
d<ÕÕϸº30¹
Line Y076:
º¡5
Line by line analysis of the program. The description below explains what the program is doing in more detail. It may
be of interest to see how the program operates.
Lines
Lines Y002 through Y005:
Lines Y006 andY007:
Lines Y014 through Y018:
Lines Y019 through Y029:
Lines Y033 through Y036:
Line Y037:
Lines Y038 and Y039:
Line Y040 and Y041:
Line Y042:
hp calculators
What they do
Reset flags.
Exits the program if an attempt is made to store into logical register zero, which is not
supported. Lines Y008 and Y009 set flag zero if the logical register location is input as a
negative, indicating a recall register input. Lines Y010 through Y013 store the indirect
register number to be used into the I register.
Determines the position in the 3-D vector where the value to be stored/recalled is found.
Sets flag 1, 2, or 3, depending on the position within the 3-D vector for the value to be
stored/recalled.
Enters the appropriate identity vector.
Extracts the proper value from the identity vector
Exits the program if this is a recall entry.
Changes the sign of the extracted value and place it in stack register T.
Calls a subroutine that creates an identity vector with the value of 1 in the vector replaced
by the extracted value with its sign changed.
- 4 -
HP 35s Indirect register data packing program - Version 1.0

Advertisement

loading