OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [newlib/] [libc/] [machine/] [h8300/] [defines.h] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
 
2
#define A0 r0
3
#define A0L r0l
4
#define A0H r0h
5
 
6
#define A1 r1
7
#define A1L r1l
8
#define A1H r1h
9
 
10
#define A2 r2
11
#define A2L r2l
12
#define A2H r2h
13
 
14
#define A3 r3
15
#define A3L r3l
16
#define A3H r3h
17
 
18
#define S0 r4
19
#define S0L r4l
20
#define S0H r4h
21
 
22
#define S1 r5
23
#define S1L r5l
24
#define S1H r5h
25
 
26
#define S2 r6
27
#define S2L r6l
28
#define S2H r6h
29
 
30
#ifdef __H8300__
31
 
32
#define MOVP    mov.w   /* pointers are 16 bits */
33
#define ADDP    add.w
34
#define CMPP    cmp.w
35
#define PUSHP   push
36
#define POPP    pop
37
 
38
#define A0P     r0
39
#define A1P     r1
40
#define A2P     r2
41
#define A3P     r3
42
#define S0P     r4
43
#define S1P     r5
44
#define S2P     r6
45
 
46
#endif /* __H8300__ */
47
 
48
#ifdef __H8300H__
49
 
50
#ifdef __NORMAL_MODE__
51
 
52
#define MOVP    mov.w   /* pointers are 16 bits */
53
#define ADDP    add.w
54
#define CMPP    cmp.w
55
#define PUSHP   push
56
#define POPP    pop
57
 
58
#define A0P     r0
59
#define A1P     r1
60
#define A2P     r2
61
#define A3P     r3
62
#define S0P     r4
63
#define S1P     r5
64
#define S2P     r6
65
 
66
#else /* !__NORMAL_MODE__ */
67
 
68
#define MOVP    mov.l   /* pointers are 32 bits */
69
#define ADDP    add.l
70
#define CMPP    cmp.l
71
#define PUSHP   push.l
72
#define POPP    pop.l
73
 
74
#define A0P     er0
75
#define A1P     er1
76
#define A2P     er2
77
#define A3P     er3
78
#define S0P     er4
79
#define S1P     er5
80
#define S2P     er6
81
 
82
#endif /* !__NORMAL_MODE__ */
83
 
84
#define A0E     e0
85
#define A1E     e1
86
#define A2E     e2
87
#define A3E     e3
88
 
89
#endif /* __H8300H__ */
90
 
91
#if defined (__H8300S__) || defined (__H8300SX__)
92
 
93
#ifdef __NORMAL_MODE__
94
 
95
#define MOVP    mov.w   /* pointers are 16 bits */
96
#define ADDP    add.w
97
#define CMPP    cmp.w
98
#define PUSHP   push
99
#define POPP    pop
100
 
101
#define A0P     r0
102
#define A1P     r1
103
#define A2P     r2
104
#define A3P     r3
105
#define S0P     r4
106
#define S1P     r5
107
#define S2P     r6
108
 
109
#else /* !__NORMAL_MODE__ */
110
 
111
#define MOVP    mov.l   /* pointers are 32 bits */
112
#define ADDP    add.l
113
#define CMPP    cmp.l
114
#define PUSHP   push.l
115
#define POPP    pop.l
116
 
117
#define A0P     er0
118
#define A1P     er1
119
#define A2P     er2
120
#define A3P     er3
121
#define S0P     er4
122
#define S1P     er5
123
#define S2P     er6
124
 
125
#endif /* !__NORMAL_MODE__ */
126
 
127
#define A0E     e0
128
#define A1E     e1
129
#define A2E     e2
130
#define A3E     e3
131
 
132
 
133
#ifdef __NORMAL_MODE__
134
#define LEN(X) X
135
#else
136
#define LEN(X) e##X
137
#endif
138
#endif /* __H8300S__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.