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

9 lines
182 B
Text
Raw Normal View History

2018-01-29 23:45:27 +00:00
# prog5: Load/use hazard
irmovq $128,%rdx
irmovq $3,%rcx
rmmovq %rcx, 0(%rdx)
irmovq $10,%rbx
mrmovq 0(%rdx), %rax # Load %rax
addq %rbx,%rax # Use %rax
halt