Mail Archives: djgpp/1997/10/19/06:18:16
On Fri, 17 Oct 1997, tom burgess wrote:
> good AT soback DOT kornet DOT nm DOT kr wrote:
> >
> > I have a question in DJGPP inline assembly.
> > Among MOVW %AX, %BX, MOVL %EAX, %EBX
> >
> > This is just about speed, not others.
> >
> > Thanks in advance.
>
> On 386 and 486, same speed. On Pentium, 16 bit operations (MOVW) are
> SLOWER. (1 cycle prefix byte penalty, plus additional penalties
> because instruction pairing is disabled)
>
> regards, tom
Hi !
I was browsing through the news group when I came across the above reply..
I'm kinda confused (Hope you can give me some simple explanations...)
I had read somewhere in a computer architecture book that a word would
correspond to the size of the register in a CPU. Since the register size
on a Pentium is 32-bit , wouldn't MOVW be doing a 32-bit operation ?
Or maybe I had confused myself on the actual implementation (assembly) and
architecture ?
Thanks in advance.
Kean
/****************************************************************************/
Lin Oon Kean
email : Oon DOT Lin AT jcu DOT edu DOT au
or : oonkean AT cyberdude DOT com
Kean's Corner In The World Wide Web :
http://lionfish.jcu.edu.au/~sci-okl
"People are killing the babies , Crying 'Save the Whales Today !' "
- The Kry
/****************************************************************************/
- Raw text -