Difference between revisions of "Assembler:Commands:PUSH"
Jump to navigation
Jump to search
(Created page with ''''command''' push ''operand'' PUSHes (saves) data onto the stack. === Command Parameters === {|width="85%" cellpadding="10%" cellpadding="5%" cellspacing="0" border="0" !align…') |
|||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | [[Category:Assembler]] | ||
'''command''' push ''operand'' | '''command''' push ''operand'' | ||
PUSHes (saves) data onto the stack. | PUSHes (saves) data onto the stack. | ||
+ | |||
+ | |||
+ | <div style="padding:2px;border:1px dashed #2f6fab;background-color:#f4f4f4;"> | ||
+ | Decrements the stack pointer and then stores the source operand on the top of the stack. | ||
+ | |||
+ | [http://c9x.me/x86/html/file_module_x86_id_269.html c9x.me/x86/html/file_module_x86_id_269.html] | ||
+ | </div> | ||
+ | |||
=== Command Parameters === | === Command Parameters === | ||
Line 13: | Line 22: | ||
− | == | + | == Examples == |
− | + | push ax | |
− | + | ||
− | + | push eax | |
+ | |||
+ | push rax | ||
+ | |||
+ | |||
+ | {{AssemblerCommandSeeAlso}} | ||
+ | |||
+ | {{Template:AssemblerCommandExternalLinks}} |
Latest revision as of 16:03, 3 January 2018
command push operand
PUSHes (saves) data onto the stack.
Decrements the stack pointer and then stores the source operand on the top of the stack.
Command Parameters[edit]
Parameter | Description |
---|---|
operand | The registery or data to push |
Examples[edit]
push ax
push eax
push rax