Add debug rule.
[pyrit.git] / Makefile
index 6063b86..c8fd2ee 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,4 +12,14 @@ run: pyrit.img
 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