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 


compare register with value stored in allocated memory

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Meiyoh
Master Cheater
Reputation: 1

Joined: 14 Mar 2015
Posts: 402

PostPosted: Mon May 03, 2021 5:45 pm    Post subject: compare register with value stored in allocated memory Reply with quote

Hello i am trying to compare

rbx with the value of registered symbol

so example

cmp [rbx+0C],_HealthValue
je ...........

lets say Health value is 1500 so how do i make it compare so i can freely change health and based on it the opcode jumps to other stuff ?


thanks

_________________
I am the forgotten one the dead one.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Tue May 04, 2021 1:34 am    Post subject: Reply with quote

No, a registered symbol is only valid at the time of assembling, it does not update after it has been assembled

What you can do is allocate memory on the target process, get a registered symbol for that address and then read the value from there

e.g
Code:

push rax
mov eax,[_HealthValueAddress]
cmp [rbx+0C],eax
pop rax
je ...........

_________________
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
Meiyoh
Master Cheater
Reputation: 1

Joined: 14 Mar 2015
Posts: 402

PostPosted: Tue May 04, 2021 2:01 am    Post subject: Reply with quote

Dark Byte wrote:
No, a registered symbol is only valid at the time of assembling, it does not update after it has been assembled

What you can do is allocate memory on the target process, get a registered symbol for that address and then read the value from there

e.g
Code:

push rax
mov eax,[_HealthValueAddress]
cmp [rbx+0C],eax
pop rax
je ...........


I always forget that i have first to somehow convert it to register...thus eax.
THANKS ERIC!spaghetti monsterbless you!

_________________
I am the forgotten one the dead one.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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