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 


My custom address isn't getting written to

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

Joined: 08 Mar 2017
Posts: 56

PostPosted: Fri Mar 17, 2017 7:20 am    Post subject: My custom address isn't getting written to Reply with quote

Hi,

I have a line in my autoassembly:

Code:
 
mov rcx,lookvalue
mov rcx,[rsi+00000018]


lookvalue always stays at 0 when this line gets executed even though rsi+18 isn't 0.

Am I moving it wrong?

I also tried mov [rcx],[rsi+00000018] and mov [rcx+0],[rsi+00000018] but then it doesn't compile.


Thanks
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 329

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

PostPosted: Fri Mar 17, 2017 8:03 am    Post subject: Reply with quote

try
Code:

mov rcx,lookvalue
mov [rcx],rsi
add [rcx],18

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
nero1232
Advanced Cheater
Reputation: 0

Joined: 08 Mar 2017
Posts: 56

PostPosted: Fri Mar 17, 2017 8:38 am    Post subject: Reply with quote

Dark Byte wrote:
try
Code:

mov rcx,lookvalue
mov [rcx],rsi
add [rcx],18


This almost worked, lookvalue now contains a pointer pointing to the address, but I want lookvalue to actually contain the value.

e.g. lookvalue = 8 rather than lookvalue =P->12345
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 329

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

PostPosted: Fri Mar 17, 2017 10:53 am    Post subject: Reply with quote

then
Code:

mov rcx,lookvalue
push rax
mov rax,[rsi+18]
mov [rcx],rax
pop rax


Or, if your code and lookvalue are in the same region (allocated with the same base or inside the same script)
Code:

mov rcx,[rsi+00000018]
mov [lookvalue],rcx

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
nero1232
Advanced Cheater
Reputation: 0

Joined: 08 Mar 2017
Posts: 56

PostPosted: Fri Mar 17, 2017 12:53 pm    Post subject: Reply with quote

Dark Byte wrote:
then
Code:

mov rcx,lookvalue
push rax
mov rax,[rsi+18]
mov [rcx],rax
pop rax


Or, if your code and lookvalue are in the same region (allocated with the same base or inside the same script)
Code:

mov rcx,[rsi+00000018]
mov [lookvalue],rcx


Thanks
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