The MASM Forum Archive 2004 to 2012
Welcome, Guest. Please login or register.
June 04, 2023, 10:19:19 AM

Login with username, password and session length
Search:     Advanced search
128553 Posts in 15254 Topics by 684 Members
Latest Member: mottt
* Home Help Search Login Register
+  The MASM Forum Archive 2004 to 2012
|-+  General Forums
| |-+  The Laboratory (Moderator: Mark_Larson)
| | |-+  Random Generator
« previous next »
Pages: 1 ... 9 10 [11] Print
Author Topic: Random Generator  (Read 101821 times)
dedndave
Member
*****
Posts: 12523


Re: Random Generator
« Reply #150 on: November 07, 2010, 02:40:54 PM »

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
Logged
FORTRANS
Member
*****
Gender: Male
Posts: 1147


Imagine


Re: Random Generator
« Reply #151 on: November 07, 2010, 02:55:46 PM »

Hi Dave,

the MUL instruction is a bit finicky
MUL reg32 seems to be prefered over MUL [Val32],

   Right.

Quote
even 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.
Logged
Pages: 1 ... 9 10 [11] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP The MASM Forum Archive 2004 to 2012 | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!