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 


32 BIT How to move value from Pointer to ASM register

 
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: Tue Mar 16, 2021 5:28 pm    Post subject: 32 BIT How to move value from Pointer to ASM register Reply with quote

mov [eax],_CounterMov+540

Hi coders , i want to copy the value of _CounterMov+540 (ALLOCATED memory ptr) to the eax ?

ANSWER by MYSELF

Code:
mov edx,_CounterMov+540
mov [eax],edx


simple as that



_________________
I am the forgotten one the dead one.
Back to top
View user's profile Send private message
MMM-304
Expert Cheater
Reputation: 0

Joined: 17 Aug 2020
Posts: 170
Location: Milkey Way

PostPosted: Sun Mar 21, 2021 11:52 pm    Post subject: Reply with quote

1.value of _CounterMov+540 -> eax
Code:

mov eax,[ _CounterMov+540]



2. value of _CounterMov+540 -> value of eax (considering eax is an address itself)

Code:

push [ _CounterMov+540]
pop [eax]
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