HP Forums
txt2raw.pl: an HP-42S program listing to "raw" conversion script - 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: txt2raw.pl: an HP-42S program listing to "raw" conversion script (/thread-70081.html)



txt2raw.pl: an HP-42S program listing to "raw" conversion script - Thomas Okken - 03-04-2005

Today, I posted txt2raw.pl on the Free42 home page. This is a Perl script that converts HP-42S program listings, like those generated by the PRP and LIST commands, back into Emu42/Free42 compatible "raw" program files.

txt2raw.pl was written by Vini Matangrano, and I'm reproducing it on my web page as a service to all HP-42S emulation fans out there. The script, plus some documentation, and the author's contact info, are all at http://home.planet.nl/~demun000/thomas_projects/free42/txt2raw/txt2raw.html.

- Thomas


Re: txt2raw.pl: an HP-42S program listing to "raw" conversion script - Namir - 03-05-2005

Thanks Thomas! I made a simple test (after installing Perl) and it works. ;-)

I have a question. Can I assume that your Perl script will work with the (basic) HP41C source code?

Namir


Re: txt2raw.pl: an HP-42S program listing to "raw" conversion script - Thomas Okken - 03-05-2005

HP-41 source code is a bit different from HP-42S source code:
"ST+" vs. "STO+", "FIX 0" vs. "FIX 00", "INT" vs. "IP", "FACT" vs. "N!", etc.


It's probably not all that difficult to modify the script to accept HP-41 source code, but it won't handle such code properly as it is now.

Note that I didn't write the script myself, I just distribute it; you should contact the author about enhancement requests. (My Perl is a bit rusty, anyway. ;-) )

- Thomas


Re: txt2raw.pl: an HP-42S program listing to "raw" conversion script - Erik Ehrling (Sweden) - 03-06-2005

Quote:
I have a question. Can I assume that your Perl script will work with the (basic) HP41C source code?
Hi Namir! For HP-41 source code there is a user code utility by Leo Duran that converts BIN->SRC and vice versa...

Regards,

Erik Ehrling (Sweden)


Re: txt2raw.pl: an HP-42S program listing to "raw" conversion script - Namir - 03-06-2005

Thanks Eric. I have Leo's program installed on my PC. I was just curious if txt2raw.pl can do the same task.

Cheers,

Namir