HP-49 array indirect addressing
#1

I have a problem with array indirect addressing: When I'm using direct addressing for the global array RTAB e.g. 'RTAB(1,2)' the contents of the cell in the first row/second column is pushed on the stack. But if I write 'RTAB(i,2)' with i=1 the whole term 'RTAB(i,2)' is pushed on the stack although Approximation Mode is active. What am I doing wrong, what do I need to do to get the value from the cell on the stack with indirect addressing and where can I get more detailed information about the different addressing modes ? Any hint is very much appreciated. Thank you very much in advance.

#2

Hi;

In Aproximation Mode, (0,1) replaces 'i'. I tried what you mention and it worked fine with 'RTAB(I,2)' instead of 'RTAB(i,2)', being Aproximation Mode on OR off.

Let me know if you have success.

Cheers.

#3

Hello,

and thank you for your response. I experimented further and found out that the problem wasn't a capitol letter or not for the index variable. Instead I found that 'RTAB(I,2)' must be followed by the command -> Num and I made the mistake not to place << immedeately after the declaration of the index variable. Alas the full program isn't finished, yet. By the way, do you know if there is some documentation about the addressing modes somewhere in the Web ? If you're interested in further discoveries during this program development anyway, please let me know.

Kind regards

#4

Hi, Karl;

another possibility is using EVAL instead of ->NUM (that's what I used). In order to indirectly address to any element in any data array, that's the one option I know.

As I remember well, HP48 original literature (manuals) mention this "indirect" access to array elements as 'Using Arrays and Array Elements in Algebraic Expressions' (User's Guide, 14-12). I also remember that the HP48S/SX literature ilustrated this sort of indirect access by using lists.

And yes, I am surely interested on this sort of subject. As you (and I) have discoveries/information about it, let's post them here.

Thank you. And best regards.



Possibly Related Threads…
Thread Author Replies Views Last Post
  HP Prime... NOT meant to replace HP48,49,50 ? Chris Pem10 21 5,523 11-18-2013, 03:30 PM
Last Post: Chris Smith
  HP Prime: How to use a large array in a program? HP Pioneer 2 1,370 10-27-2013, 03:15 AM
Last Post: steindid
  ANN: A MacOSX Kermit program for HP48/49/50 calculators Paul Onions 2 1,564 09-08-2013, 04:55 AM
Last Post: Paul Onions
  Nibble reverse (HP-48,49,50g) Gerson W. Barbosa 44 11,837 07-28-2013, 10:10 PM
Last Post: Gerson W. Barbosa
  [HP -Prime CAS] List, Matrix, Vector as one Array? CompSystems 0 972 07-26-2013, 05:22 PM
Last Post: CompSystems
  ILPer with "auto-extended addressing" Christoph Giesselink 0 961 07-23-2013, 03:28 PM
Last Post: Christoph Giesselink
  (OT) Pandigital expression (HP-48,49,50g) Gerson W. Barbosa 19 5,377 07-19-2013, 05:59 AM
Last Post: Gilles Carpentier
  i41CX for iOS with page addressing Sylvain Cote 3 1,405 06-15-2013, 07:25 AM
Last Post: Ángel Martin
  WP34s indirect addressing of alphanumeric labels Eduardo Duenez 4 1,644 06-06-2013, 08:29 PM
Last Post: Eduardo Duenez
  downloading HO 229 v. 2,0 from HP 49/50 Astronomy Programs list Al 10 2,781 11-26-2012, 05:38 PM
Last Post: Al

Forum Jump: