Keystrokes

Display

 

2.

Ç

03-

 

25.

Ç

04-

 

156.25

Ç

05-

 

468.75

Ç

06-

 

5.

Ç

07-

 

473.75

Section 8: Programming Basics

97

Result of executing program line 02.

5Program line 03: 5.

Result of executing program line 03.

25Program line 04: b

Result of executing program line 04.

30Program line 05: -

Result of executing program line 05.

5Program line 06: 5

Result of executing program line 06.

40Program line 07: +

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

Pressing 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 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 uinstruction, program execution halts for about 1 second, then resumes. During the pause, the calculator displays the last result calculated before the uinstruction 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.

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