From owner-freebsd-questions Sun Mar 19 9:24:35 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.ptd.net (mail2.ha-net.ptd.net [207.44.96.66]) by hub.freebsd.org (Postfix) with SMTP id 969EC37B5C0 for ; Sun, 19 Mar 2000 09:24:32 -0800 (PST) (envelope-from tms2@mail.ptd.net) Received: (qmail 3986 invoked from network); 19 Mar 2000 17:24:42 -0000 Received: from du211016.cli.ptd.net (HELO mail.ptd.net) (204.186.211.16) by mail.ptd.net with SMTP; 19 Mar 2000 17:24:42 -0000 Message-ID: <38D50D28.5E881A12@mail.ptd.net> Date: Sun, 19 Mar 2000 12:23:52 -0500 From: "Thomas M. Sommers" X-Mailer: Mozilla 4.51 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: Re: NASM References: <38D4CDEA.D8218E53@bluewin.ch> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG matteotti wrote: > > Hello, > I am doing the first steps with NASM. > > Who can tell me, what is wrong with the following code: > > ; hello.asm > [snip] > 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. > FreeBSD and Linux do not make syscalls the same way. Take a look at http://home.ptd.net/~tms2/hello.html to see how its done in FreeBSD. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message