Difference between revisions of "Assembler:Commands:POP"
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
Loads the value from the top of the stack to the location specified with the destination operand and then increments the stack pointer. The destination operand can be a general-purpose register, memory location, or segment register. | Loads the value from the top of the stack to the location specified with the destination operand and then increments the stack pointer. The destination operand can be a general-purpose register, memory location, or segment register. | ||
− | |||
</div> | </div> | ||
Line 33: | Line 32: | ||
{{AssemblerCommandSeeAlso}} | {{AssemblerCommandSeeAlso}} | ||
− | + | {{Template:AssemblerCommandExternalLinks}} | |
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 15:27, 3 January 2018
command pop operand
POPs (restores) data from the stack.
Used to restore state after a call to PUSH.
Loads the value from the top of the stack to the location specified with the destination operand and then increments the stack pointer. The destination operand can be a general-purpose register, memory location, or segment register.
Command Parameters
Parameter | Description |
---|---|
operand | The registery or data to pop |
Examples
pop ax
pop eax
pop rax