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 


variables

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

Joined: 21 Oct 2014
Posts: 33
Location: UNKNOWN

PostPosted: Sat Nov 22, 2014 1:01 pm    Post subject: variables Reply with quote

I want to make a variable which can store addresses and values. I want this to solve this problem.
I got a value in this address [eax+???] (??? can be any offset)
I want it to move to this address [eax-???]
From the AA tutorial i knew that we cant move value of one to another. But there was a indirect way given. It used ebx. But if i use ebx in my code it can do undesirable changes in game code. so i want to make a variable like this. short example :-
Code:

mov variable,[eax+???]
mov [eax-???],variable

Hope you understand the problem. Please help and post an example if possible.

_________________
PROFESSIONAL "LEARNER"
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sat Nov 22, 2014 1:20 pm    Post subject: Re: variables This post has 3 review(s) Reply with quote

Code:

push ebx

mov ebx,[eax+???]
mov [eax-???],ebx

pop ebx

_________________
Back to top
View user's profile Send private message MSN Messenger
sreeragh2009
Cheater
Reputation: 0

Joined: 21 Oct 2014
Posts: 33
Location: UNKNOWN

PostPosted: Sat Nov 22, 2014 2:09 pm    Post subject: Reply with quote

so it wont change value of ebx right. Push pop is used to save earlier value right ? . just asking to confirm. i dont want my ebx to change
_________________
PROFESSIONAL "LEARNER"
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
zm0d
Master Cheater
Reputation: 7

Joined: 06 Nov 2013
Posts: 423

PostPosted: Sat Nov 22, 2014 4:09 pm    Post subject: Reply with quote

Yes, EBX current value gets pushed to the stack and the old value gets restored with POP
Back to top
View user's profile Send private message
sreeragh2009
Cheater
Reputation: 0

Joined: 21 Oct 2014
Posts: 33
Location: UNKNOWN

PostPosted: Sun Nov 23, 2014 1:46 am    Post subject: Reply with quote

Thank you for the info. BTW does that mean we cant make variable thingy ?
_________________
PROFESSIONAL "LEARNER"
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
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