News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Random Generator

Started by Neil, June 17, 2009, 12:44:13 PM

Previous topic - Next topic

dedndave

the MUL instruction is a bit finicky
MUL reg32 seems to be prefered over MUL [Val32], even if you have to load it
but, it is nice if the instruction just before MUL is not related to EAX, EDX, or the multiplicand
and it is nice if the instruction that follows MUL is not related EAX or EDX

well - none of those guidelines can really be followed with MWC - lol

FORTRANS

Hi Dave,

Quote from: dedndave on November 07, 2010, 02:40:54 PM
the MUL instruction is a bit finicky
MUL reg32 seems to be prefered over MUL [Val32],

   Right.

Quoteeven if you have to load it

   Hmm.  By how much?  Guess it's processor specific.
Oh well.  Put it on the ToDo list...
   
Quote
but, it is nice if the instruction just before MUL is not related to EAX, EDX, or the multiplicand
and it is nice if the instruction that follows MUL is not related EAX or EDX

well - none of those guidelines can really be followed with MWC - lol

   Except loading registers?  But MWC is 64-bit, sort of, as
one needs to save both EAX and EDX contents.  Whereas
the others need to save 32-bit EAX.

Cheers,

Steve N.