After creating my Perl Assembler, I played around for a little while writing programs to the boot sector of floppy disks.
One of the programs I wrote played the start of "Mary Had a Little Lamb" over the PC speaker, then continued booting (had to move itself in memory to a new location, load the correct boot loader from the MBR of the first hard drive found to the standard memory location, and jump to it).
It was always fun to pop it into a coworker's computer, and watch their facial expression the next time they rebooted.
There's a link to the binary below. Put a floppy disk in drive a:, then run the .com file - it will write the necessary data to the boot sector of the floppy (note: this makes it difficult to read the rest of the data, so it is preferable to do this to a blank disk!)
This has only been tested on Windows. As far as I know, Linux cannot run .com files (except through Wine, and I haven't tested MaryFlop with Wine).
Unfortunately, I don't know what happened to the source code. If I ever find it, I will post it here as well.
| Attachment | Size |
|---|---|
| MaryFlop.com | 606 bytes |