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 


First Learning about flow of assembly...

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
Triad0112
How do I cheat?
Reputation: 0

Joined: 25 Dec 2022
Posts: 2

PostPosted: Sun Dec 25, 2022 1:14 am    Post subject: First Learning about flow of assembly... Reply with quote

I wonder how is assembly order of execution.
I am trying to find out how make address at "ecx+168" is only change when its not player by putting out jump to enemy hp if it wasn't player.
My expectation will be it will not change the value of "ecx+168" into "ecx+C" if it wasn't player. But instead it also change not player value Smile... anybody can give me enlightment?

Code:

newmem:
  cmp [ecx+00000478],#0   // check player (0)
  jne enemyhp            // jump original code if not player
  mov eax,[ecx+0000000C] // change to max HP
  mov [ecx+00000168],eax
  jmp return

enemyhp:
  mov eax,[ebp+0C]
  mov [ecx+00000168],eax
  jmp return
[/code]

Last edited by Triad0112 on Sun Dec 25, 2022 1:37 am; edited 1 time in total
Back to top
View user's profile Send private message
cooleko
Grandmaster Cheater
Reputation: 11

Joined: 04 May 2016
Posts: 717

PostPosted: Sun Dec 25, 2022 1:23 am    Post subject: Reply with quote

[ecx+478] must never equal 0. Figure out what address does change only for enemy addresses and to what value and change the offset and value to match what you are looking for.
Back to top
View user's profile Send private message
Triad0112
How do I cheat?
Reputation: 0

Joined: 25 Dec 2022
Posts: 2

PostPosted: Sun Dec 25, 2022 1:52 am    Post subject: Reply with quote

cooleko wrote:
[ecx+478] must never equal 0. Figure out what address does change only for enemy addresses and to what value and change the offset and value to match what you are looking for.


Oh ya my bad Smile... i just checked again. The Value is zero... thanks!
Back to top
View user's profile Send private message
cooleko
Grandmaster Cheater
Reputation: 11

Joined: 04 May 2016
Posts: 717

PostPosted: Sun Dec 25, 2022 3:02 pm    Post subject: Reply with quote

Is it something other than an integer? If it is a byte, float, or double you can't compare to an integer.
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 Discussions 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