pop instruction and stack…

| POP Instruction |



source : Windows Debugger.

 MOV   AX,1234H
 MOV   BX,5678H
 PUSH  AX
 PUSH  BX
 POP   AX
 POP   BX
The values: AX=5678h BX=1234h First the value 1234h was pushed
 after that the value 5678h was pushed to the stack. Acording to LIFO
 5678h comes of first, so AX will pop that value and BX will pop the
 next.

source :
http://www.xs4all.nl/~smit/asm01001.htm