From owner-freebsd-questions Sat Jun 10 19: 5:38 2000 Delivered-To: freebsd-questions@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 33E9F37B6E2 for ; Sat, 10 Jun 2000 19:05:34 -0700 (PDT) (envelope-from grog@wantadilla.lemis.com) Received: (from grog@localhost) by wantadilla.lemis.com (8.9.3/8.9.3) id LAA88212; Sun, 11 Jun 2000 11:35:04 +0930 (CST) (envelope-from grog) Date: Sun, 11 Jun 2000 11:35:04 +0930 From: Greg Lehey To: Willem Brown Cc: Dutch Collins , Geoffrey Robinson , questions@FreeBSD.ORG Subject: Re: Learning Assembly Message-ID: <20000611113503.C87130@wantadilla.lemis.com> References: <3942A886.2AF22D24@charm.net> <20000611005156.E209@denary.brwn.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <20000611005156.E209@denary.brwn.org> Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sunday, 11 June 2000 at 0:51:56 +0200, Willem Brown wrote: > On Sat, Jun 10, 2000 at 09:43:50PM +0100, Dutch Collins wrote: >> Geoffrey Robinson wrote: >>> >>> I'm trying to learn assembly language for the enlightenment value. There >>> is a lot of stuff out there but it is mostly DOS oriented. Can somebody >>> please recommend an x86 assembly book for UNIX. >>> >>> Thanks >>> >> >> I have programmed in Assembly for 20yr on all kinds of machines and >> just plain 'clumps of chips' called machines so I am not an expert. I >> have marked this for reading in the hope I get something from it. >> >> http://www.daemonnews.org/200006/assembly-intro.html > > I'm also going down that road, if I can find it. Anyways, I bought > "Assembly Language Step-by-Step" 2nd ed. by Jeff Duntemann. > ISBN 0-471-37523-3. It starts of with dos but does Linux assembly > as well. And he uses NASM for both dos and Linux. I don't know NASM (or is that nasm?), but I assume it uses Intel mnemonics. This won't help you too much when reading FreeBSD assembly, which uses gas and the UNIX mnemonics (which, stupidly, don't correspond to the Intel mnemonics). Take a look at /usr/src/sys/i386/i386/locore.s for an example. I wish I could point to a good document on assembly under FreeBSD, but unfortunately I don't know one. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message