step 2: load 2nd sector and jump into it
[bootboot] / Makefile
index e52a97e..ea23f67 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,10 @@ floppy.img: $(bin)
        dd if=/dev/zero of=$@ bs=1024 count=1440
        dd if=$< of=$@ bs=512 conv=notrunc
 
+.PHONY: disasm
+disasm: $(bin)
+       ndisasm -b16 -o 0x7c00 $< > dis
+
 .PHONY: clean
 clean:
        rm -f $(bin)
@@ -16,3 +20,7 @@ clean:
 .PHONY: run
 run: floppy.img
        qemu-system-i386 -fda $<
+
+.PHONY: debug
+debug: floppy.img
+       qemu-system-i386 -S -s -fda $<