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 


Auto Assembler Script - How to read a multi-leveled pointer?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Screitor
Cheater
Reputation: 1

Joined: 26 Nov 2012
Posts: 33
Location: Venezuela

PostPosted: Sat Apr 06, 2013 10:48 pm    Post subject: Auto Assembler Script - How to read a multi-leveled pointer? Reply with quote

Hello, I want to know how to read a multi-level pointer with an auto assembler script, but I have no idea where to start.

The address pointed by the multi-level pointer, stores a byte type variable.

Any idea?

_________________
Everybody lies.


Last edited by Screitor on Sun Apr 07, 2013 12:35 pm; edited 1 time in total
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Mohsen
Advanced Cheater
Reputation: 1

Joined: 04 Apr 2013
Posts: 69
Location: PE

PostPosted: Sun Apr 07, 2013 4:16 am    Post subject: Reply with quote

wiki.cheatengine.org/index.php?title=CEAddressString

wiki.cheatengine.org/index.php?title=readInteger

wiki.cheatengine.org/index.php?title=Lua
Back to top
View user's profile Send private message
Screitor
Cheater
Reputation: 1

Joined: 26 Nov 2012
Posts: 33
Location: Venezuela

PostPosted: Sun Apr 07, 2013 6:06 pm    Post subject: Reply with quote

That's not what I'm looking for.

Anyways thank you, I posted another question in the right subforum.

_________________
Everybody lies.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
happyreadygo
Advanced Cheater
Reputation: 1

Joined: 14 Sep 2011
Posts: 87

PostPosted: Wed Apr 10, 2013 12:07 am    Post subject: Reply with quote

Code:
push eax
        push ebx
        mov eax,[0046ccc0]
        mov ebx,[eax+44]
        cmp [ebx+1c],2aa
        je somewhere
        .
        .
        .
        pop ebx
        pop eax

Here is an example of how to change

In order to modified for the byte type...just change from mov eax to mov al or ah(EX. mov bl,4])
however push and pop must using eax not al or ah(ex. push al //Wrong!)


Last edited by happyreadygo on Wed Apr 10, 2013 12:28 am; edited 1 time in total
Back to top
View user's profile Send private message
Mohsen
Advanced Cheater
Reputation: 1

Joined: 04 Apr 2013
Posts: 69
Location: PE

PostPosted: Wed Apr 10, 2013 12:19 am    Post subject: Reply with quote

Screitor wrote:
That's not what I'm looking for.

Anyways thank you, I posted another question in the right subforum.


Ops sorry.. missed 'auto assembler' in your question..

In additional to happyreadygo answer :

Code:

push eax
lea eax, [ebx*4+8]
mov byte ptr[eax], FF
pop eax

Back to top
View user's profile Send private message
happyreadygo
Advanced Cheater
Reputation: 1

Joined: 14 Sep 2011
Posts: 87

PostPosted: Wed Apr 10, 2013 12:29 am    Post subject: Reply with quote

what's lea , can u tell me Smile
Back to top
View user's profile Send private message
TsTg
Master Cheater
Reputation: 5

Joined: 12 Dec 2012
Posts: 334
Location: Somewhere....

PostPosted: Wed Apr 10, 2013 1:10 am    Post subject: Reply with quote

happyreadygo wrote:
what's lea , can u tell me Smile



It stands for "Load Effective Address"

will take the address location of [ebx*4+8] as a value, then stores it in eax register.
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 Lua Scripting 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