Procedures and the stack

call pushes a return address and ret pops it, arguments travel in six registers and then on the stack, and each call gets a frame for its saved registers and locals, which is what makes recursion work.

From Computer systems, a programmer's view.