1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2025-04-14 17:33:13 -04:00

Explicit 32-bit mode for NASM

This commit is contained in:
Braiden Vasco 2017-11-05 17:32:14 +00:00
parent 5b3974c93f
commit e7401dcc67
2 changed files with 3 additions and 1 deletions

View file

@ -45,7 +45,7 @@ kernel: $(OBJS)
$(AS) $< -o $@
%.asm.cpp.o: %.asm.cpp
nasm -felf -o $@ $<
nasm -felf32 -o $@ $<
%.asm.cpp: %.asm
cpp -P $< $@

View file

@ -1,3 +1,5 @@
[BITS 32]
main:
mov eax, 512
int 0x80