Iiwh«aiaibiaiiai№abniaijjiiabbt«i, Viewing, debugging, and editing programs, To view or edit a program – HP 48g Graphing Calculator User Manual

Page 414: Viewing, debugging, and editing programs -8, Ceeschh

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

Advertising
background image

Step 1:

Enter the program.

« + r ' 4^3*ir*r''3'

^NUfl

»•

fli5gni8mafirH'aB)Hjiia4iiBifarHa

IS)E3
(3Q©S)R(ZD
Q4 0 3 0S1I30
© Q R (F3 3 ® @0
r»^f-»MUMl

Step 2:

Put the program on the stack, store it in VOL and calculate
the volume for a radius of 4 .

(ENTER HVAR)

(5)

0 L 4

VOL

1

-

268.082573106

iiwH«aiaiBiaiiai№aBniaijJiiaBBT«i

Viewing, Debugging, and Editing Programs

29

To view or edit a program:

1. View the program:

■ If the program is in level 1, press f^fEDIT 1.
■ If the program is stored in a variable, put the variable name in

level 1 and press SHMiD-

2. Make any desired changes.
3. Press

[

enter

!

to save any changes (or press

[CANCEL]

to discard

changes) and return to the stack.

It’s easier to understand how a program works if you execute it step

by step, observing the effect of each step. Doing this can help you

“debug” your own programs or understand programs written by

others.

To

single-step from the

start of a

program:

1. Put any data required by the program on the stack on the

appropriate levels.

2. Put the program or program name in level 1 (or the command

line).

3. Press

CEESCHH

l

) R

uh

C'B

ug

to start and immediately

suspend execution. The HALT annunciator is displayed in the
status area.

29-8 Programming the HP 48

Advertising
This manual is related to the following products: