Skip to content

Single Sector Hex Editor

Pre-release
Pre-release
Compare
Choose a tag to compare
@fsmv fsmv released this 20 Mar 04:30

This is enough to make anything you want if you start with a computer running this code, and it works on real hardware in BIOS mode too! However, there's no going back. If you type a mistake you just have to reboot and start over.

Really the very first commit is enough too but I like that this version fits the style I kept later on and that it formats the text a little nicer.

This is the also last commit where all of the code fit in a the 512 byte boot sector (actually there's even less space than that because of floppy header info etc that has to go in the boot sector).

Instructions

./boot boostrap.asm assembles the code and starts it in qemu
dd if=bin/bootstrap.bin of=/dev/sdb && sync writes it to a flash drive