Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
For testing with orangeos's example chapter1-a
# 2019-01-25 Ben Wei <ben@juluos.org>
IMAGE=a.img
BINFILE=boot.bin
all: $(IMAGE) $(BINFILE)
$(BINFILE): boot.asm
nasm boot.asm -f bin -o $(BINFILE)
dd if=$(BINFILE) of=./$(IMAGE) bs=512 count=1
$(IMAGE):
qemu-img create -f raw $(IMAGE) 1440k
mkfs.msdos -s 1 $(IMAGE)
run:
qemu-system-x86_64 -fda $(BINFILE)
runraw:
qemu-system-x86_64 -drive format=raw,file=$(BINFILE)
clean:
rm -f $(BINFILE) $(IMAGE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.