HP 35s User Manual page 6

Scientific calculator - writing a simple program
Hide thumbs Also See for HP 35s:
Table of Contents

Advertisement

hp calculators
HP 35s Writing a Simple Program
If a user creates a new program on an HP 35s and then writes it down for future use, it is worth keeping a note
of the checksum with the written program. That way, the program can be checked if it is typed into the HP 35s
again later.
If a user wants to offer a program to other users, the checksum should be given with the program, so the other
users can check if they have entered the program correctly into their HP 35s.
The checksum can be very helpful, but it does not have to be used – for short programs such as the above it can be
enough to step through the program with the up and down arrow keys and correct any mistakes.
Mistakes can be either wrongly typed lines, or missing lines. To add a missing line, use the × and Ø keys until the
line before the missing line is at the bottom of the screen. Then type the missing line or lines. If a line is wrong, move it to
the lower line of the screen and use the ~ key to delete one or more lines, then type the correct line or lines.
Even after all typing errors have been corrected, a program can still be wrong if it was designed wrongly. The HP 35s
manual provides advice on program testing and describes more programming tools.
To go to a line in a program, to see it or to change it, use the GTO command, followed by a dot and then the program
name and the line number. For example to go to line 5 of program A type rËA005.
The LBL and the RTN help to identify each program. If a program is executed by the user pressing ¥ then the Ô
goes back to the top of program memory, where the program stops. If both program B and program A are in the HP 35s,
and program A is used, then the RTN at the end will go to label B at the top of program memory. Next time ¥ is
pressed, program B will begin, not program A. This means that only the program at the top of program memory will work
like a function key when ¥ is pressed. To execute program A if it is not at the top of memory, press tAÏ.
hp calculators
- 6 -
HP 35s Writing a Simple Program - Version 1.0

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HP 35s and is the answer not in the manual?

Questions and answers

Table of Contents