linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Very newbie question...
@ 2005-11-11 23:05 Lorenzo
  2005-11-11 23:16 ` John Rodriguez
  2005-11-11 23:29 ` Frederic Marmond
  0 siblings, 2 replies; 7+ messages in thread
From: Lorenzo @ 2005-11-11 23:05 UTC (permalink / raw)
  To: linux-assembly

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-11-12  7:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-11 23:05 Very newbie question Lorenzo
2005-11-11 23:16 ` John Rodriguez
2005-11-12  1:04   ` Brian Raiter
2005-11-12  7:35     ` Lorenzo
2005-11-12  7:34   ` Lorenzo
2005-11-11 23:29 ` Frederic Marmond
2005-11-12  7:35   ` Lorenzo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).