Skip to content

Instantly share code, notes, and snippets.

@nak3
Created January 2, 2015 02:37
Show Gist options
  • Save nak3/59e61a99824fd4d8afc5 to your computer and use it in GitHub Desktop.
Save nak3/59e61a99824fd4d8afc5 to your computer and use it in GitHub Desktop.
build and qemu emulate from boot script
#!/bin/bash
dd if=/dev/zero of=floppy2.img bs=512 count=2880
as test2.S -o test2.o
ld -Ttext 0x7c00 --oformat=binary test2.o -o test2.bin
dd if=test2.bin of=floppy2.img
qemu-kvm -fda floppy2.img -boot a -no-fd-bootchk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment