From owner-freebsd-questions Sun Mar 19 5:32:53 2000 Delivered-To: freebsd-questions@freebsd.org Received: from bw150zhb.bluewin.ch (bw150zhb.bluewin.ch [195.186.1.68]) by hub.freebsd.org (Postfix) with ESMTP id 1F27537B74B for ; Sun, 19 Mar 2000 05:32:49 -0800 (PST) (envelope-from carloma@bluewin.ch) Received: from bluewin.ch (bei178pub127.bluewin.ch [195.186.178.127]) by bw150zhb.bluewin.ch (8.9.3/8.9.3) with ESMTP id OAA11519 for ; Sun, 19 Mar 2000 14:32:43 +0100 (MET) Message-ID: <38D4CDEA.D8218E53@bluewin.ch> Date: Sun, 19 Mar 2000 13:54:02 +0100 From: matteotti X-Mailer: Mozilla 4.61 [en] (X11; I; FreeBSD 3.2-19990726-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: NASM Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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