scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

_cerrno.s (133B)


      1 	.file	"_cerrno.s"
      2 	.globl	_cerrno
      3 
      4 _cerrno:
      5 	cmp	r0,#0
      6 	blt	1f
      7 	bx	lr
      8 
      9 1:
     10 	neg	r0,r0
     11 	ldr	r1,=errno
     12 	str	r0,[r1]
     13 	mov	r0,#-1
     14 	bx	lr