HP Forums

Full Version: How to save WP34s programs to a file?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

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?

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.

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

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

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.

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

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

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

d:-)

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

This shortcoming can be corrected most easily.

d;-)