HP-41 ROM image to HP-42S "raw" converter



#6

I wrote a little program that reads HP-41 ROM images, extracts the user code from them, and converts it to *.raw files you can import into Free42 or Emu42 (or HP-42X, I expect, or even into any HP-41 emulator).


It converts XROMs that point to user code within the same ROM to corresponding XEQ commands; it converts strings from HP-41 to 42S encoding; it emits warnings about XROMs that point to machine code functions, and about XROMs that are not local to the ROM in question and do not match HP-42S instructions either; and finally, it warns when it finds any synthetic code (most of which won't work on the 42S, at least not the really neat stuff).


The ROM image must be in *.ROM format, meaning: each 10-bit word is encoded by a byte which has bits 9-8 in its bits 1-0, followed by a byte containing bits 7-0. A normal 4k-word ROM thus comes in an 8kbyte file. If you have only *.MOD format images, Warren Furlow has a program called MODFile on his site (TOS) that extracts the *.ROM files from a *.MOD file.


It's called rom2raw and you can download it from my web site. The download is a zip file that includes the source code and a Windows console executable.
Enjoy!

- Thomas


Edited: 8 Feb 2006, 5:04 p.m.


#7

I posted an updated version, which has an additional command-line option to generate annotated listings of the extracted user code. With those listings, you can easily locate the instructions that an HP-42S would have problems with (unimplemented XROMs, synthetic functions).


#8

Thanks, Thomas!

Regards
Howard

#9

Good job man! I was able to import the .rw files baed on the Stat and Games ROM. Cool work!!!

Namir

#10

I posted yet another update -- the previous version didn't handle XROM xx,00 properly: it assumed that that entry was always just a dummy used for the ROM name, while in fact there are ROMs that have user code there. This version treats XROM xx,00 like all the others, and it is smarter about recognizing "dummy" entries (it looks for machine code entry points that point right at a Return instruction).


Possibly Related Threads...
Thread Author Replies Views Last Post
  HP-41(CL): The easiest way to transfer FOCAL programs from a Linux PC to the HP-41 Geir Isene 13 2,119 12-05-2013, 02:40 AM
Last Post: Hans Brueggemann
  How to add image to HP Forum Posting Harold A Climer 2 605 11-20-2013, 02:28 PM
Last Post: Han
  Joys of eBay: HP-32S, HP-32SII, HP-42S, HP-16C, ... Sasu Mattila 7 986 09-23-2013, 04:39 PM
Last Post: Julián Miranda (Spain)
  Mastermind for HP-42s Tom Grydeland 12 1,436 09-02-2013, 03:43 PM
Last Post: Kimberly Thompson
  C71 Rom for HP 71b ? Michael Fehlhammer 1 409 05-07-2013, 10:24 PM
Last Post: Allen
  HP85 Programmable ROM cardtridge 82929A-service ROM not working- inaki 2 684 04-25-2013, 08:08 AM
Last Post: inaki
  HP71B to HP 41 Translator ROM Manual Michael Lopez 5 845 04-25-2013, 03:51 AM
Last Post: Mike (Stgt)
  [41CL] Repairing an image in Flash Monte Dalrymple 0 360 01-24-2013, 07:01 PM
Last Post: Monte Dalrymple
  HP-41 ROM Polling Point at FF5 Dan Grelinger 2 514 01-11-2013, 06:00 PM
Last Post: Monte Dalrymple
  shelf life time of a ROM, EEPROM, EPROM vs Mask Rom Guido (Canada) 6 999 01-11-2013, 04:09 PM
Last Post: Thomas Falk

Forum Jump: