The Museum of HP Calculators

HP Forum Archive 09

[ Return to Index | Top of Index ]

HP-41 Synthetic Programming Question
Message #1 Posted by Jeff Davis on 1 Jan 2003, 6:50 p.m.

Is there a way to obtain the following by using the Byte Grabber? X<=M Please let me know. Best Regards, Jeff

      
Re: HP-41 Synthetic Programming Question - I'm curious, too
Message #2 Posted by Vieira, Luiz C. (Brazil) on 1 Jan 2003, 7:18 p.m.,
in response to message #1 by Jeff Davis

Hi;

you want to compare X-Register contents with M-register (ALPHA set) contents?

You lnow, when I began dealing with Synth programs I thought a lot of new stuff could be done. Well, I saw many new things being done, but this particular operation is teasing. The HP41CX allows X<=NN (and all available comparisons), where NN is the number of the register which contents are to be compared with X-register contents. That's the closest I remember.

Now I'm curious, too.

Cheers.

            
Re: HP-41 Synthetic Programming Question - I'm curious, too
Message #3 Posted by Jeff Davis on 1 Jan 2003, 8:29 p.m.,
in response to message #2 by Vieira, Luiz C. (Brazil)

I want to make my program as short as possible. Trying to eliminate the RCL M statements and just compare the #'s. I do not need the numbers per say in the alpha registry just the ability to transfer program executiion based on the comparison. Any ideas? Best Regards, Jeff

                  
Re: HP-41 Synthetic Programming Question - I'm curious, too
Message #4 Posted by Gene on 1 Jan 2003, 10:07 p.m.,
in response to message #3 by Jeff Davis

I don't believe this is possible. Sorry.

Gene

      
Re: HP-41 Synthetic Programming Question
Message #5 Posted by Ernie Malaga on 2 Jan 2003, 12:57 a.m.,
in response to message #1 by Jeff Davis

>Is there a way to obtain the following by using the Byte Grabber? X<=M

Jeff:

Synthetic programming does wonders, alas, not miracles. Specifically, it cannot create a brand-new instruction (such as X<=M). SP has come up with a few new instructions (such as eG0BEEP and W') but those are exceptions.

Unfortunately, there's no way to code an X<=M (at least to my knowledge).

By the way, if both X and M contain numeric data, you can use the X<=Y test; if they contain alpha data, you *must* use X<=NN (available on the HP-41CX).

x<>y -Ernie


[ Return to Index | Top of Index ]

Go back to the main exhibit hall