From: Darryl Miles <darryl@netbauds.net>
To: hugang <linuxbest@sina.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Abort x86 assemble code
Date: Thu, 04 Jan 2001 08:08:36 +0000 [thread overview]
Message-ID: <3A542F83.4BD3B30B@netbauds.net> (raw)
hugang <linuxbest@sina.com> wrote:
> I have following code ,and I can not understand the mark line,who can tell me.thanks.
> 00000ec7 xorl 0x400dec(,%eax,4),%ecx ????<-----------------What it to do.
extern u_int32_t eax;
extern u_int32_t ecx;
{
u_int32_t *ptr;
ptr = (u_int32_t *)((eax * 4) + 0x400dec);
ecx ^= *ptr;
}
Commonly used in the above form (with a fixed displacement) to access a
32bit value within an array of 32bit values.
The array start offset would be hardwired at 0x400dec, the zero based
index into the array is provided by eax.
--
Darryl Miles
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next reply other threads:[~2001-01-04 8:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-04 8:08 Darryl Miles [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-01-04 6:02 Abort x86 assemble code hugang
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=3A542F83.4BD3B30B@netbauds.net \
--to=darryl@netbauds.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxbest@sina.com \
/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