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 use pointers in assembler ?

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

Joined: 19 Sep 2015
Posts: 33

PostPosted: Wed Oct 12, 2016 7:06 am    Post subject: How to use pointers in assembler ? Reply with quote

I've stored the value of a custom address with
mov [combataddress],ebx

The value I'm looking to track via the pointer, is ebx+08

Then later in code, I want to check the value of what was ebx+08
But not sure how to do it ? something like below obv wouldn't work
cmp byte ptr [[combataddress]+08],01
Back to top
View user's profile Send private message
sbryzl
Master Cheater
Reputation: 6

Joined: 25 Jul 2016
Posts: 252

PostPosted: Wed Oct 12, 2016 9:16 am    Post subject: Reply with quote

Push a register to use then pop it when done, or find a register that will be changed anyway and you can use that without worrying. Then mov [combataddress] to your register to use it.

So if it's eax
mov eax,[combataddress]
cmp byte ptr [eax+8],1

If you just want to change the pointer without keeping the base then you can add 8 to [combataddress] and use it that way.
Back to top
View user's profile Send private message
spoofy
Cheater
Reputation: 0

Joined: 19 Sep 2015
Posts: 33

PostPosted: Fri Oct 14, 2016 8:37 am    Post subject: Reply with quote

cheers sbryzi, worked great !
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