bootsectordisk/Makefile

13 lines
239 B
Makefile

boot.bin: boot.o
ld -o $@ --oformat binary -Ttext 0x7c00 $<
boot.o: boot.s
as -o $@ $<
.PHONY: boot disasm
boot: boot.bin
qemu-system-i386 -drive file=$^,index=0,if=floppy,format=raw
disasm: boot.bin
objdump -D -b binary -mi8086 $^