Section 8: Programming Basics 101

If the duration of the pause is not long enough to write down the number displayed, you can prolong it by using more than one uinstruction. Alternatively, you can have the program automatically stop as described next.

Stopping Program Execution

Stopping Program Execution Automatically. Program execution is automatically halted when the program executes a t instruction. To resume executing the program from the program line at which execution was halted, press t.

Example: Replace the program above by one containing t instructions instead of uinstructions.

Keystrokes fs fCLEARÎ

§

t

?+1 :0 b t

Display

 

 

 

00-

 

 

Sets calculator to Program mode.

00-

 

20

Clears program memory.

01-

 

 

02-

 

31

Stops program execution to display

03- 44

40

1

AMOUNT.

 

04-

45

0

 

05-

 

25

 

06-

 

31

Stops program execution to display

 

 

 

TAX.

?+2

+

?+3 fs fCLEAR² 13\68.5t t t

18\72.9

t t t

07- 44 40 2

08- 40

09- 44 40 3

6,370.52

0.00

68.5

890.50

60.11

950.61

72.9

1,312.20

88.57

1,400.77

Sets calculator to Run mode.

Clears registers R1 through R6. First item.

AMOUNT for first item.

TAX for first item.

TOTAL for first item.

Second item.

AMOUNT for second item.

TAX for second item.

TOTAL for second item.

File name: hp 12c_user's guide_English_HDPMBF12E44

Page: 101 of 209

Printered Date: 2005/7/29

Dimension: 14.8 cm x 21 cm