Add emulator to run 8086 native assembler on linux

This commit is contained in:
Nero 2019-09-28 19:09:51 +00:00
parent 59f0720934
commit fcb4db25ad
2 changed files with 232 additions and 1 deletions

View file

@ -11,6 +11,8 @@ QEMU_ARGS = $(addprefix --option-rom ,$(ROMS))
NASM = nasm
NASM_ARGS = -s -I lib
EMUL = utils/emul
ifdef KVM
QEMU_ARGS += --enable-kvm
endif
@ -52,7 +54,7 @@ hdimage.img: boot/mbr.bs fdimage.img
clean:
find -name '*.lst' -delete
rm -f $$(cat .gitignore) programs/*.com boot/*.bs
rm -f $$(cat .gitignore) programs/*.com boot/*.bs utils/emul
qemu-floppy: fdimage.img $(ROMS)
$(QEMU) $(QEMU_ARGS) -boot c -fda fdimage.img