fixed more binutils issues (newer gcc/libc)
[zpugcc/jano.git] / toolchain / gcc / libgloss / mn10200 / trap.S
blobcda7a20e25d5213ca278a5a860d1dc042d928847
1         .text
2         .global ___trap0
3 ___trap0:
4         syscall
5         cmp     0,d0
6         beq     noerr
7         mov     d0,(_errno)
8 noerr:
9         rts