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

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [core/] [sim/] [rtl_sim/] [src/] [irq64.s43] - Blame information for rev 219

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

Line No. Rev Author Line
1 192 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
/*                 IRQ 1 to 32 FOR SYSTEM WITH 64 IRQs                       */
25
/*---------------------------------------------------------------------------*/
26
/* Test the some IRQs for RTL configuration with more than 16 IRQs:          */
27
/*                                                                           */
28
/*           - for 16 IRQ configuration:  test is skipped.                   */
29
/*           - for 32 IRQ configuration:  test is skipped.                   */
30
/*           - for 64 IRQ configuration:  will test IRQ 1 to 32.             */
31
/*                                                                           */
32
/*                                                                           */
33
/* Author(s):                                                                */
34
/*             - Olivier Girard,    olgirard@gmail.com                       */
35
/*                                                                           */
36
/*---------------------------------------------------------------------------*/
37
/* $Rev: 19 $                                                                */
38
/* $LastChangedBy: olivier.girard $                                          */
39
/* $LastChangedDate: 2009-08-04 23:47:15 +0200 (Tue, 04 Aug 2009) $          */
40
/*===========================================================================*/
41
 
42
.include "pmem_defs.asm"
43
 
44
.global main
45
 
46
        mov     #0x1234, r3
47
        mov     #0x1234, r4
48
        mov     #0x1234, r5
49
        mov     #0x1234, r6
50
        mov     #0x1234, r7
51
        mov     #0x1234, r8
52
        mov     #0x1234, r9
53
        mov     #0x1234, r10
54
        mov     #0x1234, r11
55
        mov     #0x1234, r12
56
        mov     #0x1234, r13
57
        mov     #0x1234, r14
58
main:
59
        # Test RESET vector
60
        #------------------------
61
        mov     #0x1000, r15
62
 
63
 
64
        # Test RETI instruction
65
        #------------------------
66
 
67
        # Pre-initialize stack
68
        mov             #DMEM_252, r1
69
        push #RETI_ROUTINE
70
        push            #0x010f
71
        mov     #0x0000, &0x0200
72
 
73
        # Run RETI test
74
        mov     #0x0000, r2
75
        mov     #0x0000, r5
76
        reti
77
end_of_reti_test:
78
 
79
        mov     #0x2000, r15
80
 
81
 
82
        # Test IRQ  0
83
        #-------------------------
84
 
85
        mov     #0x0008, r2  ; Enable interrupts
86
        mov     #0x0000, r6
87
        mov     #0xaaaa, r7
88
        mov     #0x5555, r8
89
        mov     #0x3000, r15
90
 
91
wait_irq00:
92
        cmp     #0x5678, r6
93
        jne     wait_irq00
94
 
95
        mov     #0x3001, r15
96
 
97
 
98
        # Test IRQ  1
99
        #-------------------------
100
 
101
        mov     #0x0008, r2  ; Enable interrupts
102
        mov     #0x0000, r6
103
        mov     #0xaaaa, r7
104
        mov     #0x5555, r8
105
        mov     #0x4000, r15
106
 
107
wait_irq01:
108
        cmp     #0x9abc, r6
109
        jne     wait_irq01
110
 
111
        mov     #0x4001, r15
112
 
113
 
114
        # Test IRQ  2
115
        #-------------------------
116
 
117
        mov     #0x0008, r2  ; Enable interrupts
118
        mov     #0x0000, r6
119
        mov     #0xaaaa, r7
120
        mov     #0x5555, r8
121
        mov     #0x5000, r15
122
 
123
wait_irq02:
124
        cmp     #0xdef1, r6
125
        jne     wait_irq02
126
 
127
        mov     #0x5001, r15
128
 
129
 
130
        # Test IRQ  3
131
        #-------------------------
132
 
133
        mov     #0x0008, r2  ; Enable interrupts
134
        mov     #0x0000, r6
135
        mov     #0xaaaa, r7
136
        mov     #0x5555, r8
137
        mov     #0x6000, r15
138
 
139
wait_irq03:
140
        cmp     #0x2345, r6
141
        jne     wait_irq03
