Teaching Lab
Windows 32-bit and 64-bit stack simulator.
This lab models the Windows stack frame used by classroom examples in both x86 and x64 mode: saved frame pointer, return address, arguments, local storage and stack-pointer movement. Type a short block of Intel-syntax assembly, then step through it to see the frame change.
What it shows
- How push ebp and mov ebp, esp create a stable frame.
- How sub esp, N reserves local space on the stack.
- How leave and ret restore the caller frame.
Stack view
Current frame
Ready
Top of stack
32-bit x86, 4-byte slots
Toward higher addresses
Newest values
Older frames
ESP
EBP
saved frame pointer
reserved local slot
Assembly editor
Intel syntax
Step 0 of 0
Supported instructions: push, pop, mov, sub, add, leave, ret, xor, nop. Memory operands use brackets such as [ebp-4] or [esp+8].
Instruction explanation
x86Select a mode, load a lesson preset, and step through the program to see what each instruction changes on the stack.