7 lines
298 B
Text
7 lines
298 B
Text
# Test of Push semantics for Y86-64
|
|
irmovq $0x100,%rsp # Initialize stack pointer
|
|
rrmovq %rsp,%rax # Save stack pointer
|
|
pushq %rsp # Push the stack pointer (old or new?)
|
|
popq %rdx # Get it back
|
|
subq %rdx,%rax # Compute difference. Either 0 (old) or 4 (new).
|
|
halt
|