The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

How to save WP34s programs to a file?
Message #1 Posted by Harald on 25 Apr 2013, 1:02 p.m.

I finally go round to playing with the emulator. I successfully transmitted programs from the real device to the emulator. But how can I save them to a file from the emulator?

      
Re: How to save WP34s programs to a file?
Message #2 Posted by fhub on 25 Apr 2013, 1:56 p.m.,
in response to message #1 by Harald

Quote:
I finally go round to playing with the emulator. I successfully transmitted programs from the real device to the emulator. But how can I save them to a file from the emulator?
Hi Harald,

if your program is in the RAM then it's automatically stored in the file 'wp34s.dat' when you close the emulator.
Then you can convert this binary file to a textfile with Neill's assembler with the following command:

wp34s_asm wp34s.dat -dis >textfile

I've just tried an other method by printing the program to Christoph's printer emulation HP82240B.exe and then copy&paste the program listing to any textfile.
In principle this method is also working, but unfortunately the text-output of the printer doesn't display all WP34s commands correctly (e.g. superscripts) - these commands are only displayed correctly on the printer's graphic output, but this can't be copied to a textfile.

Edit: I just remembered an other method that I've use long time ago.
You can also get a listing of all programs in the RAM with Pauli's commandline version 'wp34s.exe' - just enter the following command:

wp34s ram >textfile

The only problem of this method is that the resulting listing also contains the opcodes in the 2nd column.

Franz

Edited: 25 Apr 2013, 2:14 p.m.

            
Re: How to save WP34s programs to a file?
Message #3 Posted by Harald on 26 Apr 2013, 5:14 a.m.,
in response to message #2 by fhub

Thanks a lot Franz!

Converting the wp34s.dat file seems like the best solution. But when I tried copying from the printer emulator that didn't work. Am I missing something?

Cheers, Harald

                  
Re: How to save WP34s programs to a file?
Message #4 Posted by fhub on 26 Apr 2013, 5:25 a.m.,
in response to message #3 by Harald

Quote:
But when I tried copying from the printer emulator that didn't work. Am I missing something?
Well, the method with the printer isn't really a good solution. Doing it with the printer's menu option ('File>Save Data') saves it as a kind of binary file, so you can't use it for further editing.

Printing the program with 'prPROG' and then using the printer's option 'File>Copy' works (puts the progam listing into the clipboard), but as I already mentioned this doesn't work with special characters, so in fact it's not of much use.

Franz

                        
Re: How to save WP34s programs to a file?
Message #5 Posted by Harald on 26 Apr 2013, 7:26 a.m.,
in response to message #4 by fhub

Because of the issue with the special characters I am not too bothered anyway, but my version of the printer emulator doesn't appear to have any menus. All I can find is a "clear" and a "quit" button.

                              
Re: How to save WP34s programs to a file?
Message #6 Posted by fhub on 26 Apr 2013, 7:46 a.m.,
in response to message #5 by Harald

Quote:
Because of the issue with the special characters I am not too bothered anyway, but my version of the printer emulator doesn't appear to have any menus. All I can find is a "clear" and a "quit" button.
Maybe the printer included in the WP34s is not the latest version!?
I'm using the printer emulator (version 1.04) from Christoph's site:
http://hp.giesselink.com/hp82240b.htm

Franz

                                    
Re: How to save WP34s programs to a file?
Message #7 Posted by Harald on 26 Apr 2013, 8:08 a.m.,
in response to message #6 by fhub

Yes, that is definitely completely different. Thanks for the link!

                                    
Re: How to save WP34s programs to a file?
Message #8 Posted by Walter B on 26 Apr 2013, 9:52 a.m.,
in response to message #6 by fhub

... as mentioned on p.188 of the printed manual.

d:-)

                                          
Re: How to save WP34s programs to a file?
Message #9 Posted by Harald on 26 Apr 2013, 11:28 a.m.,
in response to message #8 by Walter B

I know I should have ordered more of them. I was doing this at work and didn't have the book to hand ;)

                                                
Re: How to save WP34s programs to a file?
Message #10 Posted by Walter B on 26 Apr 2013, 1:44 p.m.,
in response to message #9 by Harald

This shortcoming can be corrected most easily.

d;-)


[ Return to Index | Top of Index ]

Go back to the main exhibit hall