txt2raw.pl: an HP-42S program listing to "raw" conversion script



#6

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


#7

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


#8

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

#9

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)


#10

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


Possibly Related Threads…
Thread Author Replies Views Last Post
  HP 35s polar/rectangular conversion CD Dodds 6 2,706 11-28-2013, 02:39 PM
Last Post: Dieter
  HP Prime: run a program in another program Davi Ribeiro de Oliveira 6 2,738 11-11-2013, 08:28 PM
Last Post: Davi Ribeiro de Oliveira
  [WP 34s] Pressure Conversion Factors Timothy Roche 8 3,235 11-04-2013, 07:17 PM
Last Post: Dave Shaffer (Arizona)
  More programs for polar-rectangular conversion on HP Prime Michael de Estrada 4 2,027 11-04-2013, 12:43 AM
Last Post: Michael de Estrada
  Do You Think a Listing Error Was Made? Jim Johnson 13 3,964 09-04-2013, 09:23 AM
Last Post: Eddie W. Shore
  HP Prime: Conversion factors Paul Townsend (UK) 19 5,127 08-27-2013, 09:19 AM
Last Post: Nigel J Dowrick
  WP_34S: Patch for wp34s_lib.pl Marcel Samek 0 846 07-05-2013, 12:49 PM
Last Post: Marcel Samek
  Maximum number of program steps in HP-42S, 33S, and 35S? Walter B 3 1,706 12-18-2012, 03:44 PM
Last Post: Eric Smith
  42s program question David Persinger (US) 5 1,819 08-09-2012, 06:34 AM
Last Post: David Persinger (US)
  WP34S conversion, yet another but with a difference Geoff Quickfall 23 6,112 06-22-2012, 02:54 PM
Last Post: Marcus von Cube, Germany

Forum Jump: