Revision: | 1.2 |
Committed: | 2004-01-18T22:08:38Z (20 years, 7 months ago) by gbeauche |
Branch: | MAIN |
Changes since 1.1: | +14 -0 lines |
Log Message: | Handle (broken) Apple assembler. Make prologue/epilogue as macros as ';' is the comment delimiter for Darwin assembler. Increase stack pad by 16 bytes in EMUL_OP_PROC to accomodate LR saves in Darwin EmulOp |
# | User | Rev | Content |
---|---|---|---|
1 | gbeauche | 1.2 | #if (defined(__APPLE__) && defined(__MACH__)) |
2 | #define C_SYMBOL_NAME(X) _ ## X | ||
3 | #endif | ||
4 | #ifndef C_SYMBOL_NAME | ||
5 | #define C_SYMBOL_NAME(X) X | ||
6 | #endif | ||
7 | #ifndef ASM_GLOBAL_DIRECTIVE | ||
8 | #define ASM_GLOBAL_DIRECTIVE .globl | ||
9 | #endif | ||
10 | |||
11 | cebix | 1.1 | /* Register names */ |
12 | gbeauche | 1.2 | #if defined(__linux__) |
13 | cebix | 1.1 | #define r0 0 |
14 | #define r1 1 | ||
15 | #define r2 2 | ||
16 | #define r3 3 | ||
17 | #define r4 4 | ||
18 | #define r5 5 | ||
19 | #define r6 6 | ||
20 | #define r7 7 | ||
21 | #define r8 8 | ||
22 | #define r9 9 | ||
23 | #define r10 10 | ||
24 | #define r11 11 | ||
25 | #define r12 12 | ||
26 | #define r13 13 | ||
27 | #define r14 14 | ||
28 | #define r15 15 | ||
29 | #define r16 16 | ||
30 | #define r17 17 | ||
31 | #define r18 18 | ||
32 | #define r19 19 | ||
33 | #define r20 20 | ||
34 | #define r21 21 | ||
35 | #define r22 22 | ||
36 | #define r23 23 | ||
37 | #define r24 24 | ||
38 | #define r25 25 | ||
39 | #define r26 26 | ||
40 | #define r27 27 | ||
41 | #define r28 28 | ||
42 | #define r29 29 | ||
43 | #define r30 30 | ||
44 | #define r31 31 | ||
45 | gbeauche | 1.2 | #endif |
46 | cebix | 1.1 | |
47 | gbeauche | 1.2 | #if defined(__linux__) |
48 | cebix | 1.1 | #define f0 0 |
49 | #define f1 1 | ||
50 | #define f2 2 | ||
51 | #define f3 3 | ||
52 | #define f4 4 | ||
53 | #define f5 5 | ||
54 | #define f6 6 | ||
55 | #define f7 7 | ||
56 | #define f8 8 | ||
57 | #define f9 9 | ||
58 | #define f10 10 | ||
59 | #define f11 11 | ||
60 | #define f12 12 | ||
61 | #define f13 13 | ||
62 | #define f14 14 | ||
63 | #define f15 15 | ||
64 | #define f16 16 | ||
65 | #define f17 17 | ||
66 | #define f18 18 | ||
67 | #define f19 19 | ||
68 | #define f20 20 | ||
69 | #define f21 21 | ||
70 | #define f22 22 | ||
71 | #define f23 23 | ||
72 | #define f24 24 | ||
73 | #define f25 25 | ||
74 | #define f26 26 | ||
75 | #define f27 27 | ||
76 | #define f28 28 | ||
77 | #define f29 29 | ||
78 | #define f30 30 | ||
79 | #define f31 31 | ||
80 | gbeauche | 1.2 | #endif |