The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

WP34s indirect addressing of alphanumeric labels
Message #1 Posted by Eduardo Duenez on 5 June 2013, 11:27 p.m.

Hello, fellow forumites and 34s developers.

Is the 34s capable of indirectly addressing an alphanumeric label like 'HIL' (or hotkeys A,B,C,D for that matter)?

Here's what I'm trying to do: Take an alpha string like 'HIL', and [alpha]STOre it, let us say in R00.

The instruction

XEQ> 00 
(indirect execution) does *not* work like
XEQ 'HIL'
because seemingly XEQ> 00 interprets R00 as a numerical label 4,737,356 giving an "Out of range Error".

The procedure works just fine if R00 is a number such as 42, namely

XEQ> 00 
executes as
XEQ 42

Is it possible to accomplish the above for alphanumeric (or hotkey) labels?

ALTERNATE QUESTION: Is it possible to XEQ a subroutine whose LBL is stored in the alpha register?

Thanks,

Eduardo

(As a side note, I'm writing a program that calls any named subroutine, say LBL 'HIL' ... RTN computing a 2-argument function f(i,j) to fill the entries of a matrix M with M(i,j) = f(i,j). I would like the program to be able read the label 'ABC' from the alpha register...)

      
Re: WP34s indirect addressing of alphanumeric labels
Message #2 Posted by Paul Dale on 5 June 2013, 11:32 p.m.,
in response to message #1 by Eduardo Duenez

No.

- Pauli

            
Re: WP34s indirect addressing of alphanumeric labels
Message #3 Posted by Eduardo Duenez on 5 June 2013, 11:51 p.m.,
in response to message #2 by Paul Dale

Quote:
No.

- Pauli


Wishlist for 43s...

Eduardo

      
Re: WP34s indirect addressing of alphanumeric labels
Message #4 Posted by Walter B on 6 June 2013, 12:54 a.m.,
in response to message #1 by Eduardo Duenez

Quote:
Is it possible to XEQ a subroutine whose LBL is stored in the alpha register?
Not exactly. But try XEQ[alpha] for an alternative.

d:-)

            
Re: WP34s indirect addressing of alphanumeric labels
Message #5 Posted by Eduardo Duenez on 6 June 2013, 8:29 p.m.,
in response to message #4 by Walter B

Quote:
Not exactly. But try XEQ[alpha] for an alternative.

d:-)


I guess you mean [alpha]XEQ, which solves my original problem (per page 110 of manual v3.1). Thanks!

Eduardo

EDIT: I correct myself. XEQ[alpha] on p. 107 is what Walter meant.

Edited: 7 June 2013, 1:23 p.m.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall