source: buchla-68k/orig/lib/INCLUDE/SETJMP.H@ f40d52b

Last change on this file since f40d52b was 3ae31e9, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Imported original source code.

  • Property mode set to 100755
File size: 1.0 KB
Line 
1/*
2 =============================================================================
3 setjmp.h -- header for setjmp() and longjmp() functions
4 Version 1 -- 1987-06-11 -- D.N. Lynx Crowe
5
6 Registers a0 and d0 are assumed to be scratch registers,
7 and are not saved by these functions.
8
9 Register d0 is usually used as the return value register.
10 Exception: Motorola C uses a0 for the return value if it's a pointer.
11
12 This is true of most C compilers for the 68000, including:
13 Digital Research / Alcyon, Lattice, Aztec / Manx, Greenhills, Motorola.
14 =============================================================================
15*/
16
17struct JMP_BUF { /* setjmp() / longjmp() environment structure */
18
19 long jmpret; /* return address */
20
21 long jmp_d1; /* data registers */
22 long jmp_d2;
23 long jmp_d3;
24 long jmp_d4;
25 long jmp_d5;
26 long jmp_d6;
27 long jmp_d7;
28
29 long jmp_a1; /* address registers */
30 long jmp_a2;
31 long jmp_a3;
32 long jmp_a4;
33 long jmp_a5;
34 long jmp_a6;
35 long jmp_a7;
36};
37
38typedef struct JMP_BUF jmp_buf;
Note: See TracBrowser for help on using the repository browser.