Created
January 2, 2015 02:37
-
-
Save nak3/59e61a99824fd4d8afc5 to your computer and use it in GitHub Desktop.
build and qemu emulate from boot script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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