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

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [core/] [sim/] [rtl_sim/] [src/] [two-op_add.s43] - Blame information for rev 2

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 olivier.gi
/*===========================================================================*/
2
/* Copyright (C) 2001 Authors                                                */
3
/*                                                                           */
4
/* This source file may be used and distributed without restriction provided */
5
/* that this copyright statement is not removed from the file and that any   */
6
/* derivative work contains the original copyright notice and the associated */
7
/* disclaimer.                                                               */
8
/*                                                                           */
9
/* This source file is free software; you can redistribute it and/or modify  */
10
/* it under the terms of the GNU Lesser General Public License as published  */
11
/* by the Free Software Foundation; either version 2.1 of the License, or    */
12
/* (at your option) any later version.                                       */
13
/*                                                                           */
14
/* This source is distributed in the hope that it will be useful, but WITHOUT*/
15
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or     */
16
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public       */
17
/* License for more details.                                                 */
18
/*                                                                           */
19
/* You should have received a copy of the GNU Lesser General Public License  */
20
/* along with this source; if not, write to the Free Software Foundation,    */
21
/* Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA        */
22
/*                                                                           */
23
/*===========================================================================*/
24
/*                 TWO-OPERAND ARITHMETIC: ADD INSTRUCTION                   */
25
/*---------------------------------------------------------------------------*/
26
/* Test the ADD instruction with all addressing modes                        */
27
/*===========================================================================*/
28
 
29
 
30
.global main
31
 
32
main:
33
        /* ---------------------- INITIALIZE REGISTERS --------------------- */
34
        mov     #0x2222, r2
35
        mov     #0x3333, r3
36
        mov     #0x4444, r4
37
        mov     #0x5555, r5
38
        mov     #0x6666, r6
39
        mov     #0x7777, r7
40
        mov     #0x8888, r8
41
        mov     #0x9999, r9
42
        mov     #0xaaaa, r10
43
        mov     #0xbbbb, r11
44
        mov     #0xcccc, r12
45
        mov     #0xdddd, r13
46
        mov     #0xeeee, r14
47
 
48
        mov     #0x1000, r15
49
 
50
 
51
        /* ---------------------- TEST WHEN SOURCE IS Rn ------------------- */
52
.set   Rn_EDE,  (__data_start+0x0012)
53
.set   Rn_TONY, 0x0214
54
 
55
        mov     #0x4444, r4
56
        mov     #0x5555, r5
57
        add          r4, r5        ;# Add r4+r5 (0x4444+0x5555=0x9999)
58
 
59
        mov     #0x000a, r4
60
        add          r4, r0
61
        nop
62
        nop
63
        nop
64
        mov     #0x1234, r4        ;# Make sure the jump is taken
65
test_Rn_PC:
66
 
67
        mov     #0x2222, &0x0210
68
        mov     #0x0200, r6
69
        mov     #0x3333, r7
70
        add          r7, 16(r6)    ;# Write 0x2222+0x3333=0x5555 to memory @0x0210
71
 
72
        mov     #0x4444, &0x0212
73
        mov     #0x5678, r7
74
        add          r7, Rn_EDE    ;# Write 0x4444+0x5678=0x9abc to memory @0x0212
75
 
76
        mov     #0x5555, &0x0214
77
        mov     #0x1234, r8
78
        add          r8, &Rn_TONY  ;# Write 0x5555+0x1234=0x6789 to memory @0x0214
79
 
80
        mov     #0x2000, r15
81
 
82
 
83
        /* ---------------------- TEST WHEN SOURCE IS @Rn ------------------ */
84
.set   aRn_EDE,  (__data_start+0x0012)
85
.set   aRn_TONY, 0x0214
86
 
87
        mov     #0x0200, r4
88
        mov     #0x1111, &0x0200
89
        mov     #0x6666, r5
90
        add         @r4, r5        ;# Add @r4+r5 (0x1111+0x6666=0x7777)
91
 
92
        mov     #0x0200, r4
93
        mov     #0x000a, &0x0200
94
        add         @r4, r0
95
        nop
96
        nop
97
        nop
98
        mov     #0x1234, r4        ;# Make sure the jump is taken
99
test_aRn_PC:
100
 
101
        mov     #0x1234, &0x020e
102
        mov     #0x5432, &0x0210
103
        mov     #0x0200, r6
104
        mov     #0x020e, r7
105
        add         @r7, 16(r6)    ;# Write 0x1234+0x5432=0x6666 to memory @0x0210
106
 
107
        mov     #0x5f12, &0x0200
108
        mov     #0x8e1c, &0x0212
109
        mov     #0x0200, r7
110
        add         @r7, aRn_EDE    ;# Write 0x5f12+0x8e1c=0xed2e to memory @0x0212
111
 
112
        mov     #0x3112, &0x0202
113
        mov     #0x1541, &0x0214
114
        mov     #0x0202, r8
115
        add         @r8, &aRn_TONY  ;# Write 0x3112+0x1541=0x4653 to memory @0x0214
116
 
117
        mov     #0x3000, r15
118
 
119
 
120
 
121
        /* ---------------------- TEST WHEN SOURCE IS @Rn+ ----------------- */
122
.set   aRni_EDE,  (__data_start+0x0012)
123
.set   aRni_TONY, 0x0214
124
 
125
        mov     #0x0200, r4
126
        mov     #0x2222, &0x0200
127
        mov     #0x8888, r5
128
        add        @r4+, r5         ;# Add @r4+r5 (0x2222+0x8888=0xaaaa)
129
 
130
        mov     #0x0204, r6
131
        mov     #0x000a, &0x0204
132
        add        @r6+, r0
133
        nop
134
        nop
135
        nop
136
        mov     #0x1234, r6         ;# Make sure the jump is taken
137
test_aRni_PC:
138
 
139
        mov     #0x1234, &0x020e
140
        mov     #0x5432, &0x0210
141
        mov     #0x0200, r8
142
        mov     #0x020e, r7
143
        add        @r7+, 16(r8)     ;# Write 0x1234+0x5432=0x6666 to memory @0x0210
144
 
145
        mov     #0x5f12, &0x0206
146
        mov     #0x8e1c, &0x0212
147
        mov     #0x0206, r8
148
        add        @r8+, aRni_EDE   ;# Write 0x5f12+0x8e1c=0xed2e to memory @0x0212
149
 
150
        mov     #0x3112, &0x0202
151
        mov     #0x1541, &0x0214
152
        mov     #0x0202, r9
153
        add        @r9+, &aRni_TONY ;# Write 0x3112+0x1541=0x4653 to memory @0x0214
154
 
155
        mov      #0x4000, r15
156
 
157
 
158
 
159
        /* ---------------------- TEST WHEN SOURCE IS #N ------------------- */
160
.set   N_EDE,  (__data_start+0x0010)
161
.set   N_TONY, 0x0206
162
 
163
        mov      #0x3210, r4
164
        add      #0x1234, r4         ;# Write 0x3210+0x1234=0x4444 to R4
165
 
166
        mov      #0x0000, r5
167
        add      #0x000a, r0
168
        nop
169
        nop
170
        nop
171
        mov      #0x1234, r5         ;# Make sure the jump is taken
172
test_N_PC:
173
 
174
        mov      #0x5432, &0x0230
175
        mov      #0x0200, r6
176
        add      #0x5a5a, 48(r6)     ;# Write 0x5432+0x5a5a=0xae8c to memory @0x0230
177
 
178
        mov      #0x4325, &0x0210
179
        add      #0x1a2b, N_EDE      ;# Write 0x4325+0x1a2b=0x5d50 to memory @0x0210
180
 
181
        mov      #0x3254, &0x0206
182
        add      #0x3c4d, &N_TONY    ;# Write 0x3254+0x3c4d=0x6ea1 to memory @0x0206
183
 
184
        mov      #0x5000, r15
185
 
186
 
187
        /* ---------------------- TEST WHEN SOURCE IS x(Rn) ---------------- */
188
.set   xRn_EDE,  (__data_start+0x0020)
189
.set   xRn_TONY, 0x0208
190
 
191
        mov      #0x8347, &0x0210
192
        mov      #0x1234, r5
193
        mov      #0x0200, r4
194
        add       16(r4), r5         ;# Write 0x8347+0x1234=0x957b to R5
195
 
196
        mov      #0x000a, &0x0208
197
        mov      #0x0200, r4
198
        mov      #0x1234, r6
199
        add        8(r4), r0
200
        nop
201
        nop
202
        nop
203
        nop
204
        mov      #0x0000, r6         ;# Make sure the jump is taken
205
test_xRn_PC:
206
 
207
        mov      #0x4241, &0x0210
208
        mov      #0x1535, &0x0214
209
        mov      #0x0200, r7
210
        mov      #0x0202, r8
211
        add       16(r7), 18(r8)     ;# Write 0x4241+0x1535=0x5776 to memory @0x214
212
 
213
        mov      #0x7238, &0x0204
214
        mov      #0x2143, &0x0220
215
        mov      #0x0200, r7
216
        add        4(r7), xRn_EDE    ;# Write 0x7238+0x2143=0x937b to memory @0x220
217
 
218
        mov      #0x98b2, &0x0216
219
        mov      #0x1432, &0x0208
220
        mov      #0x0200, r7
221
        add       22(r4), &xRn_TONY  ;# Write 0x0x98b2+0x1432=0xace4 to memory @0x208
222
 
223
        mov      #0x6000, r15
224
 
225
 
226
        /* ---------------------- TEST WHEN SOURCE IS 'EDE' ---------------- */
227
.set   EDE_EDE,  (__data_start+0x0016)
228
.set   EDE_TONY, 0x0212
229
 
230
.set   EDE_200,  (__data_start+0x0000)
231
.set   EDE_202,  (__data_start+0x0002)
232
.set   EDE_204,  (__data_start+0x0004)
233
.set   EDE_206,  (__data_start+0x0006)
234
.set   EDE_208,  (__data_start+0x0008)
235
 
236
        mov      #0xc3d6, &0x0200
237
        mov      #0x1234, &0x0204
238
        mov      #0x4321, r4
239
        add      EDE_200, r4          ;# Write 0xc3d6+0x4321=0x06f7 to R4
240
 
241
        mov      #0x000a, &0x0202
242
        mov      #0x1234, &0x0204
243
        mov      #0x3456, r6
244
        add      EDE_202, r0
245
        nop
246
        nop
247
        nop
248
        nop
249
        mov      #0x0000, r6          ;# Make sure the jump is taken
250
test_EDE_PC:
251
 
252
        mov      #0x0202, r8
253
        mov      #0xf712, &0x0204
254
        mov      #0x1234, &0x0214
255
        mov      #0x0000, &0x0208
256
        add      EDE_204, 18(r8)      ;# Write 0xf712+0x1234=0x0946 to memory @0x214
257
 
258
        mov      #0xb3a9, &0x0206
259
        mov      #0x058a, &0x0216
260
        mov      #0x1234, &0x0208
261
        add      EDE_206, EDE_EDE     ;# Write 0xb3a9+0x058a=0xb933 to memory @0x216
262
 
263
        mov      #0x837A, &0x0208
264
        mov      #0xA738, &0x0212
265
        mov      #0x1234, &0x020A
266
        add      EDE_208, &EDE_TONY   ;# Write 0x837A+0xA738=0x2ab2 to memory @0x212
267
 
268
        mov      #0x7000, r15
269
 
270
 
271
 
272
        /* ---------------------- TEST WHEN SOURCE IS '&EDE' --------------- */
273
.set   aEDE_EDE,  (__data_start+0x0018)
274
.set   aEDE_TONY, 0x0202
275
 
276
        mov      #0x23d4, &0x0200
277
        mov      #0x1234, &0x0202
278
        mov      #0x4321, r4
279
        add      &0x0200, r4          ;# Write 0x23d4+0x4321=0x66f5 to R4
280
 
281
        mov      #0x000a, &0x0202
282
        mov      #0x1234, &0x0204
283
        mov      #0x3456, r6
284
        add      &0x0202, r0
285
        nop
286
        nop
287
        nop
288
        nop
289
        mov      #0x0000, r6          ;# Make sure the jump is taken
290
test_aEDE_PC:
291
 
292
        mov      #0x0202, r7
293
        mov      #0x481c, &0x0204
294
        mov      #0x3ab5, &0x0214
295
        mov      #0x1234, &0x0206
296
        add      &0x0204, 18(r7)      ;# Write 0x481c+0x3ab5=0x82d1 to memory @0x214
297
 
298
        mov      #0x5c1f, &0x0206
299
        mov      #0x6e2f, &0x0218
300
        mov      #0x1234, &0x0208
301
        add      &0x0206, aEDE_EDE    ;# Write 0x5c1f+0x6e2f=0xca4e to memory @0x218
302
 
303
        mov      #0xc16e, &0x0208
304
        mov      #0x51ca, &0x0202
305
        mov      #0x1234, &0x020A
306
        add      &0x0208, &aEDE_TONY  ;# Write 0xc16e+0x51ca=0x1338 to memory @0x202
307
 
308
        mov      #0x8000, r15
309
 
310
 
311
        /* ---------------------- TEST WHEN SOURCE IS CONSTANT ------------- */
312
.set   CONST_EDE0,   (__data_start+0x0020)
313
.set   CONST_EDE1,   (__data_start+0x0022)
314
.set   CONST_EDE2,   (__data_start+0x0024)
315
.set   CONST_EDE4,   (__data_start+0x0026)
316
.set   CONST_EDE8,   (__data_start+0x0028)
317
.set   CONST_EDEm1,  (__data_start+0x002A)
318
 
319
.set   CONST_TONY0,  0x0230
320
.set   CONST_TONY1,  0x0232
321
.set   CONST_TONY2,  0x0234
322
.set   CONST_TONY4,  0x0236
323
.set   CONST_TONY8,  0x0238
324
.set   CONST_TONYm1, 0x023A
325
 
326
 
327
        mov      #0x4444, r4              ;# Initialize registers
328
        mov      #0x5555, r5
329
        mov      #0x6666, r6
330
        mov      #0x7777, r7
331
        mov      #0x8888, r8
332
        mov      #0x9999, r9
333
        add      #0x0000, r4              ;# Write 0x4444+0 to R4
334
        add      #0x0001, r5              ;# Write 0x5555+1 to R5
335
        add      #0x0002, r6              ;# Write 0x6666+2 to R6
336
        add      #0x0004, r7              ;# Write 0x7777+4 to R7
337
        add      #0x0008, r8              ;# Write 0x8888+8 to R8
338
        add      #0xffff, r9              ;# Write 0x9999-1 to R9
339
 
340
        mov      #0x1234, r11
341
        add      #0x0004, r0
342
        clr      r11
343
        clr      r11
344
        jmp      end_const_r0
345
        clr      r11
346
        clr      r11
347
end_const_r0:
348
 
349
        mov      #0x0202, r10
350
        mov      #0x4444, &0x0210         ;# Initialize Memory
351
        mov      #0x5555, &0x0212
352
        mov      #0x6666, &0x0214
353
        mov      #0x7777, &0x0216
354
        mov      #0x8888, &0x0218
355
        mov      #0x9999, &0x021A
356
        add      #0x0000, 14(r10)         ;# Move 0x4444+0 to memory @0x210
357
        add      #0x0001, 16(r10)         ;# Move 0x5555+1 to memory @0x212
358
        add      #0x0002, 18(r10)         ;# Move 0x6666+2 to memory @0x214
359
        add      #0x0004, 20(r10)         ;# Move 0x7777+4 to memory @0x216
360
        add      #0x0008, 22(r10)         ;# Move 0x8888+8 to memory @0x218
361
        add      #0xffff, 24(r10)         ;# Move 0x9999-1 to memory @0x21A
362
 
363
 
364
        mov      #0x4444, &0x0220         ;# Initialize Memory
365
        mov      #0x5555, &0x0222
366
        mov      #0x6666, &0x0224
367
        mov      #0x7777, &0x0226
368
        mov      #0x8888, &0x0228
369
        mov      #0x9999, &0x022A
370
        add      #0x0000, CONST_EDE0      ;# Move 0x4444+0 to memory @0x220
371
        add      #0x0001, CONST_EDE1      ;# Move 0x5555+1 to memory @0x222
372
        add      #0x0002, CONST_EDE2      ;# Move 0x6666+2 to memory @0x224
373
        add      #0x0004, CONST_EDE4      ;# Move 0x7777+4 to memory @0x226
374
        add      #0x0008, CONST_EDE8      ;# Move 0x8888+8 to memory @0x228
375
        add      #0xffff, CONST_EDEm1     ;# Move 0x9999-1 to memory @0x22A
376
 
377
        mov      #0x4444, &0x0230         ;# Initialize Memory
378
        mov      #0x5555, &0x0232
379
        mov      #0x6666, &0x0234
380
        mov      #0x7777, &0x0236
381
        mov      #0x8888, &0x0238
382
        mov      #0x9999, &0x023A
383
        add      #0x0000, &CONST_TONY0    ;# Move 0x4444+0 to memory @0x230
384
        add      #0x0001, &CONST_TONY1    ;# Move 0x5555+1 to memory @0x232
385
        add      #0x0002, &CONST_TONY2    ;# Move 0x6666+2 to memory @0x234
386
        add      #0x0004, &CONST_TONY4    ;# Move 0x7777+4 to memory @0x236
387
        add      #0x0008, &CONST_TONY8    ;# Move 0x8888+8 to memory @0x238
388
        add      #0xffff, &CONST_TONYm1   ;# Move 0x9999-1 to memory @0x23A
389
 
390
        mov      #0x9000, r15
391
 
392
 
393
        /* ------------------------------ TEST FLAGS ---------------------- */
394
 
395
        mov     #0x0000, r2        ;# V=0, N=0, Z=0, C=0
396
        mov     #0x0444, r4        ;#
397
        mov     #0x0555, r5        ;#
398
        add          r4, r5        ;# Add r4+r5 (0x0444+0x0555=0x0999)
399
        mov     #0xA000, r15
400
 
401
        mov     #0x0000, r2        ;# V=0, N=0, Z=0, C=1
402
        mov     #0x0011, r4        ;#
403
        mov     #0xfff0, r5        ;#
404
        add          r4, r5        ;# Add r4+r5 (0xfff0+0x0011=0x0001)
405
        mov     #0xA001, r15
406
 
407
        mov     #0x0000, r2        ;# V=0, N=0, Z=1, C=0
408
        mov     #0x0000, r4        ;#
409
        mov     #0x0000, r5        ;#
410
        add          r4, r5        ;# Add r4+r5 (0x0000+0x0000=0x0000)
411
        mov     #0xA002, r15
412
 
413
        mov     #0x0000, r2        ;# V=0, N=1, Z=0, C=0
414
        mov     #0xff00, r4        ;#
415
        mov     #0x0010, r5        ;#
416
        add          r4, r5        ;# Add r4+r5 (0xff00+0x0010=0xff10)
417
        mov     #0xA003, r15
418
 
419
        mov     #0x0000, r2        ;# V=1, N=1, Z=0, C=0
420
        mov     #0x7fff, r4        ;#
421
        mov     #0x0010, r5        ;#
422
        add          r4, r5        ;# Add r4+r5 (0x7fff+0x0010=0x800f)
423
        mov     #0xA004, r15
424
 
425
        mov     #0x0000, r2        ;# V=1, N=0, Z=0, C=1
426
        mov     #0xff00, r4        ;#
427
        mov     #0x8000, r5        ;#
428
        add          r4, r5        ;# Add r4+r5 (0xff00+0x8000=0x7f00)
429
        mov     #0xA005, r15
430
 
431
        /* ---------------- TEST WHEN SOURCE IS CONSTANT IN BYTE MODE ------ */
432
        #
433
        # NOTE: The following section would not fit in the smallest ROM
434
        #       configuration for the "two-op_add-b.s43" pattern.
435
        #       It is therefore executed here.
436
        #
437
.set   CONSTL_TONY0,  0x0250
438
.set   CONSTL_TONY1,  0x0252
439
.set   CONSTL_TONY2,  0x0254
440
.set   CONSTL_TONY4,  0x0256
441
.set   CONSTL_TONY8,  0x0258
442
.set   CONSTL_TONYm1, 0x025A
443
.set   CONSTH_TONY0,  0x025D
444
.set   CONSTH_TONY1,  0x025F
445
.set   CONSTH_TONY2,  0x0261
446
.set   CONSTH_TONY4,  0x0263
447
.set   CONSTH_TONY8,  0x0265
448
.set   CONSTH_TONYm1, 0x0267
449
 
450
        mov      #0xaa44, &0x0250         ;# Initialize Memory
451
        mov      #0xaa55, &0x0252
452
        mov      #0xaa66, &0x0254
453
        mov      #0xaa77, &0x0256
454
        mov      #0xaa35, &0x0258
455
        mov      #0xaa99, &0x025A
456
        mov      #0xaa55, &0x025C
457
        mov      #0xbb55, &0x025E
458
        mov      #0xcc55, &0x0260
459
        mov      #0xdd55, &0x0262
460
        mov      #0xee55, &0x0264
461
        mov      #0x3355, &0x0266
462
 
463
        add.b    #0x0000, &CONSTL_TONY0    ;# Move +0 to memory @0x250
464
        add.b    #0x0001, &CONSTL_TONY1    ;# Move +1 to memory @0x252
465
        add.b    #0x0002, &CONSTL_TONY2    ;# Move +2 to memory @0x254
466
        add.b    #0x0004, &CONSTL_TONY4    ;# Move +4 to memory @0x256
467
        add.b    #0x0008, &CONSTL_TONY8    ;# Move +8 to memory @0x258
468
        add.b    #0xffff, &CONSTL_TONYm1   ;# Move -1 to memory @0x25A
469
        add.b    #0x0000, &CONSTH_TONY0    ;# Move +0 to memory @0x25D
470
        add.b    #0x0001, &CONSTH_TONY1    ;# Move +1 to memory @0x25F
471
        add.b    #0x0002, &CONSTH_TONY2    ;# Move +2 to memory @0x261
472
        add.b    #0x0004, &CONSTH_TONY4    ;# Move +4 to memory @0x263
473
        add.b    #0x0008, &CONSTH_TONY8    ;# Move +8 to memory @0x265
474
        add.b    #0xffff, &CONSTH_TONYm1   ;# Move -1 to memory @0x267
475
 
476
        mov      #0xB000, r15
477
 
478
 
479
        /* ------------------ TEST FLAGS IN BYTE MODE --------------------- */
480
 
481
        mov     #0x0000, r2        ;# V=0, N=0, Z=0, C=0
482
        mov     #0xaa04, r4        ;#
483
        mov     #0x6605, r5        ;#
484
        add.b        r4, r5        ;# Add r4+r5 (0xaa04+0x6605=0x0009)
485
        mov     #0xC000, r15
486
 
487
        mov     #0x0000, r2        ;# V=0, N=0, Z=0, C=1
488
        mov     #0xaa11, r4        ;#
489
        mov     #0x66f0, r5        ;#
490
        add.b        r4, r5        ;# Add r4+r5 (0x0011+0x00f0=0x0001)
491
        mov     #0xC001, r15
492
 
493
        mov     #0x0000, r2        ;# V=0, N=0, Z=1, C=0
494
        mov     #0xaa00, r4        ;#
495
        mov     #0x6600, r5        ;#
496
        add.b        r4, r5        ;# Add r4+r5 (0x0000+0x0000=0x0000)
497
        mov     #0xC002, r15
498
 
499
        mov     #0x0000, r2        ;# V=0, N=1, Z=0, C=0
500
        mov     #0xaaf0, r4        ;#
501
        mov     #0x6603, r5        ;#
502
        add.b        r4, r5        ;# Add r4+r5 (0x00f0+0x0003=0x00f3)
503
        mov     #0xC003, r15
504
 
505
        mov     #0x0000, r2        ;# V=1, N=1, Z=0, C=0
506
        mov     #0x007f, r4        ;#
507
        mov     #0x0010, r5        ;#
508
        add.b        r4, r5        ;# Add r4+r5 (0x007f+0x0010=0x008f)
509
        mov     #0xC004, r15
510
 
511
        mov     #0x0000, r2        ;# V=1, N=0, Z=0, C=1
512
        mov     #0x00ff, r4        ;#
513
        mov     #0x0080, r5        ;#
514
        add.b        r4, r5        ;# Add r4+r5 (0x00ff+0x0080=0x007f)
515
        mov     #0xC005, r15
516
 
517
 
518
 
519
        /* ----------------------         END OF TEST        --------------- */
520
        mov      #0xD000, r15
521
end_of_test:
522
        nop
523
        br #0xffff
524
 
525
 
526
        /* ----------------------         INTERRUPT VECTORS  --------------- */
527
 
528
.section .vectors, "a"
529
.word end_of_test  ; Interrupt  0 (lowest priority)    
530
.word end_of_test  ; Interrupt  1                      
531
.word end_of_test  ; Interrupt  2                      
532
.word end_of_test  ; Interrupt  3                      
533
.word end_of_test  ; Interrupt  4                      
534
.word end_of_test  ; Interrupt  5                      
535
.word end_of_test  ; Interrupt  6                      
536
.word end_of_test  ; Interrupt  7                      
537
.word end_of_test  ; Interrupt  8                      
538
.word end_of_test  ; Interrupt  9                      
539
.word end_of_test  ; Interrupt 10                      Watchdog timer
540
.word end_of_test  ; Interrupt 11                      
541
.word end_of_test  ; Interrupt 12                      
542
.word end_of_test  ; Interrupt 13                      
543
.word end_of_test  ; Interrupt 14                      NMI
544
.word main         ; Interrupt 15 (highest priority)   RESET

powered by: WebSVN 2.1.0

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