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 


Comparing addresses in auto assembler

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
sgsgwv$6263
Advanced Cheater
Reputation: 0

Joined: 05 Aug 2020
Posts: 84

PostPosted: Thu Dec 14, 2023 6:54 am    Post subject: Comparing addresses in auto assembler Reply with quote

So I have something like this:

Code:

newmem:
mov [PlayerRax],rax

code:
  mov ecx,[rax+08]
  mov [rbx+08],ecx
  jmp return


in the newmem, I want to check if rax is greater than 7FF06567960(random address) then go to code. The rax that I want is something like 024f5678483(again, a random address but has to be less than the 7FF.. one mentioned before).

What I did was:

Code:

newmem:
cmp  rax,7FF06567960
jge code
mov [PlayerRax],rax

code:
  mov ecx,[rax+08]
  mov [rbx+08],ecx
  jmp return


Needless to say, didnt work. PlayerRax is always nothing.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4709

PostPosted: Thu Dec 14, 2023 11:39 am    Post subject: Reply with quote

That code is fine. If PlayerRax is always nothing, then that means rax was never less than 0x7FF06567960 every time the injection point was executed.

Maybe you have to do some action in-game for the injection point to execute? e.g. if the injection point only gets run when you buy something, then obviously you have to buy something in order for your code injection to run.

Could be something else, like you're jumping to code instead of newmem

_________________
I don't know where I'm going, but I'll figure it out when I get there.
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