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

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