This is a minimal 16 bit, real mode bootloader written in MASM! Please note that if you are attempting to write a bootloader in MASM, I would not recommend doing so, use NASM instead, for it is infinitely easier.
To compile you must set your MASM compiler onto your PATH, I recommend to use MASM615 or equivalent.
ML.EXE /nologo /AT /c bootload.asm
LINK.EXE /nologo /TINY /NOD bootload.obj, bootload.bin, NUL, NUL, NUL