142
 
143
        mov     #0x6001, r15
144
 
145
 
146
        # Test IRQ  4
147
        #-------------------------
148
 
149
        mov     #0x0008, r2  ; Enable interrupts
150
        mov     #0x0000, r6
151
        mov     #0xaaaa, r7
152
        mov     #0x5555, r8
153
        mov     #0x7000, r15
154
 
155
wait_irq04:
156
        cmp     #0x6789, r6
157
        jne     wait_irq04
158
 
159
        mov     #0x7001, r15
160
 
161
 
162
        # Test IRQ  5
163
        #-------------------------
164
 
165
        mov     #0x0008, r2  ; Enable interrupts
166
        mov     #0x0000, r6
167
        mov     #0xaaaa, r7
168
        mov     #0x5555, r8
169
        mov     #0x8000, r15
170
 
171
wait_irq05:
172
        cmp     #0xabcd, r6
173
        jne     wait_irq05
174
 
175
        mov     #0x8001, r15
176
 
177
 
178
        # Test IRQ  6
179
        #-------------------------
180
 
181
        mov     #0x0008, r2  ; Enable interrupts
182
        mov     #0x0000, r6
183
        mov     #0xaaaa, r7
184
        mov     #0x5555, r8
185
        mov     #0x9000, r15
186
 
187
wait_irq06:
188
        cmp     #0xef12, r6
189
        jne     wait_irq06
190
 
191
        mov     #0x9001, r15
192
 
193
 
194
        # Test IRQ  7
195
        #-------------------------
196
 
197
        mov     #0x0008, r2  ; Enable interrupts
198
        mov     #0x0000, r6
199
        mov     #0xaaaa, r7
200
        mov     #0x5555, r8
201
        mov     #0xa000, r15
202
 
203
wait_irq07:
204
        cmp     #0x3456, r6
205
        jne     wait_irq07
206
 
207
        mov     #0xa001, r15
208
 
209
 
210
        # Test IRQ  8
211
        #-------------------------
212
 
213
        mov     #0x0008, r2  ; Enable interrupts
214
        mov     #0x0000, r6
215
        mov     #0xaaaa, r7
216
        mov     #0x5555, r8
217
        mov     #0xb000, r15
218
 
219
wait_irq08:
220
        cmp     #0x789a, r6
221
        jne     wait_irq08
222
 
223
        mov     #0xb001, r15
224
 
225
 
226
        # Test IRQ  9
227
        #-------------------------
228
 
229
        mov     #0x0008, r2  ; Enable interrupts
230
        mov     #0x0000, r6
231
        mov     #0xaaaa, r7
232
        mov     #0x5555, r8
233
        mov     #0xc000, r15
234
 
235
wait_irq09:
236
        cmp     #0xbcde, r6
237
        jne     wait_irq09
238
 
239
        mov     #0xc001, r15
240
 
241
 
242
        # Test IRQ 10
243
        #-------------------------
244
 
245
        mov     #0x0008, r2  ; Enable interrupts
246
        mov     #0x0000, r6
247
        mov     #0xaaaa, r7
248
        mov     #0x5555, r8
249
        mov     #0xd000, r15
250
 
251
wait_irq10:
252
        cmp     #0xf123, r6
253
        jne     wait_irq10
254
 
255
        mov     #0xd001, r15
256
 
257
 
258
        # Test IRQ 11
259
        #-------------------------
260
 
261
        mov     #0x0008, r2  ; Enable interrupts
262
        mov     #0x0000, r6
263
        mov     #0xaaaa, r7
264
        mov     #0x5555, r8
265
        mov     #0xe000, r15
266
 
267
wait_irq11:
268
        cmp     #0x4567, r6
269
        jne     wait_irq11
270
 
271
        mov     #0xe001, r15
272
 
273
 
274
        # Test IRQ 12
275
        #-------------------------
276
 
277
        mov     #0x0008, r2  ; Enable interrupts
278
        mov     #0x0000, r6
279
        mov     #0xaaaa, r7
280
        mov     #0x5555, r8
281
        mov     #0xf000, r15
282
 
