Weigel Gram
Weigel Gram

Reputation: 183

Pop in assembly

If the ESP register has a value of 0x00050830 and the address 0x00050830 has a value of 0x00002000.

Now I say pop eax, will the EAX register have a value of 0x00002000?

Upvotes: 0

Views: 560

Answers (2)

Vlad Krasnov
Vlad Krasnov

Reputation: 1027

In addition it will increment esp by 4, to point to the next value on stack.

Upvotes: 2

Josh Greifer
Josh Greifer

Reputation: 3221

It will place the value at the address pointed to by esp into eax, namely 0x00002000.

Upvotes: 2

Related Questions