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

9 lines
94 B
ArmAsm

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