283
wait_irq12:
284
        cmp     #0x89ab, r6
285
        jne     wait_irq12
286
 
287
        mov     #0xf001, r15
288
 
289
 
290
        # Test IRQ 13
291
        #-------------------------
292
 
293
        mov     #0x0008, r2  ; Enable interrupts
294
        mov     #0x0000, r6
295
        mov     #0xaaaa, r7
296
        mov     #0x5555, r8
297
        mov     #0xf100, r15
298
 
299
wait_irq13:
300
        cmp     #0xcdef, r6
301
        jne     wait_irq13
302
 
303
        mov     #0xf101, r15
304
 
305
 
306
        # Test IRQ 14
307
        #-------------------------
308
 
309
        mov     #0x0008, r2  ; Enable interrupts
310
        mov     #0x0000, r6
311
        mov     #0xaaaa, r7
312
        mov     #0x5555, r8
313
        mov     #0xf200, r15
314
 
315
wait_irq14:
316
        cmp     #0xfedc, r6
317
        jne     wait_irq14
318
 
319
        mov     #0xf201, r15
320
 
321
 
322
        # Test IRQ 15
323
        #-------------------------
324
 
325
        mov     #0x0008, r2  ; Enable interrupts
326
        mov     #0x0000, r6
327
        mov     #0xaaaa, r7
328
        mov     #0x5555, r8
329
        mov     #0xf300, r15
330
 
331
wait_irq15:
332
        cmp     #0xba98, r6
333
        jne     wait_irq15
334
 
335
        mov     #0xf301, r15
336
 
337
 
338
        # Test IRQ 16
339
        #-------------------------
340
 
341
        mov     #0x0008, r2  ; Enable interrupts
342
        mov     #0x0000, r6
343
        mov     #0xaaaa, r7
344
        mov     #0x5555, r8
345
        mov     #0xf400, r15
346
 
347
wait_irq16:
348
        cmp     #0x7654, r6
349
        jne     wait_irq16
350
 
351
        mov     #0xf401, r15
352
 
353
 
354
        # Test IRQ 17
355
        #-------------------------
356
 
357
        mov     #0x0008, r2  ; Enable interrupts
358
        mov     #0x0000, r6
359
        mov     #0xaaaa, r7
360
        mov     #0x5555, r8
361
        mov     #0xf500, r15
362
 
363
wait_irq17:
364
        cmp     #0x3210, r6
365
        jne     wait_irq17
366
 
367
        mov     #0xf501, r15
368
 
369
 
370
        # Test IRQ 18
371
        #-------------------------
372
 
373
        mov     #0x0008, r2  ; Enable interrupts
374
        mov     #0x0000, r6
375
        mov     #0xaaaa, r7
376
        mov     #0x5555, r8
377
        mov     #0xf600, r15
378
 
379
wait_irq18:
380
        cmp     #0x0246, r6
381
        jne     wait_irq18
382
 
383
        mov     #0xf601, r15
384
 
385
 
386
        # Test IRQ 19
387
        #-------------------------
388
 
389
        mov     #0x0008, r2  ; Enable interrupts
390
        mov     #0x0000, r6
391
        mov     #0xaaaa, r7
392
        mov     #0x5555, r8
393
        mov     #0xf700, r15
394
 
395
wait_irq19:
396
        cmp     #0x1357, r6
397
        jne     wait_irq19
398
 
399
        mov     #0xf701, r15
400
 
401
 
402
        # Test IRQ 20
403
        #-------------------------
404
 
405
        mov     #0x0008, r2  ; Enable interrupts
406
        mov     #0x0000, r6
407
        mov     #0xaaaa, r7
408
        mov     #0x5555, r8
409
        mov     #0xf800, r15
410
 
411
wait_irq20:
412
        cmp     #0x8ace, r6
413
        jne     wait_irq20
414
 
415
        mov     #0xf801, r15
416
 
417
 
418
        # Test IRQ 21
419
        #-------------------------
420
 
421
        mov     #0x0008, r2  ; Enable interrupts
422
        mov     #0x0000, r6
423
        mov     #0xaaaa, r7
