35s - inputting to indirect registers



#8

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.


#9

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.


#10

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!


#11

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

#12

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

Stefan


#13

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.


#14

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.


Possibly Related Threads...
Thread Author Replies Views Last Post
  WP-34S Matrix operations with routine-local registers? Tom Grydeland 1 711 09-04-2013, 10:46 AM
Last Post: Marcus von Cube, Germany
  WP-34S: Subroutines, local registers and hotkeys Marcel Samek 7 1,367 08-23-2013, 12:08 PM
Last Post: David Hayden
  WP-34S: question - Initialization of local registers Marcel Samek 8 1,563 07-07-2013, 09:57 PM
Last Post: Steve Simpkin
  WP34s indirect addressing of alphanumeric labels Eduardo Duenez 4 1,026 06-06-2013, 08:29 PM
Last Post: Eduardo Duenez
  HP 39gii Help Wanted: Inputting Strings in a Program Eddie W. Shore 0 496 02-09-2013, 02:17 PM
Last Post: Eddie W. Shore
  Limits of Indirect Addressing on the WP34S Namir 11 1,862 08-01-2012, 11:53 PM
Last Post: Namir
  35S I & J registers Matt Agajanian 5 986 03-05-2012, 05:14 AM
Last Post: Bart (UK)
  WP 34S - indirect addressing issue Gerson W. Barbosa 8 1,396 01-22-2012, 05:46 PM
Last Post: Gerson W. Barbosa
  WP 34S: Double precision registers - What are your feelings? Marcus von Cube, Germany 16 2,535 12-26-2011, 10:49 AM
Last Post: Dieter
  HP-41CX Memory Registers Prabhu Bhooplapur 9 1,596 02-24-2010, 09:53 PM
Last Post: Prabhu Bhooplapur

Forum Jump: