138 Section 9: Branching and Looping

Keystrokes (ALG mode)

25000

Ê

Ê

Ê

Ê

Ê

Ê

Ê

Ê

Ê

Display

 

 

 

25,000.

 

 

Keys income greater than test value

 

 

 

into display and X-register.

001,

44

9

Line 001: ?9.

25,000.00

 

Stores income into register R9.

002,

45

0

Line 002: :0.

20,000.00

 

Test value has been recalled to

 

 

 

X-register, moving income to

 

 

 

Y-register.

003,

 

34

Line 003: ~.

25,000.00

 

Income has been placed in

 

 

 

X-register and test value has been

 

 

 

placed in Y-register.

004,

 

20

Line 004: §.

25,000.00

 

 

005,

43

34

Line 005: go.

25,000.00

 

 

007,

45

2

Condition tested by owas false,

 

 

 

so program execution skipped the

 

 

 

next line and continued at line

007: :2.

25.0025% tax rate has been recalled to X-register, moving income to Y-register.

008,43,33,010

Line 008: gi010.

25.00

 

 

010,

25

Line 010: b.

0.25Divides tax rate by 100.

011, 36 Line 011: }.

6,250.00 25% of 25,000 = 6,250.

File name: hp 12c pt_user's guide_English_HDPMF123E27

Page: 138 of 275

Printed Date: 2005/8/1

Dimension: 14.8 cm x 21 cm

Page 138
Image 138
HP 12C Financial 12C manual 25,000.00 007, 25.00 010