424
        mov     #0x5555, r8
425
        mov     #0xf900, r15
426
 
427
wait_irq21:
428
        cmp     #0x9bdf, r6
429
        jne     wait_irq21
430
 
431
        mov     #0xf901, r15
432
 
433
 
434
        # Test IRQ 22
435
        #-------------------------
436
 
437
        mov     #0x0008, r2  ; Enable interrupts
438
        mov     #0x0000, r6
439
        mov     #0xaaaa, r7
440
        mov     #0x5555, r8
441
        mov     #0xfa00, r15
442
 
443
wait_irq22:
444
        cmp     #0xfdb9, r6
445
        jne     wait_irq22
446
 
447
        mov     #0xfa01, r15
448
 
449
 
450
        # Test IRQ 23
451
        #-------------------------
452
 
453
        mov     #0x0008, r2  ; Enable interrupts
454
        mov     #0x0000, r6
455
        mov     #0xaaaa, r7
456
        mov     #0x5555, r8
457
        mov     #0xfb00, r15
458
 
459
wait_irq23:
460
        cmp     #0xeca8, r6
461
        jne     wait_irq23
462
 
463
        mov     #0xfb01, r15
464
 
465
 
466
        # Test IRQ 24
467
        #-------------------------
468
 
469
        mov     #0x0008, r2  ; Enable interrupts
470
        mov     #0x0000, r6
471
        mov     #0xaaaa, r7
472
        mov     #0x5555, r8
473
        mov     #0xfc00, r15
474
 
475
wait_irq24:
476
        cmp     #0x7531, r6
477
        jne     wait_irq24
478
 
479
        mov     #0xfc01, r15
480
 
481
 
482
        # Test IRQ 25
483
        #-------------------------
484
 
485
        mov     #0x0008, r2  ; Enable interrupts
486
        mov     #0x0000, r6
487
        mov     #0xaaaa, r7
488
        mov     #0x5555, r8
489
        mov     #0xfd00, r15
490
 
491
wait_irq25:
492
        cmp     #0x6420, r6
493
        jne     wait_irq25
494
 
495
        mov     #0xfd01, r15
496
 
497
 
498
        # Test IRQ 26
499
        #-------------------------
500
 
501
        mov     #0x0008, r2  ; Enable interrupts
502
        mov     #0x0000, r6
503
        mov     #0xaaaa, r7
504
        mov     #0x5555, r8
505
        mov     #0xfe00, r15
506
 
507
wait_irq26:
508
        cmp     #0x0134, r6
509
        jne     wait_irq26
510
 
511
        mov     #0xfe01, r15
512
 
513
 
514
        # Test IRQ 27
515
        #-------------------------
516
 
517
        mov     #0x0008, r2  ; Enable interrupts
518
        mov     #0x0000, r6
519
        mov     #0xaaaa, r7
520
        mov     #0x5555, r8
521
        mov     #0xff00, r15
522
 
523
wait_irq27:
524
        cmp     #0x1245, r6
525
        jne     wait_irq27
526
 
527
        mov     #0xff01, r15
528
 
529
 
530
        # Test IRQ 28
531
        #-------------------------
532
 
533
        mov     #0x0008, r2  ; Enable interrupts
534
        mov     #0x0000, r6
535
        mov     #0xaaaa, r7
536
        mov     #0x5555, r8
537
        mov     #0xff10, r15
538
 
539
wait_irq28:
540
        cmp     #0x2356, r6
541
        jne     wait_irq28
542
 
543
        mov     #0xff11, r15
544
 
545
 
546
        # Test IRQ 29
547
        #-------------------------
548
 
549
        mov     #0x0008, r2  ; Enable interrupts
550
        mov     #0x0000, r6
551
        mov     #0xaaaa, r7
552
        mov     #0x5555, r8
553
        mov     #0xff20, r15
554
 
555
wait_irq29:
556
        cmp     #0x3467, r6
557
        jne     wait_irq29
558
 
559
        mov     #0xff21, r15
560
 
561
 
562
        # Test IRQ 30
563
        #-------------------------
564
 
