Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jan 2019 11:11:12 -0700
From:      "Russell L. Carter" <rcarter@pinyon.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: any tutorials for x86-64 assembly under freebsd?
Message-ID:  <90a9cc24-93e6-7ba4-d11b-db85b8d8b07a@pinyon.org>
In-Reply-To: <201812261246.wBQCkdrj005579@sdf.org>
References:  <201812261246.wBQCkdrj005579@sdf.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12/26/18 5:46 AM, iam@sdf.org wrote:
> i am running freebsd-12 under x86-64.
> i have been pointed to 'as' and 'ld' for tools.
> i have also been pointed to the 'url' for intel
> documentation about x86-64 assembly.
> i also have a sample "hello world" program in
> x86-64 assembly language.
> may i know of any tutorials which can teach me
> to work with assembly using x86-64?
> i saw one book on amazon.com, but that uses the
> assembler from microsoft ('masm') which i think
> only runs under windows-10+.
> any pointers and/or help would be appreciated.
> thank you.

Basically for x86_64 you can use docs aimed at linux, modulo some
minor issues such as renumbering some syscalls.

Here are some I've found helpful:

This one is free and guaranteed fantastic:
https://yurichev.com/writings/UAL-EN.pdf

Not bad:
http://www.egr.unlv.edu/%7Eed/x86.html

Both NASM and YASM have very good docs on the actual
syntax.  You can find some ok guides about translating
between intel and att syntax.

This one costs a little bit:
https://www.packtpub.com/application-development/mastering-assembly-programming

So does this one but it's pretty good:
https://rayseyfarth.com/asm/

I generally like supporting authors writing about less common but
fundamental programming areas, especially if I can sidestep Amazon.

HTH,
Russell




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?90a9cc24-93e6-7ba4-d11b-db85b8d8b07a>