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 


[Question] Assembly Code

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Chaosis13
Master Cheater
Reputation: 0

Joined: 14 Aug 2007
Posts: 372

PostPosted: Sat Apr 12, 2008 2:17 pm    Post subject: [Question] Assembly Code Reply with quote

I have this assembly code:
Code:
mov [esi+04],eax

And I am not sure what it does... Could someone explain it?

And then how could I minipulate this to make the address it writes to equal 1?

P.S. I can program in a bunch of other languages so don't dumb it down, I just havent looked at assembly much.
Back to top
View user's profile Send private message
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Sat Apr 12, 2008 2:24 pm    Post subject: Reply with quote

the mov command (mov dest, src), copies src into dest. In this case, it would copy the eax register into 4 + the address pointed to by esi.
mov [esi+04], 1 would mov 1 instead of eax, but that would take more byte space.
Back to top
View user's profile Send private message
Chaosis13
Master Cheater
Reputation: 0

Joined: 14 Aug 2007
Posts: 372

PostPosted: Sat Apr 12, 2008 2:27 pm    Post subject: Reply with quote

Thank you both for your help. I was trying to get it to equal 0, but I found a fix. I instead made it a big value to make it go cazy. I did this:
Code:
mov [esi+f0],eax


Thanks again.
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 programming 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