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 


Pushing an addresses value

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

Joined: 01 Dec 2016
Posts: 82

PostPosted: Sat Dec 24, 2016 3:10 pm    Post subject: Pushing an addresses value Reply with quote

I would like to know, if I do (for example)

Code:

    push [esi+14]


Where is it actually going? If I wanted to "inc" it, what would I do?

_________________
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4699

PostPosted: Sat Dec 24, 2016 4:52 pm    Post subject: Reply with quote

From Intel's instruction set reference manual:
Quote:
PUSH — Push Word, Doubleword or Quadword onto the stack
...
Decrements the stack pointer and then stores the source operand on the top of the stack.

In other words, it subtracts 4 from esp and moves the specified value into the new [esp].

To increment the value on the top of the stack, use inc [esp].

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Kronogenics
Advanced Cheater
Reputation: 0

Joined: 01 Dec 2016
Posts: 82

PostPosted: Sat Dec 24, 2016 4:54 pm    Post subject: Reply with quote

Alright, esp is the stack. That's what I needed to know! Thank you!
_________________
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