Rename floppy bootsec into fatvbr, thats more accurate

This commit is contained in:
Nero 2019-09-15 17:33:01 +00:00
parent 567e09f7e9
commit e143159a7a
2 changed files with 5 additions and 5 deletions

View File

@ -28,17 +28,17 @@ kernel.com: kernel/*.asm lib/*.inc
debug.rom: debug/*.asm lib/*.inc debug.rom: debug/*.asm lib/*.inc
nasm -s -o $@ -I lib -I debug debug/main.asm && scripts/fix-rom.sh $@ nasm -s -o $@ -I lib -I debug debug/main.asm && scripts/fix-rom.sh $@
boot/%.bin: boot/%.asm lib/*.inc floppy.bs: boot/fatvbr.asm
nasm -s -o $@ -I boot -I lib $< nasm -s -o $@ $<
fdimage.img: boot/floppy.bin kernel.com fdimage.img: floppy.bs kernel.com
dd if=/dev/zero bs=512 count=$$(( $(FD_CYLINDERS) * $(FD_HEADS) * $(FD_SECTORS) )) of=$@ dd if=/dev/zero bs=512 count=$$(( $(FD_CYLINDERS) * $(FD_HEADS) * $(FD_SECTORS) )) of=$@
mformat -i $@ -t $(FD_CYLINDERS) -h $(FD_HEADS) -n $(FD_SECTORS) -B boot/floppy.bin :: mformat -i $@ -t $(FD_CYLINDERS) -h $(FD_HEADS) -n $(FD_SECTORS) -B floppy.bs ::
mcopy -i $@ kernel.com ::kernel.com mcopy -i $@ kernel.com ::kernel.com
mattrib -i $@ +s ::kernel.com mattrib -i $@ +s ::kernel.com
clean: clean:
rm -f *.com *.bin *.rom *.img *.log boot/*.bin rm -f *.com *.bin *.rom *.img *.log *.bs *.lst
qemu-rom: kernel.rom $(DEBUGROM) qemu-rom: kernel.rom $(DEBUGROM)
$(QEMU) $(QEMU_ARGS) -option-rom kernel.rom $(QEMU) $(QEMU_ARGS) -option-rom kernel.rom