newlib-cygwin/libgloss/mn10200/trap.S

10 lines
94 B
ArmAsm
Raw Normal View History

2000-03-18 06:48:54 +08:00
.text
.global ___trap0
___trap0:
syscall
cmp 0,d0
beq noerr
mov d0,(_errno)
noerr:
rts