Final workings
[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 ;; RTI interrupt handler
43         .sect .text
44 rti:
45         jsr chime
46         rti
47
48 ;; 
49 ;; Interrupt vectors are in a specific section that is
50 ;; mapped at 0xffc0. 
51 ;;
52         .sect .vectors
53         .globl vectors
54 vectors:
55         .word def               ; ffc0
56         .word def               ; ffc2
57         .word def               ; ffc4
58         .word def               ; ffc6
59         .word def               ; ffc8
60         .word def               ; ffca
61         .word def               ; ffcc
62         .word def               ; ffce
63         .word def               ; ffd0
64         .word def               ; ffd2
65         .word def               ; ffd4
66
67         ;; SCI
68         .word sci_interrupt     ; ffd6
69
70         ;; SPI
71         .word def               ; ffd8
72         .word def               ; ffda (PAII)
73         .word def               ; ffdc (PAOVI)
74         .word def               ; ffde (TOI)
75
76         ;; Timer Output Compare
77         .word def               ; ffe0
78         .word def               ; ffe2
79         .word def               ; ffe4
80         .word def               ; ffe6
81         .word def               ; ffe8
82
83         ;; Timer Input compare
84         .word def               ; ffea
85         .word def               ; ffec
86         .word def               ; ffee
87
88         ;;  Misc
89         .word rti               ; fff0 (RTII)
90         .word uart_interrupt    ; fff2 (IRQ)
91         .word def               ; fff4 (XIRQ)
92         .word def               ; fff6 (SWI)
93         .word def               ; fff8 (ILL)
94         .word _start            ; fffa (COP Failure)
95         .word _start            ; fffc (COP Clock monitor)
96         .word _start            ; fffe (reset)
97

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