76e6614f6968e2931dc1f1c76c751e7fd4d5dca3
[uccvend-snackrom.git] / ROM2 / vectors.s
1 /* M68HC11 Interrupt vectors table
2    Copyright (C) 1999 Free Software Foundation, Inc.
3    Written by Stephane Carrez ([email protected])    
4
5 This file is free software; you can redistribute it and/or modify it
6 under the terms of the GNU General Public License as published by the
7 Free Software Foundation; either version 2, or (at your option) any
8 later version.
9
10 In addition to the permissions in the GNU General Public License, the
11 Free Software Foundation gives you unlimited permission to link the
12 compiled version of this file with other programs, and to distribute
13 those programs without any restriction coming from the use of this
14 file.  (The General Public License restrictions do apply in other
15 respects; for example, they cover modification of the file, and
16 distribution when not linked into another program.)
17
18 This file is distributed in the hope that it will be useful, but
19 WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21 General Public License for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with this program; see the file COPYING.  If not, write to
25 the Free Software Foundation, 59 Temple Place - Suite 330,
26 Boston, MA 02111-1307, USA.  */
27
28         .sect .text
29         .globl _start
30         .globl sci_interrupt
31         .globl uart_interrupt
32
33 ;; Default interrupt handler.
34         .sect .text
35 def:
36         rti
37
38         .globl _debug_user_vectors
39 _debug_user_vectors = 0
40
41 ;; 
42 ;; Interrupt vectors are in a specific section that is
43 ;; mapped at 0xffc0. 
44 ;;
45         .sect .vectors
46         .globl vectors
47 vectors:
48         .word def               ; ffc0
49         .word def               ; ffc2
50         .word def               ; ffc4
51         .word def               ; ffc6
52         .word def               ; ffc8
53         .word def               ; ffca
54         .word def               ; ffcc
55         .word def               ; ffce
56         .word def               ; ffd0
57         .word def               ; ffd2
58         .word def               ; ffd4
59
60         ;; SCI
61         .word sci_interrupt     ; ffd6
62
63         ;; SPI
64         .word def               ; ffd8
65         .word def               ; ffda (PAII)
66         .word def               ; ffdc (PAOVI)
67         .word def               ; ffde (TOI)
68
69         ;; Timer Output Compare
70         .word def               ; ffe0
71         .word def               ; ffe2
72         .word def               ; ffe4
73         .word def               ; ffe6
74         .word def               ; ffe8
75
76         ;; Timer Input compare
77         .word def               ; ffea
78         .word def               ; ffec
79         .word def               ; ffee
80
81         ;;  Misc
82         .word rti               ; fff0 (RTII)
83         .word uart_interrupt    ; fff2 (IRQ)
84         .word def               ; fff4 (XIRQ)
85         .word def               ; fff6 (SWI)
86         .word def               ; fff8 (ILL)
87         .word _start            ; fffa (COP Failure)
88         .word _start            ; fffc (COP Clock monitor)
89         .word _start            ; fffe (reset)
90

UCC git Repository :: git.ucc.asn.au