1 2 3 4 5 6 7 8 9
.text .global ___trap0 ___trap0: syscall cmp 0,d0 beq .L0 mov d0,(_errno) .L0: rets