So i have this thing for college where I need to make a simple recursion. Seems fine I can do that in 20 mins in C. Howeeever they didn't teach us at the course about recursive functions in assembly sooo i looked it up on google. I found only this - https://scottc130.medium.com/recusive-functions-in-x86-assembly-5ba412bc7957 - and I have a few questions:
- Why is ebp being pushed here? I see pop for that so it kinda makes no sense to me to push something to stack without popping it.
- In the explanation part, what is that eip and where is it even pushed into the stack?
I think I might have understood slightly but I'd rather have it dumbed down a bit.
factorial:
pushl