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

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