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:

zb{ALL} {Y} 

Clears memory.

zd



Activates Program–entry mode

 

 

(PRGM annunciator on).

zUŒŒ

z:

{M y

zd

 ! Resets program pointer to PRGM

 

TOP.

 º

(Radius)2

 π

 

 º

Area = πx2

 

Exits Program–entry mode.

Try running this program to find the area of a circle with a radius of 5:

Keys: Display:Description:

zUŒŒ 

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.

12–2 Simple Programming

File name 32sii-Manual-E-0424

 

Printed Date : 2003/4/24

Size : 17.7 x 25.2 cm