csci2021/ArchLab/archlab-handout/sim/y86-code/poptest.ys

7 lines
209 B
Text
Raw Normal View History

2018-01-29 23:45:27 +00:00
# Test of Pop semantics for Y86-64
irmovq $0x100,%rsp # Initialize stack pointer
irmovq $0xABCD,%rax
pushq %rax # Put known value on stack
popq %rsp # Either get 0xABCD, or 0xfc
halt