Retro68/gcc/libgloss/mn10200/trap.S
2012-03-27 01:51:53 +02:00

10 lines
94 B
ArmAsm

.text
.global ___trap0
___trap0:
syscall
cmp 0,d0
beq noerr
mov d0,(_errno)
noerr:
rts