Rework BDOS to make use of BIOS entrypoints

This commit is contained in:
Nero 2019-10-29 11:08:11 +00:00
parent af61db5e40
commit a49e3b2610
12 changed files with 169 additions and 451 deletions

View file

@ -1,10 +1,10 @@
FLOPPY = 360
BDOS = 0xF000
BDOSIMG = bdos.bin
BDOSIMG = bdos/8086.bin
BIOS = 0xF800
BIOSIMG = bios8086.bin
BIOSIMG = bios/8086.bin
PROGRAMS = $(patsubst %.asm,%.com,$(wildcard com/*.asm))
DISTFILES = $(PROGRAMS)
@ -37,10 +37,6 @@ endif
default: fdimage.img
# BDOS image
bdos.bin: bdos/*.asm lib/*.asm
$(NASM) $(NASM_ARGS) -o $@ -I bdos bdos/main.asm
# Boot sectors
boot/%.bs: boot/%.asm
$(NASM) $(NASM_ARGS) -DFLOPPY=$(FLOPPY) -o $@ $<
@ -53,7 +49,10 @@ rom/%.rom: rom/%.asm
com/%.com: com/%.asm
$(NASM) $(NASM_ARGS) -o $@ $<
bios%.bin: bios/%.asm
bdos/%.bin: bdos/%.asm lib/*.asm
$(NASM) $(NASM_ARGS) -o $@ -I bdos $<
bios/%.bin: bios/%.asm
$(NASM) $(NASM_ARGS) -o $@ $<
fdimage.img: boot/fat.bs $(BDOSIMG) $(BIOSIMG) $(DISTFILES)