HP (Hewlett-Packard) 32SII Calculator User Manual


 
12–2 Simple Programming
File name 32sii-Manual-E-0424
Printed Date : 2003/4/24 Size : 17.7 x 25.2 cm
This very simple program assumes that the value for the radius is in the X–
register (the display) when the program starts to run. It computes the area and
leaves it in the X–register.
To enter this program into program memory, do the following:
Keys: Display: Description:
z
b
{ALL} {Y}
Clears memory.
z
d
Activates Program–entry mode
(PRGM annunciator on).
z
U

!
Resets program pointer to PRGM
TOP.
z
:

º
(Radius)
2
{
M

π
y

º
Area =
π
x
2
z
d
Exits Program–entry mode.
Try running this program to find the area of a circle with a radius of 5:
Keys: Display: Description:
z
U
This sets the program to its
beginning.
5
f
)
The answer!
We will continue using the above program for the area of a circle to illustrate
programming concepts and methods.
Designing a Program
The following topics show what instructions you can put in a program. What
you put in a program affects how it appears when you view it and how it
works when you run it.