HP Forums

Full Version: 35s - inputting to indirect registers
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

Hi,

I am trying to create a program loop to enable me to enter values into the indirect registers 11 to 15. I am able to VIEW(I) these values using the ISG loop technique, but cannot use INPUT(I) with the same technique (results in an "INVALID (I)" error).

Here's the code that works for VIEWing (LBL C), followed by the code that doesn't work for INPUTing (LBL B):

C001 LBL C
C002 11.015
C003 STO A
C004 RCL A
C005 INTG
C006 STO I
C007 VIEW(I)
C008 ISG A
C009 GTO C004
C010 RTN

B001 LBL B
B002 11.015
B003 STO A
B004 RCL A
B005 INTG
B006 STO I
B007 INPUT(I)
B008 ISG A
B009 GTO B004
B010 RTN

Many thanks for any help with this!


Edited: 17 Aug 2007, 1:14 a.m.

There was a recent thread on this subject. You can only use indirect addressing with INPUT for registers A-Z, or -1 to -26. It does work with those registers.

Quote:
There was a recent thread on this subject. You can only use indirect addressing with INPUT for registers A-Z, or -1 to -26. It does work with those registers.

Ah, another BUG, I mean LIMITATION, I mean FEATURE of the 35s. Oh well, it's still a cool calculator! :-)

Thanks for the info!

I agree, it's cool. Per Gene, this is probably a manual (documentation) error.

I guess you could always input into one of the named registers, and then STO (i) the value.

Stefan

Or just do something like this in a loop.

RCL I
STOP
STO (I)

This prompts with the value of the indirect register into which the value will be stored. Then it is stored into the proper indirect register.

I just input to a regular variable and then pull it to the stack and store it.

INPUT D
RCL D
STO(I)

Not as elegant as INPUT(I) but functional.

Edited: 18 Aug 2007, 6:24 a.m.