From: Maciej Hrebien <m_hrebien@wp.pl>
To: linux-assembly@vger.kernel.org
Subject: Re: looping_code
Date: Sun, 01 Sep 2002 11:21:36 +0200 [thread overview]
Message-ID: <3D71DC20.A89B7F13@wp.pl> (raw)
In-Reply-To: 7D0EEAE2-BD04-11D6-B059-003065A88832@sonoma.edu
Robert Plantz wrote:
>
> > "mov $msg,%ecx" and "lea msg,%ecx" does the same thing in this example -
> > moves ptr to 'msg' to the ecx register. The only difference is that the
> > first one is coded one byte shorter.
> >
>
> which can be seen if you do:
> mov $msg,%ecx
> leal msg,%edx
>
> and look in the debugger ---
> (gdb) i r
> eax 0x4 4
> ecx 0x80494c8 134517960
> edx 0x80494c8 134517960
> ebx 0x1 1
>
> Furthermore, if you look at the listing --
> 12 000f B9000000 mov $msg,%ecx
> 12 00
> 13 0014 8D150000 leal msg,%edx
> 13 0000
Yes, that's right. Sorry for the mess - (don't know why) i received Your
"proof reply" just after i send my. In final we got two messages saying
the same :)
Regards,
--
Maciej Hrebien
prev parent reply other threads:[~2002-09-01 9:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-26 9:19 looping_code ssams
2002-08-26 14:59 ` looping_code Maciej Hrebien
2002-08-31 6:17 ` looping_code Scott Lanning
2002-08-31 15:05 ` looping_code Robert Plantz
2002-08-31 17:36 ` looping_code Scott Lanning
2002-08-31 15:51 ` looping_code Maciej Hrebien
2002-08-31 17:10 ` looping_code Robert Plantz
2002-09-01 9:21 ` Maciej Hrebien [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=3D71DC20.A89B7F13@wp.pl \
--to=m_hrebien@wp.pl \
--cc=linux-assembly@vger.kernel.org \
/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 NNTP newsgroup(s).