The Museum of HP Calculators

HP Forum Archive 14

[ Return to Index | Top of Index ]

txt2raw.pl: an HP-42S program listing to "raw" conversion script
Message #1 Posted by Thomas Okken on 4 Mar 2005, 1:27 p.m.

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
Message #2 Posted by Namir on 5 Mar 2005, 8:10 a.m.,
in response to message #1 by Thomas Okken

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
Message #3 Posted by Thomas Okken on 5 Mar 2005, 12:04 p.m.,
in response to message #2 by Namir

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
Message #4 Posted by Erik Ehrling (Sweden) on 6 Mar 2005, 4:08 p.m.,
in response to message #2 by Namir

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
Message #5 Posted by Namir on 6 Mar 2005, 10:17 p.m.,
in response to message #4 by Erik Ehrling (Sweden)

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


[ Return to Index | Top of Index ]

Go back to the main exhibit hall