The Museum of HP Calculators

HP Forum Archive 13

[ Return to Index | Top of Index ]

Convert from .bin to .rom
Message #1 Posted by Poul Kaarup on 4 Nov 2003, 1:28 p.m.

How can I convert an hp41 ROM image from .bin format into .rom format? (I can do .rom to .bin)

Thanks in advance /Poul

      
Re: Convert from .bin to .rom
Message #2 Posted by hugh on 5 Nov 2003, 6:18 a.m.,
in response to message #1 by Poul Kaarup

not sure what the .rom format is. the v41 emulator comes with a conversion utiility thats handles formats; lif, p41, raw, dat, bin and txt.

            
Re: Convert from .bin to .rom
Message #3 Posted by Poul on 5 Nov 2003, 2:50 p.m.,
in response to message #2 by hugh

The ROM images that come with the V41 are in an uncompressed format like CCD1B.ROM (the CCD module). The ROM images used with Emu41 are in a compressed format like GAMES.BIN (the Games Pac). I know how to convert from .ROM to .BIN but not the other way around. The utility you mention is for converting USER code programs, and can't (as far as I know) convert a whole image.

/Poul Kaarup

                  
Re: Convert from .bin to .rom
Message #4 Posted by J-F Garnier on 5 Nov 2003, 3:49 p.m.,
in response to message #3 by Poul

Bin format packs 4 words into 5 bytes (makes 40 bits):

byte
0       word0[7-0]
1       word0[9-8] + word1[5-0]<<2
2       word1[9-6] + word2[3-0]<<4
3       word3[9-4] + word4[1-0]<<6
4       word4[9-2]
and so on...

In the future releases of Emu41, I will support .rom format as well.

J-F

                        
Re: Convert from .bin to .rom
Message #5 Posted by Poul on 6 Nov 2003, 3:06 p.m.,
in response to message #4 by J-F Garnier

Thanks for the information. Would it be possible for your CLBIN41 program to do conversion both ways in the future?

/Poul


[ Return to Index | Top of Index ]

Go back to the main exhibit hall