565
        mov     #0x0008, r2  ; Enable interrupts
566
        mov     #0x0000, r6
567
        mov     #0xaaaa, r7
568
        mov     #0x5555, r8
569
        mov     #0xff30, r15
570
 
571
wait_irq30:
572
        cmp     #0x4578, r6
573
        jne     wait_irq30
574
 
575
        mov     #0xff31, r15
576
 
577
 
578
        # Test IRQ 31
579
        #-------------------------
580
 
581
        mov     #0x0008, r2  ; Enable interrupts
582
        mov     #0x0000, r6
583
        mov     #0xaaaa, r7
584
        mov     #0x5555, r8
585
        mov     #0xff40, r15
586
 
587
wait_irq31:
588
        cmp     #0x5689, r6
589
        jne     wait_irq31
590
 
591
        mov     #0xff41, r15
592
 
593
 
594
        /* ----------------------    END OF TEST   --------------- */
595
end_of_test:
596
        nop
597
        br #0xffff
598
 
599
 
600
 
601
        /* ----------------------    FUNCTIONS    --------------- */
602
 
603
RETI_ROUTINE:
604
        mov #0x1234, r5
605
        jmp end_of_reti_test
606
 
607
 
608
IRQ00_ROUTINE:
609
        mov #0x5678, r6
610
        mov      r2, r7 ; Save Status register
611
        mov      r1, r8 ; Save Stack register
612
        reti
613
 
614
IRQ01_ROUTINE:
615
        mov #0x9abc, r6
616
        mov      r2, r7 ; Save Status register
617
        mov      r1, r8 ; Save Stack register
618
        reti
619
 
620
IRQ02_ROUTINE:
621
        mov #0xdef1, r6
622
        mov      r2, r7 ; Save Status register
623
        mov      r1, r8 ; Save Stack register
624
        reti
625
 
626
IRQ03_ROUTINE:
627
        mov #0x2345, r6
628
        mov      r2, r7 ; Save Status register
629
        mov      r1, r8 ; Save Stack register
630
        reti
631
 
632
IRQ04_ROUTINE:
633
        mov #0x6789, r6
634
        mov      r2, r7 ; Save Status register
635
        mov      r1, r8 ; Save Stack register
636
        reti
637
 
638
IRQ05_ROUTINE:
639
        mov #0xabcd, r6
640
        mov      r2, r7 ; Save Status register
641
        mov      r1, r8 ; Save Stack register
642
        reti
643
 
644
IRQ06_ROUTINE:
645
        mov #0xef12, r6
646
        mov      r2, r7 ; Save Status register
647
        mov      r1, r8 ; Save Stack register
648
        reti
649
 
650
IRQ07_ROUTINE:
651
        mov #0x3456, r6
652
        mov      r2, r7 ; Save Status register
653
        mov      r1, r8 ; Save Stack register
654
        reti
655
 
656
IRQ08_ROUTINE:
657
        mov #0x789a, r6
658
        mov      r2, r7 ; Save Status register
659
        mov      r1, r8 ; Save Stack register
660
        reti
661
 
662
IRQ09_ROUTINE:
663
        mov #0xbcde, r6
664
        mov      r2, r7 ; Save Status register
665
        mov      r1, r8 ; Save Stack register
666
        reti
667
 
668
IRQ10_ROUTINE:
669
        mov #0xf123, r6
670
        mov      r2, r7 ; Save Status register
671
        mov      r1, r8 ; Save Stack register
672
        reti
673
 
674
IRQ11_ROUTINE:
675
        mov #0x4567, r6
676
        mov      r2, r7 ; Save Status register
677
        mov      r1, r8 ; Save Stack register
678
        reti
679
 
680
IRQ12_ROUTINE:
681
        mov #0x89ab, r6
682
        mov      r2, r7 ; Save Status register
683
        mov      r1, r8 ; Save Stack register
684
        reti
685
 
686
IRQ13_ROUTINE:
687
        mov #0xcdef, r6
688
        mov      r2, r7 ; Save Status register
689
        mov      r1, r8 ; Save Stack register
690
        reti
691
 
