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

BOOTFAKE

Create COM with Boot Code

Download

BOOTFAKE.ZIP or BOOTFAKE.EXE

Description

This program creates a COM file from raw boot code.

Help

C:>bootfake -?

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.
  (Future enhancement)

(OUTPUTFILE) defaults to (INPUTFILE).COM
  The BIN file will be ADDR - 100h + sizeof(INPUTFILE) bytes long

Sample Execution

C:>bootfake cboot.bin 7c00 cboot.com

Functionality

Parse parameters. Open input and output files. Fill (OUTPUT) file with 00 bytes upto the load address. Copy (INPUT) file into (OUTPUT) file. Close files.

Notes

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