Difference between revisions of "Assembler:Commands:POP"
Jump to navigation
Jump to search
(Created page with ''''command''' pop ''operand'' POPs (clears) data from the stack. === Command Parameters === {|width="85%" cellpadding="10%" cellpadding="5%" cellspacing="0" border="0" !align="…') |
|||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | [[Category:Assembler]] | ||
'''command''' pop ''operand'' | '''command''' pop ''operand'' | ||
− | POPs ( | + | POPs (restores) data from the stack. |
+ | |||
+ | Used to restore state after a call to [[Assembler:Commands:PUSH|PUSH]]. | ||
+ | |||
+ | |||
+ | <div style="padding:2px;border:1px dashed #2f6fab;background-color:#f4f4f4;"> | ||
+ | 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. | ||
+ | |||
+ | [http://c9x.me/x86/html/file_module_x86_id_248.html c9x.me/x86/html/file_module_x86_id_248.html] | ||
+ | </div> | ||
+ | |||
=== Command Parameters === | === Command Parameters === | ||
Line 20: | Line 31: | ||
pop rax | pop rax | ||
+ | {{AssemblerCommandSeeAlso}} | ||
− | + | {{Template:AssemblerCommandExternalLinks}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 15:57, 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[edit]
Parameter | Description |
---|---|
operand | The registery or data to pop |
Examples[edit]
pop ax
pop eax
pop rax