To pop a value off the stack
If the Call Stack window is not visible, click Call Stack on the View menu.
Click the Pop Value button on the toolbar.
The topmost value is popped off the stack by updating the SP register accordingly.
Tip
Values can be entered in either decimal or hexadecimal:
32678 (Decimal)
0x8000 (C hex notation)
8000h (Zilog hex notation)
$8000 (Hexadecimal)
#8000 (DevPac hex)
You can also use the shortcut key, Ctrl+T to open the Call Stack window.
Use Quick Peek to quickly view the memory pointed to by values on the stack.
Click an address to open that address in the disassembly window.
Ctrl+Click an address to open that address in the memory inspector.
Note
This works just like the Z80's
POPinstruction. The value at the top of the stack is still unchanged in memory. Only the stack pointer (SP) register is updated.