scc

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

longjmp.s (149B)


      1 	.file   "longjmp.s"
      2 
      3 	.text
      4 	.globl	longjmp
      5 longjmp:
      6 	ldmia	r0, {r4-r11, sp, lr}
      7 
      8 	// If r1 is 0 return 1 instead
      9 	movs	r0, r1
     10 	moveq	r0, #1
     11 	bx	lr