Improve debug rom to catch common exception conditions
This commit is contained in:
parent
e70386bcfb
commit
50e58765b1
3 changed files with 152 additions and 201 deletions
10
Makefile
10
Makefile
|
@ -18,7 +18,7 @@ QEMU_ARGS += --enable-kvm
|
|||
endif
|
||||
|
||||
ifdef DEBUG
|
||||
ROMS += debug.rom
|
||||
ROMS += rom/debug.rom
|
||||
NASM_ARGS += -l $(basename $@).lst
|
||||
endif
|
||||
|
||||
|
@ -33,15 +33,15 @@ default: fdimage.img
|
|||
rdos.bin: kernel/*.asm lib/*.asm
|
||||
$(NASM) $(NASM_ARGS) -o $@ -I kernel kernel/main.asm
|
||||
|
||||
debug.rom: debug/*.asm lib/*.asm
|
||||
$(NASM) $(NASM_ARGS) -o $@ -I debug debug/main.asm && utils/fix-rom.sh $@
|
||||
|
||||
boot/%.bs: boot/%.asm
|
||||
$(NASM) $(NASM_ARGS) -DFLOPPY=$(FLOPPY) -o $@ $<
|
||||
|
||||
programs/%.com: programs/%.asm
|
||||
$(NASM) $(NASM_ARGS) -o $@ $<
|
||||
|
||||
rom/%.rom: rom/%.asm
|
||||
$(NASM) $(NASM_ARGS) -o $@ $< && utils/fix-rom.sh $@
|
||||
|
||||
fdimage.img: boot/fat.bs $(DISTFILES)
|
||||
mformat -C -i $@ -f $(FLOPPY) -B boot/fat.bs ::
|
||||
mcopy -i $@ $(DISTFILES) ::
|
||||
|
@ -51,7 +51,7 @@ hdimage.img: boot/mbr.bs fdimage.img
|
|||
|
||||
clean:
|
||||
find -name '*.lst' -delete
|
||||
rm -f $$(cat .gitignore) programs/*.com boot/*.bs utils/emul
|
||||
rm -f $$(cat .gitignore) programs/*.com boot/*.bs rom/*.rom utils/emul
|
||||
|
||||
qemu-floppy: fdimage.img $(ROMS)
|
||||
$(QEMU) $(QEMU_ARGS) -boot c -fda fdimage.img
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue