Re: Displacement def in as

"A D" <[email protected]>
Newsgroups gmane.linux.assembly
Message-ID <[email protected]>
>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/

-
To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.