HP 12C Financial calculator User Manual

Page 97

Advertising
background image

Section 8: Programming Basics

97

File name: hp 12c_user's guide_English_HDPMBF12E44

Page: 97 of 209

Printered Date: 2005/7/29

Dimension: 14.8 cm x 21 cm

Keystrokes Display

2.

Result of executing program line
02.

Ç

03-

5

Program line 03: 5.

25.

Result of executing program line
03.

Ç

04-

25

Program line 04: b

156.25

Result of executing program line
04.

Ç

05-

30

Program line 05: -

468.75

Result of executing program line
05.

Ç

06-

5

Program line 06: 5

5.

Result of executing program line
06.

Ç

07-

40

Program line 07: +

473.75

Result of executing program line
07 (the last line of the program).

Pressing gÜ while the calculator is in Run mode sets the calculator to the
previous line in program memory, then displays that line’s number and the
keycode of the instruction stored there, just as in Program mode. In Run mode,
however, when the Ü key is released the display again shows the same number
as it did before gÜ was pressed: no instruction in program memory is
executed.

Interrupting Program Execution

Occasionally you’ll want a program to stop executing so that you can see an
intermediate result or enter new data. The hp 12c provides two functions for doing
so: u (pause) and t (run/stop).

Pausing During Program Execution

When a running program executes a u instruction, program execution halts for
about 1 second, then resumes. During the pause, the calculator displays the last
result calculated before the u instruction was executed.

If you press any key during a pause, program execution is halted indefinitely. To
resume program execution at the program line following that containing the u
instruction, press t.

Advertising