setjmp.s 271 B

1234567891011121314
  1. TEXT setjmp(SB), 1, $-8
  2. MOVL R30, (R0)
  3. MOVL R26, 4(R0)
  4. MOVQ $0, R0
  5. RET
  6. TEXT longjmp(SB), 1, $-8
  7. MOVL r+4(FP), R3
  8. BNE R3, ok /* ansi: "longjmp(0) => longjmp(1)" */
  9. MOVQ $1, R3 /* bless their pointed heads */
  10. ok: MOVL (R0), R30
  11. MOVL 4(R0), R26
  12. MOVL R3, R0
  13. RET