Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Help with assembly instruction (IMUL)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
SwaggaJackin'
Master Cheater
Reputation: 2

Joined: 06 Nov 2009
Posts: 304

PostPosted: Sun Feb 26, 2012 9:23 am    Post subject: Help with assembly instruction (IMUL) Reply with quote

Having some difficulty interpreting this instruction:

Code:

IMUL ecx


It's my understanding that if it multiplies a 32-bit value like this, it stores the product of EAX * ECX in both EAX and EDX. However, when this operation is performed its storing the 32-bit product in EAX and storing some 16-bit value inside of EDX. I don't understand how EDX is receiving this value and would like appreciate some help.

Register values before IMUL Ecx is executed:



Register values after execution:



Thanks.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25813
Location: The netherlands

PostPosted: Sun Feb 26, 2012 9:34 am    Post subject: This post has 1 review(s) Reply with quote

ECX=CC71
EAX=51EB851F



51EB851F*CC71=416BD70A76AF

Now since eax can only contain 32-bit values the extra bits are placed in edx

Code:

EDX  : EAX
416B : D70A76AF

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
SwaggaJackin'
Master Cheater
Reputation: 2

Joined: 06 Nov 2009
Posts: 304

PostPosted: Sun Feb 26, 2012 9:35 am    Post subject: Reply with quote

I see, thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites