examples/AppliSlave_HCS12/vectors.s
changeset 93 16c8ceea8f18
parent 92 0d84d95790d9
child 94 bdf4c86be6b2
equal deleted inserted replaced
92:0d84d95790d9 93:16c8ceea8f18
     1 ;;/* M68HC11 Interrupt vectors table
       
     2 ;;   Copyright (C) 1999 Free Software Foundation, Inc.
       
     3 ;;   Written by Stephane Carrez (stcarrez@worldnet.fr)	
       
     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 ;; Modified by  Francis Dupin for MC9S12DP256.  April 2003
       
    29 ;; francis.dupin@inrets.fr
       
    30 ;;*/
       
    31 
       
    32 	.sect .text
       
    33 	.globl _start
       
    34         .globl can4HdlTra
       
    35  	.globl can4HdlRcv
       
    36 	.globl can4HdlErr
       
    37 	.globl can4HdlWup
       
    38 	.globl can3HdlTra
       
    39  	.globl can3HdlRcv
       
    40 	.globl can3HdlErr
       
    41  	.globl can3HdlWup
       
    42 	.globl can2HdlTra
       
    43  	.globl can2HdlRcv
       
    44 	.globl can2HdlErr
       
    45  	.globl can2HdlWup
       
    46         .globl can1HdlTra
       
    47  	.globl can1HdlRcv
       
    48 	.globl can1HdlErr
       
    49  	.globl can1HdlWup
       
    50 	.globl can0HdlTra
       
    51 	.globl can0HdlRcv
       
    52 	.globl can0HdlErr
       
    53  	.globl can0HdlWup
       
    54 	.globl timerOvflHdl 
       
    55 	.globl timer3IC 
       
    56 	.globl timer2IC
       
    57 	.globl timer1IC
       
    58 	.globl timer0IC
       
    59 	  
       
    60 ;; Default interrupt handler.
       
    61 	.sect .text
       
    62 def:
       
    63 	rti
       
    64 
       
    65 ;; 
       
    66 ;; Interrupt vectors are in a specific section that is
       
    67 ;; mapped at 0xff00. For the example program, the reset handler
       
    68 ;; points to the generic crt0 entry point.
       
    69 ;;
       
    70 	.sect .vectors
       
    71 	.globl vectors
       
    72 vectors:
       
    73        
       
    74         .word def               ; ff00
       
    75         .word def               ; ff02
       
    76         .word def               ; ff04
       
    77         .word def               ; ff06
       
    78         .word def               ; ff08
       
    79         .word def               ; ff0a
       
    80         .word def               ; ff0c
       
    81         .word def               ; ff0e
       
    82         .word def               ; ff10
       
    83         .word def               ; ff12
       
    84         .word def               ; ff14
       
    85         .word def               ; ff16
       
    86         .word def               ; ff18
       
    87         .word def               ; ff1a
       
    88         .word def               ; ff1c
       
    89         .word def               ; ff1e
       
    90         .word def               ; ff20
       
    91         .word def               ; ff22
       
    92         .word def               ; ff24
       
    93         .word def               ; ff26
       
    94         .word def               ; ff28
       
    95         .word def               ; ff2a
       
    96         .word def               ; ff2c
       
    97         .word def               ; ff2e
       
    98         .word def               ; ff30
       
    99         .word def               ; ff32
       
   100         .word def               ; ff34
       
   101         .word def               ; ff36
       
   102         .word def               ; ff38
       
   103         .word def               ; ff3a
       
   104         .word def               ; ff3c
       
   105         .word def               ; ff3e
       
   106         .word def               ; ff40
       
   107         .word def               ; ff42
       
   108         .word def               ; ff44
       
   109         .word def               ; ff46
       
   110         .word def               ; ff48
       
   111         .word def               ; ff4a
       
   112         .word def               ; ff4c
       
   113         .word def               ; ff4e
       
   114         .word def               ; ff50
       
   115         .word def               ; ff52
       
   116         .word def               ; ff54
       
   117         .word def               ; ff56
       
   118         .word def               ; ff58
       
   119         .word def               ; ff5a
       
   120         .word def               ; ff5c
       
   121         .word def               ; ff5e
       
   122         .word def               ; ff60
       
   123         .word def               ; ff62
       
   124         .word def               ; ff64
       
   125         .word def               ; ff66
       
   126         .word def               ; ff68
       
   127         .word def               ; ff6a
       
   128         .word def               ; ff6c
       
   129         .word def               ; ff6e
       
   130         .word def               ; ff70
       
   131         .word def               ; ff72
       
   132         .word def               ; ff74
       
   133         .word def               ; ff76
       
   134         .word def               ; ff78
       
   135         .word def               ; ff7a
       
   136         .word def               ; ff7c
       
   137         .word def               ; ff7e
       
   138         .word def               ; ff80
       
   139         .word def               ; ff82
       
   140         .word def               ; ff84
       
   141         .word def               ; ff86
       
   142         .word def               ; ff88
       
   143         .word def               ; ff8a
       
   144         .word def               ; ff8c
       
   145         .word def               ; ff8e
       
   146 	
       
   147 	;; MSCAN
       
   148         .word can4HdlTra	; ff90 (MSCAN4 Transmit) 
       
   149         .word can4HdlRcv	; ff92 (MSCAN4 Receive)  
       
   150         .word can4HdlErr	; ff94 (MSCAN4 Errors)   
       
   151         .word can4HdlWup	; ff96 (MSCAN4 Wake up)  
       
   152         .word can3HdlTra	; ff98 (MSCAN3 Transmit) 
       
   153         .word can3HdlRcv	; ff9a (MSCAN3 Receive)  
       
   154         .word can3HdlErr	; ff9c (MSCAN3 Errors)   
       
   155         .word can3HdlWup	; ff9e (MSCAN3 Wake up)  
       
   156         .word can2HdlTra	; ffa0 (MSCAN2 Transmit) 
       
   157         .word can2HdlRcv	; ffa2 (MSCAN2 Receive)  
       
   158         .word can2HdlErr	; ffa4 (MSCAN2 Errors)   
       
   159         .word can2HdlWup	; ffa6 (MSCAN2 Wake up)  
       
   160         .word can1HdlTra	; ffa8 (MSCAN1 Transmit) 
       
   161         .word can1HdlRcv	; ffaa (MSCAN1 Receive)  
       
   162         .word can1HdlErr	; ffac (MSCAN1 Errors)   
       
   163         .word can1HdlWup	; ffae (MSCAN1 Wake up)  
       
   164         .word can0HdlTra	; ffb0 (MSCAN0 Transmit) 
       
   165 	.word can0HdlRcv	; ffb2 (MSCAN0 Receive)  
       
   166         .word can0HdlErr        ; ffb4 (MSCAN0 Errors)   
       
   167         .word can0HdlWup        ; ffb6 (MSCAN0 Wake up)      
       
   168 
       
   169       	.word def               ; ffb8     
       
   170         .word def               ; ffba 
       
   171         .word def               ; ffbc
       
   172         .word def               ; ffbe
       
   173 
       
   174 	.word def		; ffc0
       
   175 	.word def		; ffc2
       
   176 	.word def		; ffc4
       
   177 	.word def		; ffc6
       
   178 	.word def		; ffc8
       
   179 	.word def          	; ffca (Modulus Down Counter underflow)
       
   180 	.word def		; ffcc
       
   181 	.word def		; ffce
       
   182 	.word def		; ffd0
       
   183 	.word def		; ffd2
       
   184 	.word def		; ffd4
       
   185 
       
   186 	;; SCI
       
   187 	.word def		; ffd6
       
   188 
       
   189 	;; SPI
       
   190 	.word def						; ffd8
       
   191 	.word def						; ffda (PAII)
       
   192 	.word def						; ffdc (PAOVI)
       
   193 	.word def						;ffde (TOI)
       
   194 
       
   195 	;; Timer Output Compare
       
   196 	.word def		; ffe0 Timer Chanel 7
       
   197 	.word def		; ffe2 Timer Chanel 6
       
   198 	.word def		; ffe4 Timer Chanel 5
       
   199 	.word timer4Hdl         ; ffe6 Timer Chanel 4 used by Canopen
       
   200 	.word timer3Hdl		; ffe8 Timer Chanel 3 For the date
       
   201 	.word def		; ffea Timer Chanel 2
       
   202 	.word def		; ffec Timer Chanel 1
       
   203 	.word def		; ffee Timer Chanel 0
       
   204 
       
   205 	;;  Misc
       
   206 	.word def               ; fff0 (RTII)
       
   207 	.word def		; fff2 (IRQ)
       
   208 	.word def		; fff4 (XIRQ)
       
   209 	.word def               ; fff6 (SWI)
       
   210 	.word def		; fff8 (ILL)
       
   211 	.word def               ; fffa (COP Failure)
       
   212 	.word def		; fffc (COP Clock monitor)
       
   213 	.word _start		; fffe (reset)
       
   214