The Museum of HP Calculators

HP Forum Archive 16

[ Return to Index | Top of Index ]

How do I get started with System RPL?
Message #1 Posted by David on 9 Sept 2006, 6:45 p.m.

I have downloaded Debug4x by Bill Graves which looks like a great IDE. It has some examples and I have found out some basics of putting buttons and fields on the screen.

Now, how do I get values out IN and OUT of the stack to do something with them?

I'm not even able to get register 1 added to register 2 and display the result in register 1.

This is very easy to do in User RPL,but I'm not able to find this basic type of info anywhere.

      
Re: How do I get started with System RPL?
Message #2 Posted by Gerson W. Barbosa on 9 Sept 2006, 7:32 p.m.,
in response to message #1 by David

I think this might be helpful:

http://www.hpcalc.org/details.php?id=5142

            
Re: How do I get started with System RPL?
Message #3 Posted by David on 9 Sept 2006, 9:00 p.m.,
in response to message #2 by Gerson W. Barbosa

I have this and have been studying it. I have also downloaded some examples that go with this book, but I have been unable to get those to compile correctly. I presume that this is due to some syntactical differences between the 49 series and the 50g.

I've been trying to get the example called "First" to compile in the Debug4x environment. I've tried putting into some simple code that sucessfully compiles, but without success.

The example "First" merely computes the area of a circle from one value, the radius, supplied in register 1.

It's incredibly simple, but I haven't figured it out yet.

                  
Re: How do I get started with System RPL?
Message #4 Posted by Tim Wessman on 9 Sept 2006, 10:03 p.m.,
in response to message #3 by David

Debug4x is quite tricky to use at first, but it is well worth it WHEN YOU GET LARGER MORE COMPLICATED PROGRAMS.

Programming on the calculator is best when you are just learning. Only when programs start getting really complex should you switch. This allows you to test and execute things directly. You will probably crash your calculator a lot, but you'll learn sysRPL much quicker this way.

In debug4x you'll need to specify a lot of information that isn't needed when you compile on the calculator. This information is probably missing which is why your code isn't working. If you'd like, zip it up (your folder with you basic code) and send it to me. I will set the options you need and add everything in so it will work. In the meantime, I'd suggest learning on the calculator. It is very easy to do.

Install emacs, sdiag, extable2 (all found in the emacs zip folder) and Nosy. These programs are all found on hpcalc.org

Appendix A in the book referred to describes a little bit about all these tools if my memory serves.

TW


[ Return to Index | Top of Index ]

Go back to the main exhibit hall