source: XOpenSparcT1/trunk/sw/test.c @ 18

Revision 18, 4.8 KB checked in by pntsvt00, 13 years ago (diff)

compilato us sorgente con architettura SPARC-V9

Line 
1int main() {
2 
3  // Fetch from ROM
4  asm("nop \n nop \n nop \n nop \n");
5 
6  // PA fff0000020
7  asm(".long 0x03000000");  // offset 0
8  asm(".long 0x05000100");  // offset 4
9  asm(".long 0x82106000");  // offset 8
10  asm(".long 0x8410a0c0");  // offset c
11 
12  // PA fff0000030
13  asm(".long 0x83287020");
14  asm(".long 0x84108001");
15  asm(".long 0x81c08000");
16  asm(".long 0x01000000");
17 
18  // Fetch from RAM
19  asm("nop \n nop \n nop \n nop \n");
20 
21  // PA 00000400c0
22  asm(".long 0xb5802005");
23  asm(".long 0xa2102000");
24  asm(".long 0x821020a9");
25  asm(".long 0x83287020");
26 
27  // PA 00000400d0
28  asm(".long 0xe2706000");
29  asm(".long 0xe2706040");
30  asm(".long 0xe2706080");
31  asm(".long 0xe27060c0");
32 
33  // PA 00000400e0
34  asm(".long 0xa2102000");
35  asm(".long 0x82102010");
36  asm(".long 0xe2f04840");
37  asm(".long 0xa2102003");
38 
39  // PA 00000400f0
40  asm(".long 0xe2f008a0");
41  asm(".long 0xa3480000");
42  asm(".long 0x819c6820");
43  asm(".long 0x87802025");
44 
45  // PA 0000040100
46  asm(".long 0xc0f023c0");
47  asm(".long 0xc0f023c8");
48  asm(".long 0xc0f023d0");
49  asm(".long 0xc0f023d8");
50 
51  // PA 0000040110
52  asm(".long 0xc0f023e0");
53  asm(".long 0xc0f023e8");
54  asm(".long 0xc0f023f0");
55  asm(".long 0xc0f023f8");
56 
57  // PA 0000040120
58  asm(".long 0x8f902000");
59  asm(".long 0xa1902000");
60  asm(".long 0x8d802000");
61  asm(".long 0x85802000");
62 
63  // PA 0000040130
64  asm(".long 0x87802000");
65  asm(".long 0x84102000");
66  asm(".long 0x89908000");
67  asm(".long 0x84102000");
68 
69  // PA 0000040140
70  asm(".long 0xb1808000");
71  asm(".long 0x84102001");
72  asm(".long 0x8528b03f");
73  asm(".long 0xaf808000");
74 
75  // PA 0000040150
76  asm(".long 0xb3808000");
77  asm(".long 0xbf988000");
78  asm(".long 0x81800000");
79  asm(".long 0x9190200f");
80 
81  // PA 0000040160
82  asm(".long 0x93902000");
83  asm(".long 0x95902006");
84  asm(".long 0x97902000");
85  asm(".long 0x9b902000");
86 
87  // PA 0000040170
88  asm(".long 0x99902007");
89  asm(".long 0x9d902007");
90  asm(".long 0x82102018");
91  asm(".long 0xc0f00a01");
92 
93  // PA 0000040180
94  asm(".long 0xc0f00b01");
95  asm(".long 0xa2102003");
96  asm(".long 0xe2f00960");
97  asm(".long 0xa2102003");
98 
99  // PA 0000040190
100  asm(".long 0x821020aa");
101  asm(".long 0x83287020");
102  asm(".long 0xe2706000");
103  asm(".long 0xe2706040");
104 
105  // PA 00000401a0
106  asm(".long 0xe2706080");
107  asm(".long 0xe27060c0");
108  asm(".long 0xa3468000");
109  asm(".long 0x03000007");
110 
111  // PA 00000401b0
112  asm(".long 0x82106300");
113  asm(".long 0xa20c4001");
114  asm(".long 0xa3347008");
115  asm(".long 0x03000000");
116 
117  // PA 00000401c0
118  asm(".long 0x05000130");
119  asm(".long 0x82106000");
120  asm(".long 0x8410a000");
121  asm(".long 0x83287020");
122 
123  // PA 00000401d0
124  asm(".long 0x84108001");
125  asm(".long 0xa32c7003");
126  asm(".long 0xc4588011");
127  asm(".long 0x82102080");
128 
129  // PA 00000401e0
130  asm(".long 0xc4f04b00");
131  asm(".long 0x2f000200");
132  asm(".long 0x8b9dc000");
133  asm(".long 0x21000000");
134 
135  // PA 00000401f0
136  asm(".long 0x03000130");
137  asm(".long 0xa0142000");
138  asm(".long 0x82106140");
139  asm(".long 0xa12c3020");
140 
141  // PA 0000040200
142  asm(".long 0x82104010");
143  asm(".long 0x8528b007");
144  asm(".long 0x82004002");
145  asm(".long 0xe2584000");
146 
147  // PA 0000040210
148  asm(".long 0xe2f006e0");
149  asm(".long 0xe2586008");
150  asm(".long 0xe2f007e0");
151  asm(".long 0xe2586010");
152 
153  // PA 0000040220
154  asm(".long 0xe2f006a0");
155  asm(".long 0xe2586020");
156  asm(".long 0xe2f006c0");
157  asm(".long 0xe2586018");
158 
159  // PA 0000040230
160  asm(".long 0xe2f007a0");
161  asm(".long 0xe2586028");
162  asm(".long 0xe2f007c0");
163  asm(".long 0xe2586040");
164 
165  // PA 0000040240
166  asm(".long 0xe2f00660");
167  asm(".long 0xe2586048");
168  asm(".long 0xe2f00760");
169  asm(".long 0xe2586050");
170 
171  // PA 0000040250
172  asm(".long 0xe2f00620");
173  asm(".long 0xe2586060");
174  asm(".long 0xe2f00640");
175  asm(".long 0xe2586058");
176 
177  // PA 0000040260
178  asm(".long 0xe2f00720");
179  asm(".long 0xe2586068");
180  asm(".long 0xe2f00740");
181  asm(".long 0x94102080");
182 
183  // PA 0000040270
184  asm(".long 0xc0f28ae0");
185  asm(".long 0xc0f28be0");
186  asm(".long 0xa2102008");
187  asm(".long 0xc0f44420");
188 
189  // PA 0000040280
190  asm(".long 0xa2102010");
191  asm(".long 0xc0f44420");
192  asm(".long 0xa210200f");
193  asm(".long 0xe2f008a0");
194 
195  // PA 0000040290
196  asm(".long 0x03000000");
197  asm(".long 0x05000510");
198  asm(".long 0x82106000");
199  asm(".long 0x8410a000");
200 
201  // PA 00000402a0
202  asm(".long 0x83287020");
203  asm(".long 0x84108001");
204  asm(".long 0x87480000");
205  asm(".long 0x8f902001");
206 
207  // PA 00000402b0
208  asm(".long 0x88102000");
209  asm(".long 0x83990000");
210  asm(".long 0x8f902000");
211  asm(".long 0x90102000");
212 
213  // PA 00000402c0
214  asm(".long 0x81c08000");
215  asm(".long 0x81982800");
216  asm(".long 0x01000000");
217  asm(".long 0x01000000");
218 
219  // PA 00000402d0
220  asm(".long 0x8210200f");
221  asm(".long 0xc2f008a0");
222  asm(".long 0xc0f00860");
223  asm(".long 0x83480000");
224 
225  // End
226  asm("nop \n nop \n nop \n nop \n");
227  return 0;
228 
229}
Note: See TracBrowser for help on using the repository browser.