PUSHL PUSH LONG
|
Purpose |
push source operand onto stack |
|
Format |
opcode src.rl |
|
Operation |
-(SP) ß src; |
|
Condition codes |
N ß src LSS 0; Z ß src EQL 0; V ß 0: C ß C; |
|
Exceptions |
None |
|
Operation codes |
DD PUSHL Push Long |
|
Description |
The long word source operand is pushed on the stack. |
|
Notes |
PUSHL is equivalent to MOVL src, -(SP), but is shorter. |
Example 1
The following program pushes the number 100 to the stack, and then reads it from there. r1 will contain 100 at the end of this program.
.text
main: .word 0
pushl $100
movl (sp), r1
pushl r1
pushal format
calls $2, .printf
pushl $0
calls $1, .exit
format: .asciz "R1 is %d\n"