Create COM with Boot Code
BOOTFAKE.ZIP or BOOTFAKE.EXE
This program creates a COM file from raw boot code.
BOOTFAKE (01.02, 02/01/98) - Create a fake .COM file from a .BIN file
usage: BOOTFAKE (INPUTFILE) (ADDR) [(OUTPUTFILE)]
BOOTFAKE (01.02, 02/01/98)
BOOTFAKE stuffs the boot code into a COM file.
(INPUTFILE) is required.
The extension defaults to BIN.
The file can be any length, but should be 512 bytes for boot code.
(ADDR) is required.
This is the address to locate the code.
All values are ignored, and $7C00 is used.
(OUTPUTFILE) defaults to (INPUTFILE).COM
The BIN file will be ADDR - 100h + sizeof(INPUTFILE) bytes long
C:>bootfake cboot.bin 7c00 cboot.com
Open input and output files.
Fill (OUTPUT) file with 00 bytes upto the load address.
Copy (INPUT) file into (OUTPUT) file.
I wrote this program so that I could use DEBUG to disassemble boot code.
Yes, it could have been done directly with DEBUG (loading the sector,
then disassembling it), but this was a generic solution.