unknown wrote:
IMO transferring the original ROM from patient to donor is much safer. Even a low-skill technician could do that simply with an eight-legs chip.
If the original board is damaged beyond feasible repair, then a physical transfer would be your only option. Otherwise, if the ROM is readable in-circuit with your software tools, then prudence (standard practice ?) would dictate that you make a backup of its contents. Consequently, if you can backup (ie read) the ROM in-circuit, it stands to reason that you should also be able to write it in-circuit with the same tool. This begs the question, why would anyone, even a highly skilled technician, risk applying a soldering iron to the board? The idea that a physical transfer is somehow safer that a software approach strikes me as absurd, unless the software tool is unreliable. Is that the explanation, ie that your software tools are "unsafe"?
Otherwise, do you have a problem with the procedure for padding the 256KB ROM? Or do you have a concern in regard to the ROM's checksum?
If you have difficulty padding your ROM image, and if you are a Windows user, then cut-and-paste the following code into a BAT file. You will need to edit the last line with your applicable file names.
Code:
echo f 100 80FF FF > 32K_FF.dbg
echo rcx >> 32K_FF.dbg
echo 8000 >> 32K_FF.dbg
echo n 32K.bin >> 32K_FF.dbg
echo w 100 >> 32K_FF.dbg
echo q >> 32K_FF.dbg
debug < 32K_FF.dbg
del 32K_FF.dbg
copy /b 32k.bin + 32k.bin 64k.bin
copy /b 64k.bin + 64k.bin 128k.bin
copy /b 128k.bin + 128k.bin FF_256K.bin
for %%i in (32 64 128) do del %%ik.bin
copy /b rom_256K.bin + FF_256K.bin rom_512K.bin
Alternatively, if you have a concern in regard to the ROM's checksum(s), then surely your expensive software tool will be able to validate the integrity of the code?