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 


How to mov/copy value within alloc of inject

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

Joined: 29 Jul 2024
Posts: 6
Location: Ohio

PostPosted: Mon Oct 28, 2024 10:39 pm    Post subject: How to mov/copy value within alloc of inject Reply with quote

I used aob inject to look at values of registers and would like to save last 3 values to try to spot some type of pattern. In my case the save of rsi works but my attempt to copy past values does not work
Code:

newmem:
  mov [rsav00rsi]+16,[rsav00rsi]+8 // copy 2 previous values
  mov [rsav00rsi]+8,[rsav00rsi]
  mov [rsav00rsi],rsi

I also tried
Code:

newmem:
  mov [rsav00rsi+16],[rsav00rsi+8] // copy 2 previous values
  mov [rsav00rsi+8],[rsav00rsi]
  mov [rsav00rsi],rsi


Both failed with error below when I tried to save the code.
I then tried alloc some more 8 byte to do a save but it again fails.
Code:

newmem:
  mov [rsav00rsi2],[rsav00rsi1] // copy 2 previous values
  mov [rsav00rsi1],[rsav00rsi]
  mov [rsav00rsi],rsi


So how can I mov/copy values (saved registers) inside an inject script using internal alloc memory???

Here is error for above codes:



ASM_MOV1.gif
 Description:
 Filesize:  24.04 KB
 Viewed:  381 Time(s)

ASM_MOV1.gif


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