[Coco] .BIN to .ROM
Tormod Volden
lists.tormod at gmail.com
Tue Dec 24 05:50:15 EST 2013
>>> On Dec 23, 2013 7:30 PM, "Chad H" wrote:
>>>
>>>> Can someone please advise a simple and reliable method to convert a .BIN
>>>> file to a .ROM file? I can extract the .BIN on my PC if need be. I
>>>> seem
>>>> to recall a ROM extraction function in the RETRIEVE.EXE included with
>>>> the CoCo 2 emulator I have that was used for extracting the CoCo ROM
>>>> to a DISK, then you use the RETRIEVE to grab the ROM data off the
>>>> floppy into a .ROM file on the PC. I doubt this would work for many
>>>> .BIN files though, especially since many don't start at &HC000.
>>>>
Chad,
If your original motivation is to store programs in a (multi) ROM
cartridge and run them without disk or tape loading, you can consider
a "memory snapshot" solution. (BTW, not unlike Luis' way of running
Dragon programs on a CoCo.) You can take a memory snapshot after the
.BIN file has loaded, before it starts execution. Determine which
parts of RAM have been changed, and store them (compressed) in a
cartridge image which also contains the unpacking routines. So when
the cartridge runs, the original .BIN code gets unpacked to its
original location and the code runs at the location is was made to run
at.
Cheers,
Tormod
More information about the Coco
mailing list