Extract Boot Code
BOOTCOM.ZIP or BOOTCOM.EXE
This program extracts the raw boot code from a COM file.
BOOTCOM (01.02, 02/01/98) - Extract boot sector from .COM, write to .BIN
usage: BOOTCOM [(INPUTFILE)] [(OUTPUTFILE)]
BOOTCOM (01.02, 02/01/98)
BOOTCOM extracts the boot code from a COM file.
(INPUTFILE) defaults to BOOT.COM
The COM file must be 7D00h (32000) bytes long.
The COM file must be zeros from 0000h to 7B00h.
The COM file must only contain code in 7B00h to 7DFFh.
Remember that COM files start at 0100h!
(OUTPUTFILE) defaults to (INPUTFILE).BIN
The BIN file will be 200h (512) bytes long.
C:>bootcom newboot.com newboot.bin
Open (INPUT) file.
Check (INPUT) filesize, must be 7D00h (32,000) bytes.
Check (INPUT), bytes 0000..7AFFh must be 00.
Read (INPUT), bytes 7B00h to 7C00h, save in buffer.
Close (INPUT) file.
Open (OUTPUT) file.
Write buffered bytes into (OUTPUT).
Close (OUTPUT) file.
Once the boot code was assembled and linked into a COM file, I had
to get it out into a separate 512 byte file so that BOOTSECT could use it.