https://github.com/akkartik/mu/blob/master/baremetal/ex1.hex
 1 # The simplest possible program: just an infinite loop.
 2 # All is well if your computer clears screen and hangs without restarting.
 3 # On an emulator the window may get bigger to accomodate the higher-resolution
 4 # graphics mode.
 5 #
 6 # To convert to a disk image, first prepare a realistically sized disk image:
 7 #   dd if=/dev/zero of=disk.img count=20160  # 512-byte sectors, so 10MB
 8 # Load the program on the disk image:
 9 #   cat baremetal/boot.hex baremetal/ex1.hex  |./bootstrap run apps/hex  > a.bin
10 #   dd if=a.bin of=disk.img conv=notrunc
11 # To run:
12 #   qemu-system-i386 disk.img
13 # Or:
14 #   bochs -f apps/boot.bochsrc  # boot.bochsrc loads disk.img
15 
16 # main:  (address 0x8800)
17 e9 fb ff ff ff  # jump to address 0x8800
18 
19 # vim:ft=subx