122 Section 8: Programming Basics

Keystrokes

Display

 

:2

402.82

Sum of TAX column.

:3

6,370.52

Sum of TOTAL column.

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 guinstruction. 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 guinstructions.

Keystrokes

Display

 

 

 

(RPN mode)

 

 

 

 

 

 

 

fs

 

 

 

Sets calculator to Program mode.

fCLEARÎ

000,

 

 

Clears program memory.

§

001,

 

20

 

 

 

 

t

002,

 

31

Stops program execution to display

 

 

 

 

AMOUNT.

?+1

003,44

40

1

 

:0

004,

45

0

 

b

005,

 

25

 

 

 

 

t

006,

 

31

Stops program execution to display

 

 

 

 

TAX.

?+2

+

?+3

Keystrokes (ALG mode)

fs

fCLEARÎ

007,44

40

2

008,

 

40

009,44

40

3

Display

 

 

Sets calculator to Program mode.

000,

Clears program memory.

File name: hp 12c pt_user's guide_English_HDPMF123E27

Page: 122 of 275

Printed Date: 2005/8/1

Dimension: 14.8 cm x 21 cm

Page 122
Image 122
HP 12C Financial 12C manual 402.82, 370.52, Stopping Program Execution, 003,44 004 005 006, 007,44 008 009,44