FS#8961 - Anti-Aliased Fonts.
[kugel-rb.git] / apps / codecs / lib / setjmp_cf.S
blobacc98c3f591a2c369000675c3df668df932d76a3
1 /* ANSI concatenation macros.  */
3 #define CONCAT1(a, b) CONCAT2(a, b)
4 #define CONCAT2(a, b) a ## b
6 /* Use the right prefix for global labels.  */
8 #define SYM(x) CONCAT1 (__USER_LABEL_PREFIX__, x)
10 /* Use the right prefix for registers.  */
12 #define REG(x) CONCAT1 (__REGISTER_PREFIX__, x)
14 #define d0 REG (d0)
15 #define d1 REG (d1)
16 #define d2 REG (d2)
17 #define d3 REG (d3)
18 #define d4 REG (d4)
19 #define d5 REG (d5)
20 #define d6 REG (d6)
21 #define d7 REG (d7)
22 #define a0 REG (a0)
23 #define a1 REG (a1)
24 #define a2 REG (a2)
25 #define a3 REG (a3)
26 #define a4 REG (a4)
27 #define a5 REG (a5)
28 #define a6 REG (a6)
29 #define fp REG (fp)
30 #define sp REG (sp)
33 .global SYM (setjmp)
34 .global SYM (longjmp)
36 SYM (setjmp):
37         moveal sp@(4),a0
38         movel sp@(0),a0@(12)
39         movel sp,a0@(8)
40         moveml d2-d7/a2-a6,a0@(20)
41         clrl d0
42         rts
44 SYM (longjmp):
45         moveal sp@(4),a0
46         movel sp@(8),d0
47         bne 1f
48         movel &1,d0
50         moveml a0@(20),d2-d7/a2-a6
51         moveal a0@(8),sp
52         movel a0@(12),sp@
53         rts
55 #ifdef M68881
56 .global SYM (setjmp_68881)
57 .global SYM (longjmp_68881)
59 SYM (setjmp_68881):
60         moveal sp@(4),a0
61         movel sp@(0),a0@(12)
62         movel sp,a0@(8)
63         moveml d2-d7/a2-a6,a0@(20)
64         fmovemx fp2-fp7,a0@(64)
65         clrl d0
66         rts
68 SYM (longjmp_68881):
69         moveal sp@(4),a0
70         fmovemx a0@(64),fp2-fp7
71         movel sp@(8),d0
72         bne 1f
73         movel &1,d0
75         moveml a0@(20),d2-d7/a2-a6
76         moveal a0@(8),sp
77         movel a0@(12),sp@
78         rts
79 #endif