Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Mar 2000 13:54:02 +0100
From:      matteotti <carloma@bluewin.ch>
To:        freebsd-questions@FreeBSD.ORG
Subject:   NASM
Message-ID:  <38D4CDEA.D8218E53@bluewin.ch>

next in thread | raw e-mail | index | archive | help
Hello,
I am doing the first steps with NASM.

Who can tell me, what is wrong with the following code:

; hello.asm

section .text
global _start

_start:
 mov eax,4
 mov ebx,1
 mov ecx,msg
 mov edx,11
 int 0x80
 mov ebx,0
 mov eax,1
 int 0x80

section .data
msg db 'Hallo Welt',0x0A

I compile it with : nasm -f elf hello.asm
I link it with : ld -o hello hello.o

I get an executable 'hello'. Running it gives no output whatsoever !
My OS is  FreeBSD3.2. NASM version 0.98

The same procedure as above works perfectly under Linux.

Thank you for your help.

Carlo.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38D4CDEA.D8218E53>