diff --git a/arch/Makefile b/arch/Makefile index a4af85e..25ac124 100644 --- a/arch/Makefile +++ b/arch/Makefile @@ -45,7 +45,7 @@ kernel: $(OBJS) $(AS) $< -o $@ %.asm.cpp.o: %.asm.cpp - nasm -felf -o $@ $< + nasm -felf32 -o $@ $< %.asm.cpp: %.asm cpp -P $< $@ diff --git a/modules/dummy.asm b/modules/dummy.asm index acd421e..3e0017c 100644 --- a/modules/dummy.asm +++ b/modules/dummy.asm @@ -1,3 +1,5 @@ +[BITS 32] + main: mov eax, 512 int 0x80