csci2021/ArchLab/archlab-handout/sim/y86-code/prog10.ys
Michael Zhang 1fa36db752
f
2018-01-29 17:45:27 -06:00

7 lines
315 B
Text

# prog10
irmovq $1,%rax
xorq %rsp,%rsp # Set stack pointer to 0 and CC to 100
pushq %rax # Attempt to write to 0xfffffffffffffff8
addq %rax,%rax # (Should not be executed) Would set CC to 000
irmovq $2, %rax # Not executed
irmovq $3, %rax # Not executed