1 /* This is a simple version of setjmp and longjmp for iq2000. */
4 /* int setjmp (jmp_buf); */
10 sw r18,8(r4) /* rs2 */
11 sw r19,12(r4) /* rs3 */
12 sw r20,16(r4) /* rs4 */
13 sw r21,20(r4) /* rs5 */
14 sw r22,24(r4) /* rs6 */
15 sw r23,28(r4) /* rs7 */
16 sw r30,32(r4) /* rs8 */
27 /* volatile void longjmp (jmp_buf, int); */
31 lw r16,0(r4) /* rs0 */
32 lw r17,4(r4) /* rs1 */
33 lw r18,8(r4) /* rs2 */
34 lw r19,12(r4) /* rs3 */
35 lw r20,16(r4) /* rs4 */
36 lw r21,20(r4) /* rs5 */
37 lw r22,24(r4) /* rs6 */
38 lw r23,28(r4) /* rs7 */
39 lw r30,32(r4) /* rs8 */