From: "A D" <a_d_249@hotmail.com>
To: plantz@sonoma.edu
Cc: linux-assembly@vger.kernel.org
Subject: Re: Displacement def in as
Date: Wed, 22 Nov 2006 21:56:32 -0500 [thread overview]
Message-ID: <BAY22-F219F1D2BC45DF7709BFDD5F5E20@phx.gbl> (raw)
In-Reply-To: <1164240267.5308.10.camel@ubuntu>
>Robert Plantz wrote:
>If you are using the gnu assembler, gas, you should
>become familiar with the info for it. The command
>is
> info as
>
>Go to Machine Dependencies, then i386-Dependent,
>then i386-Memory. There you will see that the AT&T
>syntax is
> DISP(BASE, INDEX, SCALE)
>
>DISP is an integer. An example is
> movl $0, -4(%ebp)
>which would store 32 bits of zero at the
>memory location starting 4 bytes negative
>from the address in the ebp register. (This
>instruction does not use INDEX or SCALE.)
>
>Linux uses a flat memory model, so you don't
>need to worry about the segmentation registers
>if you run your program under Linux.
Thank you Robert Plantz for your wonderful insight.
--STeve
_________________________________________________________________
Off to school, going on a trip, or moving? Windows Live (MSN) Messenger lets
you stay in touch with friends and family wherever you go. Click here to
find out how to sign up! http://www.telusmobility.com/msnxbox/
prev parent reply other threads:[~2006-11-23 2:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-22 23:44 Displacement def in as A D
2006-11-23 0:04 ` Robert Plantz
2006-11-23 2:56 ` A D [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BAY22-F219F1D2BC45DF7709BFDD5F5E20@phx.gbl \
--to=a_d_249@hotmail.com \
--cc=linux-assembly@vger.kernel.org \
--cc=plantz@sonoma.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).