Hi, Klaus;
let's see if this helps a bit. In time: all text below assumes the HP11C is not in USER mode. If you want to use it in USER mode, suppress the [f] prefix key before [A], [B], [C], [D] and [E] keys.
The following program does what you want to do, but you must consider some facts:
1 - your called "factor" is stored in register R0;
2 - register contents from R1 to R.0 (the eleventh register available, and the tenth register in the block R1-R.0) are multiplied by the factor each time the factor is updated, and this happens when you press [f][B] (or [GSB][B]);
3 - I added two labels so you can see the registers contents in two ways either sequentially (LBL C)or randomly (LBL D). If you want a sequence, press [f][C] and the current contents are shown from R1 to R.0 (index is briefly shown); each time the calculator stops with the current value, press [R/S] for the next one. If you want a random check, key in the number of the register you want to see and press [f][D].
4 - When you are about to restart storing new amounts, key in the number of the current amount you want to store from and press [f][E]; this is necessary to update I-register (index control) contents. The index register contents is changed everytime a check is made (use of LBL C or LBL D). Also, when you a re about start over a new set, you can clear all registers contents with [f]CLEAR[REG] and you must key 1[f][E] to set the index register to the first register prior to use the sequence number[f][A].
After keying the program in, try this: (you may use FIX 4)
Key in Display Comments
[f]CLEAR[REG] 0.0000
1 [f][E] 1.0000 sets RI to 1.01
20 [f][A] 20.0000 stores 20 in R1
30 [f][A] 30.0000 stores 30 in R2
50 [f][A] 50.0000 stores 50 in R3
5 [f][B] running
5.0000 multiplies all values by factor (5)
[f][C] 1.0000 shown briefly
100.0000 R1 contents times factor
[R/S] 2.0000 shown briefly
150.0000 R2 contents times factor
[R/S] 3.0000 shown briefly
250.0000 R3 contents times factor
1 [f][D] 100.0000 R1 contents
3 [f][D] 250.0000 R3 contents
4 [f][E] 4.0000 gets ready do store values from R4
One last remark: the values stored after prior contents being updated are not updated automatically with this program. If you want, some small changes can be added so LBL A multiplies entered data by factor prior to store them. Or you may want values to be unchanged so they are only shown updated; what do you think? I guess keeping values entered through LBL A as they are keyed in allows bigger flexibility, but I was not sure if you wanted accumulated factors.
Let me know if this fits your needs or what changes you want to be made, O.K.?
Cheers.
Luiz (Brazil)
Listing
001-42,21,11 f LBL A
002- 44 24 STO (i)
003- 42 6 f ISG
004- 31 R/S
005-42,21,12 f LBL B
006- 44 0 STO 0
007- 1 1
008- 48 .
009- 0 0
010- 1 1
011- 44 25 STO I
012- 33 Rv (roll down)
013-42,21, 0 f LBL 0
014-44,20,24 STO × (i)
015- 42 6 f ISG
016- 22 0 GTO 0
017- 43 32 g RTN
018-42,21,13 f LBL C
019- 1 1
020- 48 .
021- 0 0
022- 1 1
023- 44 25 STO I
024-42,21, 1 f LBL 1
025- 45 25 RCL I
026- 43 44 g INT
027- 42 31 f PSE
028- 45 24 RCL (i)
029- 31 R/S
030- 42 6 f ISG
031- 22 1 GTO 1
032- 43 32 g RTN
033-42,21,14 f LBL D
034- 44 25 STO 25
035- 45 24 RCL (i)
036- 43 32 g RTN
037-42,21,15 f LBL E
038- 48 .
039- 0 0
040- 1 1
041- 40 +
042- 44 25 STO I
043- 43 44 g INT
Edited: 1 Sept 2004, 3:06 a.m. after one or more responses were posted