I am sure this has been asked many times before, but I can't work it out. How to turn a COM file to ROM file.
Currently using the Fusion-C compil.bat file I am producing COM files. I am having fun coding games for the first time in years and I am tempted to enter MSX-DEV20.
So this is the requirement from the competition rules:
"any size will be accepted as long as it does not require a ROM mapper. In other words, the acceptable ROM file sizes are 8 KB, 16 KB, 24 KB, 32 KB, 40 KB and 48 KB"
Trawling the threads I got this advice ".com files are just programs loaded at 0x100h, so you need to include the whole program in your ROM, and write a small program to relocate it to 100 h in RAM at runtime, do a JP 0100h and that's it."
I note that the .ihx file produced out of sdcc is at 0106h, but I couldn't work out a way to follow that advice. Any tools do it?
In the compil.bat script hex2bin makes a .com file out of the .ihx file
Is there some other tool or method that can turn it straight into a ROM file?
The other method "Put your com file on formatted MSX DSK image, add MSXDOS files and autoexec.bat that will run your com, and convert this DSK to ROM using DSK2ROM utility. " I was able to follow but the ROM image is much larger than any of those allowed ROM sizes.
I also tried bin2rom, but that told me my bin file was in the wrong format. It seems to be for BASIC.
Any advice appreciated.