692
IRQ14_ROUTINE:
693
        mov #0xfedc, r6
694
        mov      r2, r7 ; Save Status register
695
        mov      r1, r8 ; Save Stack register
696
        reti
697
 
698
IRQ15_ROUTINE:
699
        mov #0xba98, r6
700
        mov      r2, r7 ; Save Status register
701
        mov      r1, r8 ; Save Stack register
702
        reti
703
 
704
IRQ16_ROUTINE:
705
        mov #0x7654, r6
706
        mov      r2, r7 ; Save Status register
707
        mov      r1, r8 ; Save Stack register
708
        reti
709
 
710
IRQ17_ROUTINE:
711
        mov #0x3210, r6
712
        mov      r2, r7 ; Save Status register
713
        mov      r1, r8 ; Save Stack register
714
        reti
715
 
716
IRQ18_ROUTINE:
717
        mov #0x0246, r6
718
        mov      r2, r7 ; Save Status register
719
        mov      r1, r8 ; Save Stack register
720
        reti
721
 
722
IRQ19_ROUTINE:
723
        mov #0x1357, r6
724
        mov      r2, r7 ; Save Status register
725
        mov      r1, r8 ; Save Stack register
726
        reti
727
 
728
IRQ20_ROUTINE:
729
        mov #0x8ace, r6
730
        mov      r2, r7 ; Save Status register
731
        mov      r1, r8 ; Save Stack register
732
        reti
733
 
734
IRQ21_ROUTINE:
735
        mov #0x9bdf, r6
736
        mov      r2, r7 ; Save Status register
737
        mov      r1, r8 ; Save Stack register
738
        reti
739
 
740
IRQ22_ROUTINE:
741
        mov #0xfdb9, r6
742
        mov      r2, r7 ; Save Status register
743
        mov      r1, r8 ; Save Stack register
744
        reti
745
 
746
IRQ23_ROUTINE:
747
        mov #0xeca8, r6
748
        mov      r2, r7 ; Save Status register
749
        mov      r1, r8 ; Save Stack register
750
        reti
751
 
752
IRQ24_ROUTINE:
753
        mov #0x7531, r6
754
        mov      r2, r7 ; Save Status register
755
        mov      r1, r8 ; Save Stack register
756
        reti
757
 
758
IRQ25_ROUTINE:
759
        mov #0x6420, r6
760
        mov      r2, r7 ; Save Status register
761
        mov      r1, r8 ; Save Stack register
762
        reti
763
 
764
IRQ26_ROUTINE:
765
        mov #0x0134, r6
766
        mov      r2, r7 ; Save Status register
767
        mov      r1, r8 ; Save Stack register
768
        reti
769
 
770
IRQ27_ROUTINE:
771
        mov #0x1245, r6
772
        mov      r2, r7 ; Save Status register
773
        mov      r1, r8 ; Save Stack register
774
        reti
775
 
776
IRQ28_ROUTINE:
777
        mov #0x2356, r6
778
        mov      r2, r7 ; Save Status register
779
        mov      r1, r8 ; Save Stack register
780
        reti
781
 
782
IRQ29_ROUTINE:
783
        mov #0x3467, r6
784
        mov      r2, r7 ; Save Status register
785
        mov      r1, r8 ; Save Stack register
786
        reti
787
 
788
IRQ30_ROUTINE:
789
        mov #0x4578, r6
790
        mov      r2, r7 ; Save Status register
791
        mov      r1, r8 ; Save Stack register
792
        reti
793
 
794
IRQ31_ROUTINE:
795
        mov #0x5689, r6
796
        mov      r2, r7 ; Save Status register
797
        mov      r1, r8 ; Save Stack register
798
        reti
799
 
800
        nop
801
        nop
802
        nop
803
        nop
804
        nop
805
 
806
 
807
 
808
        /* ----------------------         INTERRUPT VECTORS  --------------- */
809
.section .vectors64, "a"
810
.word IRQ00_ROUTINE     ; Interrupt  0 (lowest priority)    
811
.word IRQ01_ROUTINE     ; Interrupt  1                      
812
.word IRQ02_ROUTINE     ; Interrupt  2                      
813
.word IRQ03_ROUTINE     ; Interrupt  3                      
814
.word IRQ04_ROUTINE     ; Interrupt  4                      
815
.word IRQ05_ROUTINE     ; Interrupt  5                      
816
.word IRQ06_ROUTINE     ; Interrupt  6                      
817
.word IRQ07_ROUTINE     ; Interrupt  7                      
818
.word IRQ08_ROUTINE     ; Interrupt  8                      
819
.word IRQ09_ROUTINE     ; Interrupt  9                      
820
.word IRQ10_ROUTINE     ; Interrupt 10                      
821
.word IRQ11_ROUTINE     ; Interrupt 11                      
822
.word IRQ12_ROUTINE     ; Interrupt 12                      
823
.word IRQ13_ROUTINE     ; Interrupt 13                      
824
.word IRQ14_ROUTINE     ; Interrupt 14                      
825
.word IRQ15_ROUTINE     ; Interrupt 15                      
826
.word IRQ16_ROUTINE     ; Interrupt 16                      
827
.word IRQ17_ROUTINE     ; Interrupt 17                      
828
.word IRQ18_ROUTINE     ; Interrupt 18                      
829
.word IRQ19_ROUTINE     ; Interrupt 19                      
830
.word IRQ20_ROUTINE     ; Interrupt 20                      
831
.word IRQ21_ROUTINE     ; Interrupt 21                      
832
.word IRQ22_ROUTINE     ; Interrupt 22                      
833
.word IRQ23_ROUTINE     ; Interrupt 23                      
834
.word IRQ24_ROUTINE     ; Interrupt 24                      
835
.word IRQ25_ROUTINE     ; Interrupt 25                      
836
.word IRQ26_ROUTINE     ; Interrupt 26                      
837
.word IRQ27_ROUTINE     ; Interrupt 27                      
838
.word IRQ28_ROUTINE     ; Interrupt 28                      
839
.word IRQ29_ROUTINE     ; Interrupt 29                      
840
.word IRQ30_ROUTINE     ; Interrupt 30                      
841
.word IRQ31_ROUTINE     ; Interrupt 31                      
842
 
843
.section .vectors32, "a"
844
.word end_of_test       ; Interrupt 32                      
845
.word end_of_test       ; Interrupt 33                      
846
.word end_of_test       ; Interrupt 34                      
847
.word end_of_test       ; Interrupt 35                      
848
.word end_of_test       ; Interrupt 36                      
849
.word end_of_test       ; Interrupt 37                      
850
.word end_of_test       ; Interrupt 38                      
851
.word end_of_test       ; Interrupt 39                      
852
.word end_of_test       ; Interrupt 40                      
853
.word end_of_test       ; Interrupt 41                      
854
.word end_of_test       ; Interrupt 42                      
855
.word end_of_test       ; Interrupt 43                      
856
.word end_of_test       ; Interrupt 44                      
857
.word end_of_test       ; Interrupt 45                      
858
.word end_of_test       ; Interrupt 46                      
859
.word end_of_test       ; Interrupt 47                      
860
 
861
.section .vectors, "a"
862
.word end_of_test       ; Interrupt 48                      
863
.word end_of_test       ; Interrupt 49                      
864
.word end_of_test       ; Interrupt 50                      
865
.word end_of_test       ; Interrupt 51                      
866
.word end_of_test       ; Interrupt 52                      
867
.word end_of_test       ; Interrupt 53                      
868
.word end_of_test       ; Interrupt 54                      
869
.word end_of_test       ; Interrupt 55                      
870
.word end_of_test       ; Interrupt 56                      
871
.word end_of_test       ; Interrupt 57                      
872
.word end_of_test       ; Interrupt 58                      Watchdog timer
873
.word end_of_test       ; Interrupt 59                      
874
.word end_of_test       ; Interrupt 60                      
875
.word end_of_test       ; Interrupt 61                      
876
.word end_of_test       ; Interrupt 62                      NMI
877
.word main              ; Interrupt 63 (highest priority)   RESET

powered by: WebSVN 2.1.0

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