all: pyrit.img pyrit.img: pyrit.asm nasm -f bin -o $@ $< pyrit.data: pyrit.img $(HOME)/d/nbdkit/plugins/data/disk2data.pl $< > $@ clean: rm -f *~ pyrit.img run: pyrit.img qemu-system-i386 -fda $< runbochs: pyrit.img bochs -q 'boot:a' 'floppya: 1_44=$<, status=inserted' dis: pyrit.img objdump -D -b binary -m i8086 $< debug: pyrit.img qemu-system-i386 -S -s -fda $< & gdb -ex "target remote tcp::1234" \ -ex "set architecture i8086" \ -ex "break *0x7c00" \ -ex "cont" .PHONY: run runbochs