The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

Non-Prime question alert: Hp-41 and synthetic instructions
Message #1 Posted by Marcel Samek on 3 Nov 2013, 6:18 p.m.

A few days ago I got an HP-41CX. I'd never used an HP-41(or an emulator) before. The advantage and IR modules are in the mail.

I've been playing around and trying out some of the programs in the library and have a question.

Right now I don't have the time or interest in learning about the synthetic programming. Maybe some other time. However, some of the programs in the library use some synthetic instructions ('STO M', for example, is a common one).

I've poked around and while there is lots of material on synthetic programming, all I really want is simple documentation on how to enter some of these instructions when I encounter them. I have not been able to find that.

Can someone point me in the right direction. I am looking for a simple how-to, rather than in depth information.

Thanks

      
Re: Non-Prime question alert: Hp-41 and synthetic instructions
Message #2 Posted by Gerson W. Barbosa on 3 Nov 2013, 6:52 p.m.,
in response to message #1 by Marcel Samek

Instead of M and N you can use any unused regular registers, such as 00 and 01, for instance.

Gerson.

            
Re: Non-Prime question alert: Hp-41 and synthetic instructions
Message #3 Posted by Raymond Del Tondo on 4 Nov 2013, 12:41 a.m.,
in response to message #2 by Gerson W. Barbosa

Quote:
Instead of M and N you can use any unused regular registers, such as 00 and 01, for instance.
Generally yes, but some of the lettered registers were used for Alpha manipulation, too, so it depends on the target of the program.

The easiest and best way to enter synthetics is the W&W CCD Module, or an image of the CCD Module in a RAM/ROM simulator module. As an alternative I'd recommend the CCD OS/X , which contains all operating system extensions and nearly all I/O functions from the CCD module.

HTH

Ray

                  
Re: Non-Prime question alert: Hp-41 and synthetic instructions
Message #4 Posted by Marcel Samek on 4 Nov 2013, 11:17 a.m.,
in response to message #3 by Raymond Del Tondo

Well, I did poke around some information on the CCD module and also read this http://www.hpmuseum.org/prog/synth41.htm

It appears that it is definitely not quite as simple as just punching in an undocumented key sequence. I will spend more time on it sometimes in the future and in the meanwhile stick with Gerson's advice with regards to M&N and stay away from other synthetics until I have time to learn a bit more.

I must say that I do enjoy the calculator. I must be one of the few people who got familiar with the WP-34S before ever having touched a 41 or 42. Now I am beginning to understand why the 34S is the way it is ;)!

      
Re: Non-Prime question alert: Hp-41 and synthetic instructions
Message #5 Posted by Geir Isene on 4 Nov 2013, 7:19 a.m.,
in response to message #1 by Marcel Samek

"Non-Prime question alert"

.. what a breath of fresh air :-)

            
Re: Non-Prime question alert: Hp-41 and synthetic instructions
Message #6 Posted by Ángel Martin on 4 Nov 2013, 8:34 a.m.,
in response to message #5 by Geir Isene

Indeed, I guess we're being "primed" whether we like it or not...

                  
Re: Non-Prime question alert: Hp-41 and synthetic instructions
Message #7 Posted by Massimo Gnerucci (Italy) on 4 Nov 2013, 10:29 a.m.,
in response to message #6 by Ángel Martin

:-)

I'm with you, guys!

                        
Re: Non-Prime question alert: Hp-41 and synthetic instructions
Message #8 Posted by Marcus von Cube, Germany on 4 Nov 2013, 11:30 a.m.,
in response to message #7 by Massimo Gnerucci (Italy)

Ready for Prime time... ;)

                              
Re: Non-Prime question alert: Hp-41 and synthetic instructions
Message #9 Posted by Dieter on 4 Nov 2013, 2:13 p.m.,
in response to message #8 by Marcus von Cube, Germany

Quote:
Ready for Prime time... ;)
There is only one real (tm) Prime computer: This one.

Dieter,
used such a beast at university back in the Eighties.

Edited: 4 Nov 2013, 2:15 p.m.

      
Re: Non-Prime question alert: Hp-41 and synthetic instructions
Message #10 Posted by Dieter on 4 Nov 2013, 2:09 p.m.,
in response to message #1 by Marcel Samek

You cannot key in synthetic instructions just as you do with regular '41 commands. These commands are, well ...synthetic. ;-) Which essentially means that you are dealing with byte sequences that usually cannot be entered at all. The regular 41 operating system prevents the user from doing so.

Here's an example: STO N is byte code 91 76. You can press [STO], but there is no way to have it followed by an N. However, you can enter RCL IND 17 followed by LastX. In hexadecimal byte notation, this is 90 91 76. Now you just have to remove the first byte (90) somehow (e.g. with the fabulous "byte grabber"). This leaves 91 76 - et voilà, there is your STO N. It was synthesized from two other commands.

As you can see, you will need at least two things: first, a HP41 byte table (available on the internet), and then a means to remove single bytes, e.g. the mentioned byte grabber. You should find some instructions on this site on how to make one.

You may also completely ignore synthetic programming. Using registers M, N and O in some programs often simply is a way to acquire a set of temporary registers. M, N, O and partially P usually hold the contents of the 41's alpha register. So a simple CLA clears them all at once, and if a program does not use the alpha register, you get three or four registers for free, even with SIZE 000 set. Which is very handy but not the only possible way. Simply replace these registers with regular numbered ones, and you are done. On the other hand, if you really come across a synthetic program that uses these registers in a more sophisticated way, or does even things that cannot be done with standard programming, you will have to dig much deeper into the world of synthetic programming. Which means: get a book and take your time.

Dieter

            
Re: Non-Prime question alert: Hp-41 and synthetic instructions
Message #11 Posted by Marcel Samek on 4 Nov 2013, 10:59 p.m.,
in response to message #10 by Dieter

That is the most succinct and clear explanation of synthetic instructions yet!

I think that I will ignore synthetic programming for now. The regular instructions is definitely rich enough to entertain me.

Thanks.

      
Re: Non-Prime question alert: Hp-41 and synthetic instructions
Message #12 Posted by sjthomas on 4 Nov 2013, 9:31 p.m.,
in response to message #1 by Marcel Samek

The ZenROM also provides easy entry of synthetic program lines.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall