Master Boot Record

Okhey first of all lets clear one thing, playing with the MBR is dangerous. I have written a small programm for DOS, which will save your MBR to the floppy drive and later on when you have truly messed up your MBR could easily be used to write back the saved MBR to the hard drive....
So here is the source code of this programm.

  mbr.h  
  readmbr.c  
  libmbr.asm  
  Makefile  

Example usage....

c:\>readmbr r
the option r, it reads the MBR from the hard drive 0x80 and copy it to the boot sector of the floppy in drive 0.

c:\>readmbr w
the option w, it reads the boot sector of the the floppy in the drive 0 writes it into the boot sector of the hard drive 0x80.

c:\>readmbr s
It will simply shows you the partition table.