ASFLAGS = $(asarch) -march=i386 $(dbg) -nostdinc -fno-builtin $(inc)
LDFLAGS = $(ldarch) -nostdlib -T pcboot.ld -print-gc-sections
+QEMU_FLAGS = -fda floppy.img -serial file:serial.log -soundhw sb16
ifneq ($(shell uname -m), i386)
ccarch = -m32
.PHONY: run
run: $(bin)
- qemu-system-i386 -fda floppy.img -serial file:serial.log
+ qemu-system-i386 $(QEMU_FLAGS)
.PHONY: debug
debug: $(bin) $(elf).sym
- qemu-system-i386 -fda floppy.img -serial file:serial.log -s -S
+ qemu-system-i386 $(QEMU_FLAGS) -s -S
.PHONY: sym
sym: $(elf).sym