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

9 lines
216 B
Text

# 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 */