Skip to content

pineberryfox/bootsectors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BOOTSECTORS

This repository contains programs that can boot an IBM-compatible PC. Such programs are 512 bytes or less of 8086 machine code, whose last two bytes are a magic number denoting bootability. They make up the master boot record (MBR) of a legacy-style disk.

The included Makefile (written for bmake) will by default create two files for each program. First there is the 512-byte MBR image itself, whose suffix is .bin. Then there is a 160K floppy image, suffixed by .img, suitable for booting emulated PCs through 86Box or similar.

Compilation

The following is written for a UNIX-like environment. Ensure that nasm and bmake are installed, then invoke the latter:

bmake

Caveats

Writing the resulting MBR file or disk image to a disk will render inaccessible any data that the disk previously contained. (The MBR contains both the boot program and the partition table.)

Useful Links

About

Games that will boot a PC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors