The Stack and ESP in Assembly Language - What happens when you call a procedure?

preview_player
Показать описание
What happens with the STACK, ESP, and EIP when a procedure is called in Assembly Language.

I don't know about you, but I am SICK of having to scrub through a 15-minute video only to find out that they didn't even answer the question I was searching for. Here is a 4-minute video that explains what happens to the Stack, ESP, and EIP when a procedure is called in Assembly Language.

I am a computer science student in my first semester at Auburn University, and this was one of the hardest concepts for me to grasp in my Assembly Language course. After spending a few hours failing to find youtube videos that helped me understand, I decided it was a good idea to make one. Hopefully it helps you understand this concept in less time than it took me. Thanks for watching!
Рекомендации по теме
Комментарии
Автор

This was one of the most thoughtful, well prepared videos on assembly I have ever seen. You have a real knack for explaining this content visually. Thank you!

ArunaSrivastava-xbeq
Автор

Thank you very much for this. I watched 2-3 videos prior to this one, but yours made it click. Especially because you gave multiple analogies (the deck of cards one being my favorite) to explain the same thing - this approach really makes a person understand the topic by having to think about what all the analogies have in common.

pavolpanisz
Автор

Great video !!! Indeed there aren't other videos that explain the concept well enough, that's why I thank you a lot!! :)

techtechlearn
Автор

thank you, It was very hard to find a video that actually explains this correctly.

elecmayte
Автор

This was hurting my brain yesterday but you made it click! Thanks! :)

kellyshields
Автор

The best vdo. U explained so simply and easlily. I was looking for this for months 😅

sayanhalder
Автор

I went to a few videos, they sucked, went to copilot, it explained it nicely... but sucked, yours is good

hodayfah
Автор

it's good to mention that this could vary depending on what calling convention (__stdcall, __cdecl, __fastcall) and CPU architecture (x86, x64) you are using

alexandrumarcel
Автор

Yes this definitely helped visualize. Thanks

AD-wgik
Автор

This was a good video thank you. Do you have have any videos on what the EBP does? Thanks

kyledrewes
Автор

Great video, wish you went into recursion

gristlelollygag
Автор

I just want to say to people who don't get why SP changes : Every push and pop is implicitely modifiying SP, the person writing instruction doesn't need to manage it in this case.

ZettaiKatsu
Автор

thank you so much! although at first i kinda had a headache but rb i understand

hansqid
Автор

What were the ESP and EBP doing through all of this?

effsixteenblock
Автор

educational, although I was looking for EBP basics.

gurpreetkhamba
Автор

when you pop, does the value goes to eip by default

tsunningwah
Автор

Same boat as you, mate! But this helped!

vortex_
Автор

what happen if we push another register in to stack when program executing the call function, at that point stack pop out that we push into the stack to EIP register ? if it does what happen to program executing instruction ?

gtamta
Автор

Thank you so much man you save my ass!

echohuang