From owner-freebsd-hackers Mon Nov 1 11:56:15 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from massive.geek.edu (massive.geek.edu [216.73.11.10]) by hub.freebsd.org (Postfix) with ESMTP id 976A91501A for ; Mon, 1 Nov 1999 11:55:40 -0800 (PST) (envelope-from jontow@massive.geek.edu) Received: (from jontow@localhost) by massive.geek.edu (8.9.3/8.9.2) id OAA59468; Mon, 1 Nov 1999 14:54:27 -0500 (EST) (envelope-from jontow) Date: Mon, 1 Nov 1999 14:54:27 -0500 From: Jonathan Towne To: Isaac Flemming Cc: freebsd-hackers@freebsd.org Subject: Re: NASM programs for freebsd Message-ID: <19991101145426.B59390@massve.geek.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: ; from Isaac Flemming on Sun, Oct 31, 1999 at 06:41:51PM -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ok, if i happen to remember correctly, assembly isn't so easy under freebsd or linux as it is under dos, mainly because we aren't in real time anymore..and the kernel prevents you from accessing the hardware so easily via assembly. You might wish to try using system calls.. example below.. section .text bits 32 extern printf global main msg db 'Hello, World!',10,0 main: push dword msg call printf add esp,4 retn Hope this helps in any way possible.. :) -- Jonathan Towne jontow@massive.geek.edu/wrongway@slic.com Systems Administrator http://massive.geek.edu/ -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GU d- s: a--- C+++ UB++++ P L- E--- W--- N++ o K w--- O-- M V- PS PE Y-- PGP- t+ 5 X+ R+ tv- b+ DI+ D++ G e- h-- r-- y ------END GEEK CODE BLOCK------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message