Very newbie question...
Lorenzo <[email protected]>
| Newsgroups | org.kernel.vger.linux-assembly |
|---|---|
| Message-ID | <[email protected]> |
Hi,
i have some problems with my first linux/nasm asm program.
This is a simple "hello world" program but i can't see the "hello world"
on my screen and i don't find my error.
I work on 64bit amd system.
Someone can illuminate me? :)
Thx
-----------------------------------
section .text
global _start
msg db 'hello, world!',0xa
len equ $ - msg
_start:
push ebp
mov ebp,esp
push len
push msg
push 1
mov ebx,esp
mov eax,4
int 0x80
add esp,12
mov ebx,0
mov eax,1
int 0x80