RE: Very newbie question...
Brian Raiter <[email protected]>
| Newsgroups | org.kernel.vger.linux-assembly |
|---|---|
| Message-ID | <[email protected]> |
> 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. As noted, you are confusing the function call method with the system call method, and doing a little of both. You need to decide on one or the other. If you want to make direct kernel system calls, then follow the code that was posted earlier. Alternately, if you wanted to use the POSIX functions, your code would look something like this: EXTERN write, _exit ; ... push len push hello push 1 call write add esp, 12 push 0 call _exit b