The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

HP 35s - multiple program input values?
Message #1 Posted by Arno on 28 Apr 2013, 10:50 p.m.

Can someone explain what happened here in line C013?

http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/articles.cgi?read=896

The program works with different numbers of variables N. I want to write a similar program, but I am not sure how the author saved the N-entries and how to address them for calculations by the program. Went through the manual and can't find anything like this. Any explanation regarding this would be great. If you happen to know a link to a tutorial for this even better.

Thanks!

Edited: 28 Apr 2013, 10:50 p.m.

      
Re: HP 35s - multiple program input values?
Message #2 Posted by Gerson W. Barbosa on 28 Apr 2013, 11:59 p.m.,
in response to message #1 by Arno

Quote:
Can someone explain what happened here in line C013?

http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/articles.cgi?read=896


This is just a dumb equation:

http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/archv019.cgi?read=170313

http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/archv017.cgi?read=126951 (Message #8)

HTH

Edited: 29 Apr 2013, 12:19 a.m.

            
Re: HP 35s - multiple program input values?
Message #3 Posted by Arno on 29 Apr 2013, 10:45 a.m.,
in response to message #2 by Gerson W. Barbosa

Ok, I see. So how do you handle the multiple values entered for N? I don't see how he stores them as apparently he doesn't use A-Z variables. How do you address them?

                  
Re: HP 35s - multiple program input values?
Message #4 Posted by Gerson W. Barbosa on 29 Apr 2013, 11:27 a.m.,
in response to message #3 by Arno

Indirect addressing. J is used as index. In addition to the A-Z variables, there are numbered registers which are indirectly accessible through (I) and (J), as far as I can remember (I don't have a 35s anymore).


[ Return to Index | Top of Index ]

Go back to the main exhibit hall