/***********************************************************************
* Exception Vector Table for ColdFire MCF52233 Processor             *
**********************************************************************
 Generated by ColdFire Initialisation Utility 2.11.2
 Thu Mar 25 18:18:39 2010

 MicroAPL Ltd makes no warranties in respect of the suitability
 of this code for any particular purpose, and accepts
 no liability for any loss arising out of its use. The person or
 persons making use of this file must make the final evaluation
 as to its suitability and correctness for a particular application.
;
*/
    .global _VECTOR_TABLE
  

    .extern __SP_INIT
    .extern _asm_startmeup
    .extern _asm_exception_handler
    .extern _handler_uart0_int

    .text

; Offset 0x00000000: Exception Vector Table (1024 bytes)
;
; Note: Initial PC is hard-coded to 0x418, which is the address of the "_start"
; label below. This ensures that the initial address is correct even if the
; boot Flash is not linked at address 0x00000000 (i.e. Flash is relocated
; after boot).


_VECTOR_TABLE:
    .long 0x0                                 ;   0 : Initial SP must be set by startup code
    .long 0x418                               ;   1 : Initial PC
    .long _asm_exception_handler              ;   2 : Access Error
    .long _asm_exception_handler              ;   3 : Address Error
    .long _asm_exception_handler              ;   4 : Illegal Instruction
    .long _asm_exception_handler              ;   5 : Divide-By-Zero
    .long _asm_exception_handler              ;   6 : Reserved
    .long _asm_exception_handler              ;   7 : Reserved
    .long _asm_exception_handler              ;   8 : Privilege Violation
    .long _asm_exception_handler              ;   9 : Trace
    .long _asm_exception_handler              ;  10 : Unimplemented A-Line Opcode
    .long _asm_exception_handler              ;  11 : Unimplemented F-Line Opcode
    .long _asm_exception_handler              ;  12 : Debug Interrupt
    .long _asm_exception_handler              ;  13 : Reserved
    .long _asm_exception_handler              ;  14 : Format Error
    .long _asm_exception_handler              ;  15 : Uninitialized Interrupt
    .long _asm_exception_handler              ;  16 : Reserved
    .long _asm_exception_handler              ;  17 : Reserved
    .long _asm_exception_handler              ;  18 : Reserved
    .long _asm_exception_handler              ;  19 : Reserved
    .long _asm_exception_handler              ;  20 : Reserved
    .long _asm_exception_handler              ;  21 : Reserved
    .long _asm_exception_handler              ;  22 : Reserved
    .long _asm_exception_handler              ;  23 : Reserved
    .long _asm_exception_handler              ;  24 : Spurious Interrupt
    .long _asm_exception_handler              ;  25 : Reserved
    .long _asm_exception_handler              ;  26 : Reserved
    .long _asm_exception_handler              ;  27 : Reserved
    .long _asm_exception_handler              ;  28 : Reserved
    .long _asm_exception_handler              ;  29 : Reserved
    .long _asm_exception_handler              ;  30 : Reserved
    .long _asm_exception_handler              ;  31 : Reserved
    .long _asm_exception_handler              ;  32 : Trap #0
    .long _asm_exception_handler              ;  33 : Trap #1
    .long _asm_exception_handler              ;  34 : Trap #2
    .long _asm_exception_handler              ;  35 : Trap #3
    .long _asm_exception_handler              ;  36 : Trap #4
    .long _asm_exception_handler              ;  37 : Trap #5
    .long _asm_exception_handler              ;  38 : Trap #6
    .long _asm_exception_handler              ;  39 : Trap #7
    .long _asm_exception_handler              ;  40 : Trap #8
    .long _asm_exception_handler              ;  41 : Trap #9
    .long _asm_exception_handler              ;  42 : Trap #10
    .long _asm_exception_handler              ;  43 : Trap #11
    .long _asm_exception_handler              ;  44 : Trap #12
    .long _asm_exception_handler              ;  45 : Trap #13
    .long _asm_exception_handler              ;  46 : Trap #14
    .long _asm_exception_handler              ;  47 : Trap #15
    .long _asm_exception_handler              ;  48 : Reserved
    .long _asm_exception_handler              ;  49 : Reserved
    .long _asm_exception_handler              ;  50 : Reserved
    .long _asm_exception_handler              ;  51 : Reserved
    .long _asm_exception_handler              ;  52 : Reserved
    .long _asm_exception_handler              ;  53 : Reserved
    .long _asm_exception_handler              ;  54 : Reserved
    .long _asm_exception_handler              ;  55 : Reserved
    .long _asm_exception_handler              ;  56 : Reserved
    .long _asm_exception_handler              ;  57 : Reserved
    .long _asm_exception_handler              ;  58 : Reserved
    .long _asm_exception_handler              ;  59 : Reserved
    .long _asm_exception_handler              ;  60 : Reserved
    .long _asm_exception_handler              ;  61 : Unsupported Instruction
    .long _asm_exception_handler              ;  62 : Reserved
    .long _asm_exception_handler              ;  63 : Reserved
    .long _asm_exception_handler              ;  64 : Reserved
    .long _asm_exception_handler              ;  65 : External interrupt /IRQ1
    .long _asm_exception_handler              ;  66 : External interrupt /IRQ2
    .long _asm_exception_handler              ;  67 : External interrupt /IRQ3
    .long _asm_exception_handler              ;  68 : External interrupt /IRQ4
    .long _asm_exception_handler              ;  69 : External interrupt /IRQ5
    .long _asm_exception_handler              ;  70 : External interrupt /IRQ6
    .long _asm_exception_handler              ;  71 : External interrupt /IRQ7
    .long _asm_exception_handler              ;  72 : Software watchdog timeout
    .long _asm_exception_handler              ;  73 : DMA Channel 0 transfer complete
    .long _asm_exception_handler              ;  74 : DMA Channel 1 transfer complete
    .long _asm_exception_handler              ;  75 : DMA Channel 2 transfer complete
    .long _asm_exception_handler              ;  76 : DMA Channel 3 transfer complete
    .long _handler_uart0_int                  ;  77 : UART0 interrupt
    .long _asm_exception_handler              ;  78 : UART1 interrupt
    .long _asm_exception_handler              ;  79 : UART2 interrupt
    .long _asm_exception_handler              ;  80 : Reserved
    .long _asm_exception_handler              ;  81 : I²C interrupt
    .long _asm_exception_handler              ;  82 : QSPI interrupt
    .long _asm_exception_handler              ;  83 : DMA timer 0 capture/reference event
    .long _asm_exception_handler              ;  84 : DMA timer 1 capture/reference event
    .long _asm_exception_handler              ;  85 : DMA timer 2 capture/reference event
    .long _asm_exception_handler              ;  86 : DMA timer 3 capture/reference event
    .long _asm_exception_handler              ;  87 : Ethernet transmit frame interrupt
    .long _asm_exception_handler              ;  88 : Ethernet transmit buffer interrupt
    .long _asm_exception_handler              ;  89 : Ethernet transmit FIFO underrun
    .long _asm_exception_handler              ;  90 : Ethernet collision retry limit
    .long _asm_exception_handler              ;  91 : Ethernet receive frame interrupt
    .long _asm_exception_handler              ;  92 : Ethernet receive buffer interrupt
    .long _asm_exception_handler              ;  93 : Ethernet MII interrupt
    .long _asm_exception_handler              ;  94 : Ethernet late collision interrupt
    .long _asm_exception_handler              ;  95 : Ethernet heartbeat error
    .long _asm_exception_handler              ;  96 : Ethernet graceful stop complete
    .long _asm_exception_handler              ;  97 : Ethernet bus error
    .long _asm_exception_handler              ;  98 : Ethernet babbling transmit error
    .long _asm_exception_handler              ;  99 : Ethernet babbling receive error
    .long _asm_exception_handler              ; 100 : Ethernet PHY interrupt
    .long _asm_exception_handler              ; 101 : Reserved
    .long _asm_exception_handler              ; 102 : Reserved
    .long _asm_exception_handler              ; 103 : Reserved
    .long _asm_exception_handler              ; 104 : Reserved
    .long _asm_exception_handler              ; 105 : GPT timer overflow
    .long _asm_exception_handler              ; 106 : GPT pulse accumulator input
    .long _asm_exception_handler              ; 107 : GPT pulse accumulator overflow
    .long _asm_exception_handler              ; 108 : GPT channel 0
    .long _asm_exception_handler              ; 109 : GPT channel 1
    .long _asm_exception_handler              ; 110 : GPT channel 2
    .long _asm_exception_handler              ; 111 : GPT channel 3
    .long _asm_exception_handler              ; 112 : Low voltage detect
    .long _asm_exception_handler              ; 113 : ADC end of scan A
    .long _asm_exception_handler              ; 114 : ADC end of scan B
    .long _asm_exception_handler              ; 115 : ADC zero crossing or error limit
    .long _asm_exception_handler              ; 116 : PWM interrupt
    .long _asm_exception_handler              ; 117 : Reserved
    .long _asm_exception_handler              ; 118 : Reserved
    .long _asm_exception_handler              ; 119 : PIT 0 interrupt
    .long _asm_exception_handler              ; 120 : PIT 1 interrupt
    .long _asm_exception_handler              ; 121 : Reserved
    .long _asm_exception_handler              ; 122 : Reserved
    .long _asm_exception_handler              ; 123 : Flash buffers empty
    .long _asm_exception_handler              ; 124 : Flash command complete
    .long _asm_exception_handler              ; 125 : Flash protection violation
    .long _asm_exception_handler              ; 126 : Flash access error
    .long _asm_exception_handler              ; 127 : RTC interrupt
    .long _asm_exception_handler              ; 128 : Reserved
    .long _asm_exception_handler              ; 129 : Reserved
    .long _asm_exception_handler              ; 130 : Reserved
    .long _asm_exception_handler              ; 131 : Reserved
    .long _asm_exception_handler              ; 132 : Reserved
    .long _asm_exception_handler              ; 133 : Reserved
    .long _asm_exception_handler              ; 134 : Reserved
    .long _asm_exception_handler              ; 135 : Reserved
    .long _asm_exception_handler              ; 136 : Reserved
    .long _asm_exception_handler              ; 137 : Reserved
    .long _asm_exception_handler              ; 138 : Reserved
    .long _asm_exception_handler              ; 139 : Reserved
    .long _asm_exception_handler              ; 140 : Reserved
    .long _asm_exception_handler              ; 141 : Reserved
    .long _asm_exception_handler              ; 142 : Reserved
    .long _asm_exception_handler              ; 143 : Reserved
    .long _asm_exception_handler              ; 144 : Reserved
    .long _asm_exception_handler              ; 145 : Reserved
    .long _asm_exception_handler              ; 146 : Reserved
    .long _asm_exception_handler              ; 147 : Reserved
    .long _asm_exception_handler              ; 148 : Reserved
    .long _asm_exception_handler              ; 149 : Reserved
    .long _asm_exception_handler              ; 150 : Reserved
    .long _asm_exception_handler              ; 151 : Reserved
    .long _asm_exception_handler              ; 152 : Reserved
    .long _asm_exception_handler              ; 153 : Reserved
    .long _asm_exception_handler              ; 154 : Reserved
    .long _asm_exception_handler              ; 155 : Reserved
    .long _asm_exception_handler              ; 156 : Reserved
    .long _asm_exception_handler              ; 157 : Reserved
    .long _asm_exception_handler              ; 158 : Reserved
    .long _asm_exception_handler              ; 159 : Reserved
    .long _asm_exception_handler              ; 160 : External interrupt /IRQ8
    .long _asm_exception_handler              ; 161 : External interrupt /IRQ9
    .long _asm_exception_handler              ; 162 : External interrupt /IRQ10
    .long _asm_exception_handler              ; 163 : External interrupt /IRQ11
    .long _asm_exception_handler              ; 164 : External interrupt /IRQ12
    .long _asm_exception_handler              ; 165 : External interrupt /IRQ13
    .long _asm_exception_handler              ; 166 : External interrupt /IRQ14
    .long _asm_exception_handler              ; 167 : External interrupt /IRQ15
    .long _asm_exception_handler              ; 168 : Reserved
    .long _asm_exception_handler              ; 169 : Reserved
    .long _asm_exception_handler              ; 170 : Reserved
    .long _asm_exception_handler              ; 171 : Reserved
    .long _asm_exception_handler              ; 172 : Reserved
    .long _asm_exception_handler              ; 173 : Reserved
    .long _asm_exception_handler              ; 174 : Reserved
    .long _asm_exception_handler              ; 175 : Reserved
    .long _asm_exception_handler              ; 176 : Reserved
    .long _asm_exception_handler              ; 177 : Reserved
    .long _asm_exception_handler              ; 178 : Reserved
    .long _asm_exception_handler              ; 179 : Reserved
    .long _asm_exception_handler              ; 180 : Reserved
    .long _asm_exception_handler              ; 181 : Reserved
    .long _asm_exception_handler              ; 182 : Reserved
    .long _asm_exception_handler              ; 183 : Reserved
    .long _asm_exception_handler              ; 184 : Reserved
    .long _asm_exception_handler              ; 185 : Reserved
    .long _asm_exception_handler              ; 186 : Reserved
    .long _asm_exception_handler              ; 187 : Reserved
    .long _asm_exception_handler              ; 188 : Reserved
    .long _asm_exception_handler              ; 189 : Reserved
    .long _asm_exception_handler              ; 190 : Reserved
    .long _asm_exception_handler              ; 191 : Reserved
    .long _asm_exception_handler              ; 192 : Reserved
    .long _asm_exception_handler              ; 193 : Reserved
    .long _asm_exception_handler              ; 194 : Reserved
    .long _asm_exception_handler              ; 195 : Reserved
    .long _asm_exception_handler              ; 196 : Reserved
    .long _asm_exception_handler              ; 197 : Reserved
    .long _asm_exception_handler              ; 198 : Reserved
    .long _asm_exception_handler              ; 199 : Reserved
    .long _asm_exception_handler              ; 200 : Reserved
    .long _asm_exception_handler              ; 201 : Reserved
    .long _asm_exception_handler              ; 202 : Reserved
    .long _asm_exception_handler              ; 203 : Reserved
    .long _asm_exception_handler              ; 204 : Reserved
    .long _asm_exception_handler              ; 205 : Reserved
    .long _asm_exception_handler              ; 206 : Reserved
    .long _asm_exception_handler              ; 207 : Reserved
    .long _asm_exception_handler              ; 208 : Reserved
    .long _asm_exception_handler              ; 209 : Reserved
    .long _asm_exception_handler              ; 210 : Reserved
    .long _asm_exception_handler              ; 211 : Reserved
    .long _asm_exception_handler              ; 212 : Reserved
    .long _asm_exception_handler              ; 213 : Reserved
    .long _asm_exception_handler              ; 214 : Reserved
    .long _asm_exception_handler              ; 215 : Reserved
    .long _asm_exception_handler              ; 216 : Reserved
    .long _asm_exception_handler              ; 217 : Reserved
    .long _asm_exception_handler              ; 218 : Reserved
    .long _asm_exception_handler              ; 219 : Reserved
    .long _asm_exception_handler              ; 220 : Reserved
    .long _asm_exception_handler              ; 221 : Reserved
    .long _asm_exception_handler              ; 222 : Reserved
    .long _asm_exception_handler              ; 223 : Reserved
    .long _asm_exception_handler              ; 224 : Reserved
    .long _asm_exception_handler              ; 225 : Reserved
    .long _asm_exception_handler              ; 226 : Reserved
    .long _asm_exception_handler              ; 227 : Reserved
    .long _asm_exception_handler              ; 228 : Reserved
    .long _asm_exception_handler              ; 229 : Reserved
    .long _asm_exception_handler              ; 230 : Reserved
    .long _asm_exception_handler              ; 231 : Reserved
    .long _asm_exception_handler              ; 232 : Reserved
    .long _asm_exception_handler              ; 233 : Reserved
    .long _asm_exception_handler              ; 234 : Reserved
    .long _asm_exception_handler              ; 235 : Reserved
    .long _asm_exception_handler              ; 236 : Reserved
    .long _asm_exception_handler              ; 237 : Reserved
    .long _asm_exception_handler              ; 238 : Reserved
    .long _asm_exception_handler              ; 239 : Reserved
    .long _asm_exception_handler              ; 240 : Reserved
    .long _asm_exception_handler              ; 241 : Reserved
    .long _asm_exception_handler              ; 242 : Reserved
    .long _asm_exception_handler              ; 243 : Reserved
    .long _asm_exception_handler              ; 244 : Reserved
    .long _asm_exception_handler              ; 245 : Reserved
    .long _asm_exception_handler              ; 246 : Reserved
    .long _asm_exception_handler              ; 247 : Reserved
    .long _asm_exception_handler              ; 248 : Reserved
    .long _asm_exception_handler              ; 249 : Reserved
    .long _asm_exception_handler              ; 250 : Reserved
    .long _asm_exception_handler              ; 251 : Reserved
    .long _asm_exception_handler              ; 252 : Reserved
    .long _asm_exception_handler              ; 253 : Reserved
    .long _asm_exception_handler              ; 254 : Reserved
    .long _asm_exception_handler              ; 255 : Reserved

; Offset 0x00000400: CFM Flash Configuration Field
;
; For ColdFire processors with on-chip Flash, addresses 0x400 - 0x417
; are reserved array space used to determine the Flash module protection
; and access restrictions out of reset

KEY_UPPER:  .long 0x00000000
KEY_LOWER:  .long 0x00000000
CFMPROT:    .long 0x00000000
CFMSACC:    .long 0x00000000
CFMDACC:    .long 0x00000000
CFMSEC:     .long 0x00000000

; Offset 0x00000418: Initial PC
;
; If you change the offset of the '_start' label, make sure you also
; change the corresponding entry for the initial PC in the
; vector table above

_start:
        move.w   #0x2700,sr
        bra      _asm_startmeup

