csci2021/ArchLab/archlab-handout/sim/y86-code/j-cc.ys

16 lines
276 B
Text
Raw Normal View History

2018-01-29 23:45:27 +00:00
irmovq $1, %rsi
irmovq $2, %rdi
irmovq $4, %rbp
irmovq $-32, %rax
irmovq $64, %rdx
subq %rdx,%rax
je target
nop
halt
target:
addq %rsi,%rdx
nop
nop
nop
halt