HP Forums
How to save WP34s programs to a file? - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: How to save WP34s programs to a file? (/thread-242745.html)



How to save WP34s programs to a file? - Harald - 04-25-2013

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? - fhub - 04-25-2013

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? - Harald - 04-26-2013

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? - fhub - 04-26-2013

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? - Harald - 04-26-2013

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? - fhub - 04-26-2013

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? - Harald - 04-26-2013

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


Re: How to save WP34s programs to a file? - Walter B - 04-26-2013

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

d:-)


Re: How to save WP34s programs to a file? - Harald - 04-26-2013

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? - Walter B - 04-26-2013

This shortcoming can be corrected most easily.

d;-)