Retro68/gcc/newlib/libc/sys/sysnecv850/trap.S
2012-03-27 01:51:53 +02:00

11 lines
130 B
ArmAsm

.text
.global ___trap0
___trap0:
trap 31
tst r11,r11
bz .L0
movhi hi(_errno),r0,r6
st.w r11,lo(_errno)[r6]
.L0:
jmp [r31]