hx41rom -convert a SDATA file which contains a scrambled (packed) ROM image written by the HEPAX WRTROM command to an unscrambled (unpacked) HP-41 ROM file.
lifutils hx41rom [-r] INPUTFILE > Output file
lifutils hx41rom [-r] < Input file > Output file
hx41rom -?
hx41rom The HEPAX ROM can save HP-41 ROM images to a HP-IL mass storage. It creates a SDATA file which contains 4 consecutive HP-41 10 bit ROM word in 5 bytes of the file. A 4K ROM dump is thus stored in a 5120 byte file.
hx41rom unscrambles such an raw or LIF SDATA file, storing each HP-41 10 bit word in 2 bytes of the output file, and therefore a 4K image takes up 8192 bytes when unscrambled. The resulting output file, although larger, is easier to process with other programs.
The input is either read from standard input or the file specified by the command line parameter INPUTFILE.
|
-r |
Skip an existing LIF header of the input file. This is mandatory, if the input file is a LIF instead of a raw file. | ||
|
-? |
Print a message giving the program usage to standard error. |
If myrom.hx is an SDATA file with the LIF header removed that contains the packed ROM image then
cat myrom.hx | lifutils hx41rom > myrom.rom
will generate a file myrom.rom with the unpacked HP-41 rom image.
hx41rom was written by Joachim Siebold, bug400@gmx.de using code from Tony Duell, ard@p850ug1.demon.co.uk and Christophe Gottheimer, cgh750@gmail.com and has been placed under the GNU Public License version 2.0