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

10 lines
216 B
Text
Raw Normal View History

2018-01-29 23:45:27 +00:00
# Exception handling
# /* $begin prog9-yo */
xorq %rax,%rax
jne target # Not taken
irmovq $1, %rax # Fall through
halt
target:
.byte 0xFF # Invalid instruction code
# /* $end prog9-yo */