// W65816 setjmp/longjmp — saves SP, return address (24-bit), and DP. // jmp_buf is 8 bytes of opaque storage. #ifndef _SETJMP_H #define _SETJMP_H typedef unsigned char jmp_buf[8]; int setjmp(jmp_buf env); void longjmp(jmp_buf env, int val) __attribute__((noreturn)); #endif