The Museum of HP Calculators

HP Forum Archive 17

[ Return to Index | Top of Index ]

35s - inputting to indirect registers
Message #1 Posted by srayb on 17 Aug 2007, 1:09 a.m.

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.

      
Re: 35s - inputting to indirect registers
Message #2 Posted by Don Shepherd on 17 Aug 2007, 1:26 a.m.,
in response to message #1 by srayb

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.

            
Re: 35s - inputting to indirect registers
Message #3 Posted by srayb on 17 Aug 2007, 1:37 a.m.,
in response to message #2 by Don Shepherd

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!

                  
Re: 35s - inputting to indirect registers
Message #4 Posted by Don Shepherd on 17 Aug 2007, 1:54 a.m.,
in response to message #3 by srayb

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

      
Re: 35s - inputting to indirect registers
Message #5 Posted by Stefan Vorkoetter on 17 Aug 2007, 11:36 a.m.,
in response to message #1 by srayb

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

Stefan

            
Re: 35s - inputting to indirect registers
Message #6 Posted by Gene Wright on 17 Aug 2007, 12:04 p.m.,
in response to message #5 by Stefan Vorkoetter

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.

                  
Re: 35s - inputting to indirect registers
Message #7 Posted by Ralph on 18 Aug 2007, 6:22 a.m.,
in response to message #6 by Gene Wright

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.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall