<<< ESP register | Index | Indirect Access to Stack Values >>> |
Values are popped off the stack in reverse order: the last item pushed is the first popped.
To return the stack to its original status, you do the same number of pops as pushes.
You can subtract the correct number of words from the ESP register if you want to restore the stack without using the values on it.
Sample code: show_ESP.asm
Execution of POP BX
<<< ESP register | Index | Indirect Access to Stack Values >>> |