From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 11 05:02:51 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C663116A4CE for ; Fri, 11 Mar 2005 05:02:51 +0000 (GMT) Received: from node15.coopprint.com (node15.cooperativeprinting.com [208.4.77.15]) by mx1.FreeBSD.org (Postfix) with SMTP id DF73F43D39 for ; Fri, 11 Mar 2005 05:02:50 +0000 (GMT) (envelope-from ryans@gamersimpact.com) Received: (qmail 36153 invoked by uid 0); 11 Mar 2005 05:01:35 -0000 Received: from unknown (HELO ?192.168.0.5?) (63.231.157.250) by node15.coopprint.com with SMTP; 11 Mar 2005 05:01:35 -0000 Message-ID: <423126FF.3080608@gamersimpact.com> Date: Thu, 10 Mar 2005 23:05:03 -0600 From: Ryan Sommers User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: klowd9 - References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: Freebsd Asm X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2005 05:02:51 -0000 klowd9 - wrote: > If anyone can share his own files, or give any tips, would be nice. You aren't going to find many, if any, userland include files for assembly. The system is designed to be very portable and assembly is not. My first response, and likely that of anyone else, would be what are you doing that it needs to be done in assembly? If all you are looking for is some experience working with assembly then that's fine; there are a lot of good guides out there that teach the basics. Otherwise though if you're looking to get into developing on FreeBSD I'd recommend sticking with a higher level language. I think I remember a few guides out there on doing assembly on FreeBSD, can't remember them off the top of my head though. Honestly, coming from someone that went through that learning curve, a good ol copy of MSDOS can be a better teaching aid than doing assembly on a modern OS. I imagine almost every modern OS running on x86 will run in protected mode and therefore somewhat shield you from getting down and dirty with the processor. Using DOS will let you mess around with entering protected mode and other things. Another note, careful about using Linux guides on FreeBSD. Specifically be careful when it comes to system calls. Linux, like Windows, uses registers for passing arguments to syscalls, extras spill onto the stack, FreeBSD however passes all parameters on the stack. -- Ryan Sommers ryans@gamersimpact.com