Projet_SETI_RISC-V/riscv-gnu-toolchain/newlib/libgloss/v850/trap.S
2023-03-06 14:48:14 +01:00

10 lines
130 B
ArmAsm

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