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

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