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

9 lines
486 B
Text

| # Exception handling
| # /* $begin prog9-yo */
0x000: 6300 | xorq %rax,%rax
0x002: 741600000000000000 | jne target # Not taken
0x00b: 30f00100000000000000 | irmovq $1, %rax # Fall through
0x015: 00 | halt
0x016: | target:
0x016: ff | .byte 0xFF # Invalid instruction code
| # /* $end prog9-yo */