HP 35s User Manual
Here you can view all the pages of manual HP 35s User Manual. The HP manuals for Calculator are available online for free. You can easily download all the documents as PDF.
Page 181
hp calculators HP 35s Indirect register data packing program hp calculators - 3 - HP 35s Indirect register data packing program - Version 1.0 storage registers starting with 100 and working down. This can cause quite a shock when you’re not expecting it in a program or calculation. Each indirect register, like each direct register and each stack register, can hold a variety of objects, such as a real number, a complex number, or a 2-D or 3-D vector. Since these take varying amounts of...
Page 182
hp calculators HP 35s Indirect register data packing program hp calculators - 4 - HP 35s Indirect register data packing program - Version 1.0 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...
Page 183
hp calculators HP 35s Indirect register data packing program hp calculators - 5 - HP 35s Indirect register data packing program - Version 1.0 Line Y043: Places in X the vector from the proper indirect register now with a zero in the location being replaced. Lines Y044 through Y048: These lines are stack manipulations to preserve the stack and store the previously extracted value into LASTx. Line Y049: Calls the subroutine that creates a vector with the proper position holding the value...
Page 184
hp calculators HP 35s Indirect register data packing program hp calculators - 6 - HP 35s Indirect register data packing program - Version 1.0 Saving keystrokes. Storing a number manually into an indirect register requires six key presses (!$ !7) while this program only requires four key presses, not counting the location and value to be stored which would be the same in both instances. In the example below, 15 is stored into indirect register 10. Manually, this requires 10 key presses....
Page 185
hp calculators HP 35s Using HP 35s Flags What are flags? An example of using a flag to display a message General-purpose flags and special flags Using flags in programs
Page 186
hp calculators HP 35s Using HP 35s Flags hp calculators - 2 - HP 35s Using HP 35s Flags - Version 1.0 What are flags? Ships use flags to signal special conditions. For example a ship might raise a flag as a distress signal, or to signal that an admiral is on board. Computers and calculators also use flags to signal special conditions. For example a flag could be used on the HP 35s to mark that financial calculations are being carried out in Canadian dollars, not in US dollars. Flags...
Page 187
hp calculators HP 35s Using HP 35s Flags hp calculators - 3 - HP 35s Using HP 35s Flags - Version 1.0 Figure 4 #This time the user must press % to select the CF (Clear Flag) operation. Figure 5 The little 1 is still shown. Now the user needs to press $ to make the CF operation act on flag 1. Figure 6 Answer: Flag 1 is now clear, so the small number 1 is no longer at the top of the calculator screen. Example 3: Use the “Flag Set?” command to confirm that flag 1 is now...
Page 188
hp calculators HP 35s Using HP 35s Flags hp calculators - 4 - HP 35s Using HP 35s Flags - Version 1.0 Flags 5 through 11 are special-purpose flags, and their state is not shown at the top of the screen. Each flag has a special meaning when it is set. The user can set flag 5 to say that a program should stop if any calculation produces a result bigger than the largest number the HP 35s can handle. The number is replaced by the largest number the HP 35s can handle and the message OVERFLOW...
Page 189
hp calculators HP 35s Using HP 35s Flags hp calculators - 5 - HP 35s Using HP 35s Flags - Version 1.0 Example 4: A long program has three parts. To let the user see how far it has gone, it can set flag 1 in the first part, flag 2 in the second part, and flag 3 in the third part. How is this done? Solution: At the beginning of the program, the user puts “SF 1” immediately after the first label. +3+45!$$ Figure 8 At the end of the first part of the program, the user clears flag 1...
Page 190
hp calculators HP 35s Using HP 35s Flags hp calculators - 6 - HP 35s Using HP 35s Flags - Version 1.0 It is best to clear flag 5 at the end of the program, so the calculator will behave the usual way after the program is finished. Answer: This example shows how flag 5 can be useful in a program. Example 6: A program that uses temperatures must work with degrees Fahrenheit or degrees Celsius. Use flag 0 to make the program work with both temperature scales. Solution: The program...