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:
parent
5b3974c93f
commit
e7401dcc67
2 changed files with 3 additions and 1 deletions
|
@ -45,7 +45,7 @@ kernel: $(OBJS)
|
|||
$(AS) $< -o $@
|
||||
|
||||
%.asm.cpp.o: %.asm.cpp
|
||||
nasm -felf -o $@ $<
|
||||
nasm -felf32 -o $@ $<
|
||||
|
||||
%.asm.cpp: %.asm
|
||||
cpp -P $< $@
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
[BITS 32]
|
||||
|
||||
main:
|
||||
mov eax, 512
|
||||
int 0x80
|
||||
|
|
Loading…
Add table
Reference in a new issue