Ink Blot welcomes you to Lance's Web Site!

I've decided to resurrect my web site on a limited basis; mainly to discuss FAT32X, but also to test a new site build process. LC

(best viewed at 800x600 full screen!)


Home
Boot Sectors
FAT32X
Utility Programs
Site Map

BOOTCOM

Extract Boot Code

Download

BOOTCOM.ZIP or BOOTCOM.EXE

Description

This program extracts the raw boot code from a COM file.

Help

C:>bootcom -?

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.

Sample Execution

C:>bootcom newboot.com newboot.bin

Functionality

Parse parameters. 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.

Notes

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.
Lance Costanzo, [email protected]