step 1: boot from floppy and clear screen
[bootboot] / Makefile
1 bin = bootboot
2 # build flat binary (no headers)
3 ASFLAGS = -f bin
4 $(bin): bb.asm
5         nasm $(ASFLAGS) -o $@ $<
6
7 floppy.img: $(bin)
8         dd if=/dev/zero of=$@ bs=1024 count=1440
9         dd if=$< of=$@ bs=512 conv=notrunc
10
11 .PHONY: clean
12 clean:
13         rm -f $(bin)
14
15 # floppy disk A (fda)
16 .PHONY: run
17 run: floppy.img
18         qemu-system-i386 -fda $<