blob: cda7a20e25d5213ca278a5a860d1dc042d928847 [file] [log] [blame]
.text
.global ___trap0
___trap0:
syscall
cmp 0,d0
beq noerr
mov d0,(_errno)
noerr:
rts