can some one tell me what push does

Recommended Answers

All 3 Replies

It places a value on the top of the stack. The equivalent would be:

; push [arg]
sub esp, 4
mov esp, [arg]

Conversely, pop will do the opposite:

; pop [arg]
mov [arg], esp
add esp, 4

thanks sorry about it actually googled it this time didnt understand definition

This posting may help explain the purposes behind the stack instructions a little better.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.