Step Into Labs

Step Into x64 Assembly · Lesson 6 · Memory & the Stack

The Stack

push and pop, callee-saved registers, local variables, alignment and recursion.

Part of Step Into x64 Assembly. The full lesson, its missions and the real compiler and debugger are in the course. Try a free lesson first to see how it works.

The stack is a region of memory that rsp points into. It grows towards lower addresses:

In this lesson

Missions

  1. Swap through the stack
  2. Preserve rbx
  3. Locals on the stack
  4. Recursion