home *** CD-ROM | disk | FTP | other *** search
- asm(".text ;" /* doing this in c is very hard */
- ".even ;"
- ".globl _setjmp ;"
- "_setjmp: ;"
- " movel sp@(4),a0 ;" /* get address of jmp_buf */
- " movel sp@,a0@+ ;" /* store returnaddress */
- " moveml #0xfcfc,a0@;" /* store all registers except scratch */
- " moveq #0,d0 ;" /* return 0 */
- " rts ;");
-