newlib/libgloss/mn10300/trap.S

10 lines
91 B
ArmAsm
Raw Normal View History

2000-03-17 23:48:54 +01:00
.text
.global ___trap0
___trap0:
syscall
cmp 0,d0
beq .L0
mov d0,(_errno)
.L0:
rets