-------------------------------------------------------------------------------
-- Module      = U2A_startup_PEn.850
-- Version     = E1.0.0g
-------------------------------------------------------------------------------
--                                  COPYRIGHT
-------------------------------------------------------------------------------
-- Copyright (c) 2019 by Renesas Electronics Europe GmbH,
--               a company of the Renesas Electronics Corporation
-------------------------------------------------------------------------------
-- Purpose:      Startup Code
--
-------------------------------------------------------------------------------
--
-- Warranty Disclaimer
--
-- Because the Product(s) is licensed free of charge, there is no warranty
-- of any kind whatsoever and expressly disclaimed and excluded by Renesas,
-- either expressed or implied, including but not limited to those for
-- non-infringement of intellectual property, merchantability and/or
-- fitness for the particular purpose.
-- Renesas shall not have any obligation to maintain, service or provide bug
-- fixes for the supplied Product(s) and/or the Application.
--
-- Each User is solely responsible for determining the appropriateness of
-- using the Product(s) and assumes all risks associated with its exercise
-- of rights under this Agreement, including, but not limited to the risks
-- and costs of program errors, compliance with applicable laws, damage to
-- or loss of data, programs or equipment, and unavailability or
-- interruption of operations.
--
-- Limitation of Liability
--
-- In no event shall Renesas be liable to the User for any incidental,
-- consequential, indirect, or punitive damage (including but not limited
-- to lost profits) regardless of whether such liability is based on breach
-- of contract, tort, strict liability, breach of warranties, failure of
-- essential purpose or otherwise and even if advised of the possibility of
-- such damages. Renesas shall not be liable for any services or products
-- provided by third party vendors, developers or consultants identified or
-- referred to the User by Renesas in connection with the Product(s) and/or
-- the Application.
--
-------------------------------------------------------------------------------
-- Environment:
--              Device:         702Z19EDBG
--              IDE:            GHS Multi V7.1.4 or later
-------------------------------------------------------------------------------

-------------------------------------------------------------------------------
-- Revision Control History:
-- E1.0.0g :   25th-Jun-2019    : Initial Version
-------------------------------------------------------------------------------

-------------------------------------------------------------------------------
-------------  Selection of external interrupt service handler
-------------  User modifiable section
-------------  Please uncomment the required interrupt service handler
-------------------------------------------------------------------------------
#include <Startup.inc>

-------------------------------------------------------------------------------
-------------  Basic Initialisation of the controller
-------------  User modifiable section
-------------------------------------------------------------------------------
  .extern __unused_isr
  .extern _SYNC_PE0
  .extern _exit
  .set    CUx_EBV, 0x00038000
  .text
-------------------------------------------------------------------------------
-------------  PEn Specific Startup Routine
-------------------------------------------------------------------------------
  .global _RESET_PEn
_RESET_PEn:
  -- Waiting CPU0 startup
  jarl  _SYNC_PE0, lp

  -- Initialization of the global pointer
  mov   __gp, gp
  -- Initialization of the text pointer
  mov   __tp, r5

  -- then set 1 to PSW.EBV -> RBASE!=EBASE
  -- then set 1 to PSW.CU0 and CU1
  stsr  PSW, r10, 0
  mov   CUx_EBV, r11
  or    r11, r10
  ldsr  r10, PSW, 0


#if defined (PE1_USED)
  jmpIfPEn  _INIT_PE1, PE1
#endif
#if defined (PE2_USED)
  jmpIfPEn  _INIT_PE2, PE2
#endif
#if defined (PE3_USED)
  jmpIfPEn  _INIT_PE3, PE3
#endif

_loop:
  br    _loop

-------------------------------------------------------------------------------
-------------  PE1 Specific Startup Routine
-------------------------------------------------------------------------------
#if defined (PE1_USED)
_INIT_PE1:
  -- Initialization of the stack pointer
  mov   ___ghsend_stack1_PE1, sp

  -- Initialization of the interrupt base pointer
  mov   ___ghsbegin_inttable_PE1, r1
  ldsr  r1, INTBP, 1

  -- First set EBASE register address
  mov   __ex_entry_PE1, r11
  ldsr  r11, EBASE, 1

  -- Jump to  main_PE1()
  jarl  _main_PE1, lp
  mov   r10, r6
  jarl  _exit, lp
#endif

-------------------------------------------------------------------------------
-------------  PE2 Specific Startup Routine
-------------------------------------------------------------------------------
#if defined (PE2_USED)
_INIT_PE2:
  -- Initialization of the stack pointer
  mov   ___ghsend_stack1_PE2, sp

  -- Initialization of the interrupt base pointer
  mov   ___ghsbegin_inttable_PE2, r1
  ldsr  r1, INTBP, 1

  -- First set EBASE register address
  mov   __ex_entry_PE2, r11
  ldsr  r11, EBASE, 1

  -- Jump to  main_PE2()
  jarl  _main_PE2, lp
  mov   r10, r6
  jarl  _exit, lp
#endif

-------------------------------------------------------------------------------
-------------  PE3 Specific Startup Routine
-------------------------------------------------------------------------------
#if defined (PE3_USED)
_INIT_PE3:
  -- Initialization of the stack pointer
  mov   ___ghsend_stack1_PE3, sp

  -- Initialization of the interrupt base pointer
  mov   ___ghsbegin_inttable_PE3, r1
  ldsr  r1, INTBP, 1

  -- First set EBASE register address
  mov   __ex_entry_PE3, r11
  ldsr  r11, EBASE, 1

  -- Jump to  main_PE3()
  jarl  _main_PE3, lp
  mov   r10, r6
  jarl  _exit, lp
#endif

-------------------------------------------------------------------------------
-------------  Start Section for exception table
#if defined (PE1_USED)
.section".intvect_PE1",.text
-------------------------------------------------------------------------------
__ex_entry_PE1:
----RESET
    .offset 0x0000
    .extern _RESET
    jr _RESET

----SYSERR
    .offset 0x0010
    .extern _SYSERR_PE1
    jr __unused_isr

----FETRAP
    .offset 0x0030
    .extern _FETRAP_PE1
    jr __unused_isr

----TRAP0
    .offset 0x0040
    .extern _EITRAP0_PE1
    jr __unused_isr

----TRAP1
    .offset 0x0050
    .extern _EITRAP1_PE1
    jr __unused_isr

----RIEX
    .offset 0x0060
    .extern _RIEX_PE1
    jr __unused_isr

----UCPOP
    .offset 0x0080
    .extern _UCPOP_PE1
    jr __unused_isr

----MIP_MDP
    .offset 0x0090
    .extern _MIP_MDP_PE1
    jr __unused_isr

----PIE
    .offset 0x00a0
    .extern _PIE_PE1
    jr __unused_isr

----MAE_MAEX
    .offset 0x00c0
    .extern _MAE_MAEX_PE1
    jr __unused_isr

----FENMI
    .offset 0x00e0
    .extern _FENMI_PE1
    jr __unused_isr

----FEINT
    .offset 0x00f0
    .extern _FEINT_PE1
    jr _FEINT_PE1

----EIINTn priority_0
    .offset 0x0100
    .extern _EINTPRIO_0_PE1
    jr __unused_isr

----EIINTn priority_1
    .offset 0x0110
    .extern _EINTPRIO_1_PE1
    jr __unused_isr

----EIINTn priority_2
    .offset 0x0120
    .extern _EINTPRIO_2_PE1
    jr __unused_isr

----EIINTn priority_3
    .offset 0x0130
    .extern _EINTPRIO_3_PE1
    jr __unused_isr

----EIINTn priority_4
    .offset 0x0140
    .extern _EINTPRIO_4_PE1
    jr __unused_isr

----EIINTn priority_5
    .offset 0x0150
    .extern _EINTPRIO_5_PE1
    jr __unused_isr

----EIINTn priority_6
    .offset 0x0160
    .extern _EINTPRIO_6_PE1
    jr __unused_isr

----EIINTn priority_7
    .offset 0x0170
    .extern _EINTPRIO_7_PE1
    jr __unused_isr

----EIINTn priority_8
    .offset 0x0180
    .extern _EINTPRIO_8_PE1
    jr __unused_isr

----EIINTn priority_9
    .offset 0x0190
    .extern _EINTPRIO_9_PE1
    jr __unused_isr

----EIINTn priority_10
    .offset 0x01a0
    .extern _EINTPRIO_10_PE1
    jr __unused_isr

----EIINTn priority_11
    .offset 0x01b0
    .extern _EINTPRIO_11_PE1
    jr __unused_isr

----EIINTn priority_12
    .offset 0x01c0
    .extern _EINTPRIO_12_PE1
    jr __unused_isr

----EIINTn priority_13
    .offset 0x01d0
    .extern _EINTPRIO_13_PE1
    jr __unused_isr

----EIINTn priority_14
    .offset 0x01e0
    .extern _EINTPRIO_14_PE1
    jr __unused_isr

----EIINTn priority_15
    .offset 0x01f0
    .extern _EINTPRIO_15_PE1
    jr __unused_isr

----EIINTn priority_16
    .offset 0x0200
    .extern _EINTPRIO_16_PE1
    jr __unused_isr

----EIINTn priority_17
    .offset 0x0210
    .extern _EINTPRIO_17_PE1
    jr __unused_isr

----EIINTn priority_18
    .offset 0x0220
    .extern _EINTPRIO_18_PE1
    jr __unused_isr

----EIINTn priority_19
    .offset 0x0230
    .extern _EINTPRIO_19_PE1
    jr __unused_isr

----EIINTn priority_20
    .offset 0x0240
    .extern _EINTPRIO_20_PE1
    jr __unused_isr

----EIINTn priority_21
    .offset 0x0250
    .extern _EINTPRIO_21_PE1
    jr __unused_isr

----EIINTn priority_22
    .offset 0x0260
    .extern _EINTPRIO_22_PE1
    jr __unused_isr

----EIINTn priority_23
    .offset 0x0270
    .extern _EINTPRIO_23_PE1
    jr __unused_isr

----EIINTn priority_24
    .offset 0x0280
    .extern _EINTPRIO_24_PE1
    jr __unused_isr

----EIINTn priority_25
    .offset 0x0290
    .extern _EINTPRIO_25_PE1
    jr __unused_isr

----EIINTn priority_26
    .offset 0x02a0
    .extern _EINTPRIO_26_PE1
    jr __unused_isr

----EIINTn priority_27
    .offset 0x02b0
    .extern _EINTPRIO_27_PE1
    jr __unused_isr

----EIINTn priority_28
    .offset 0x02c0
    .extern _EINTPRIO_28_PE1
    jr __unused_isr

----EIINTn priority_29
    .offset 0x02d0
    .extern _EINTPRIO_29_PE1
    jr __unused_isr

----EIINTn priority_30
    .offset 0x02e0
    .extern _EINTPRIO_30_PE1
    jr __unused_isr

----EIINTn priority_31
    .offset 0x02f0
    .extern _EINTPRIO_31_PE1
    jr __unused_isr

----EIINTn priority_32
    .offset 0x0300
    .extern _EINTPRIO_32_PE1
    jr __unused_isr

----EIINTn priority_33
    .offset 0x0310
    .extern _EINTPRIO_33_PE1
    jr __unused_isr

----EIINTn priority_34
    .offset 0x0320
    .extern _EINTPRIO_34_PE1
    jr __unused_isr

----EIINTn priority_35
    .offset 0x0330
    .extern _EINTPRIO_35_PE1
    jr __unused_isr

----EIINTn priority_36
    .offset 0x0340
    .extern _EINTPRIO_36_PE1
    jr __unused_isr

----EIINTn priority_37
    .offset 0x0350
    .extern _EINTPRIO_37_PE1
    jr __unused_isr

----EIINTn priority_38
    .offset 0x0360
    .extern _EINTPRIO_38_PE1
    jr __unused_isr

----EIINTn priority_39
    .offset 0x0370
    .extern _EINTPRIO_39_PE1
    jr __unused_isr

----EIINTn priority_40
    .offset 0x0380
    .extern _EINTPRIO_40_PE1
    jr __unused_isr

----EIINTn priority_41
    .offset 0x0390
    .extern _EINTPRIO_41_PE1
    jr __unused_isr

----EIINTn priority_42
    .offset 0x03a0
    .extern _EINTPRIO_42_PE1
    jr __unused_isr

----EIINTn priority_43
    .offset 0x03b0
    .extern _EINTPRIO_43_PE1
    jr __unused_isr

----EIINTn priority_44
    .offset 0x03c0
    .extern _EINTPRIO_44_PE1
    jr __unused_isr

----EIINTn priority_45
    .offset 0x03d0
    .extern _EINTPRIO_45_PE1
    jr __unused_isr

----EIINTn priority_46
    .offset 0x03e0
    .extern _EINTPRIO_46_PE1
    jr __unused_isr

----EIINTn priority_47
    .offset 0x03f0
    .extern _EINTPRIO_47_PE1
    jr __unused_isr

----EIINTn priority_48
    .offset 0x0400
    .extern _EINTPRIO_48_PE1
    jr __unused_isr

----EIINTn priority_49
    .offset 0x0410
    .extern _EINTPRIO_49_PE1
    jr __unused_isr

----EIINTn priority_50
    .offset 0x0420
    .extern _EINTPRIO_50_PE1
    jr __unused_isr

----EIINTn priority_51
    .offset 0x0430
    .extern _EINTPRIO_51_PE1
    jr __unused_isr

----EIINTn priority_52
    .offset 0x0440
    .extern _EINTPRIO_52_PE1
    jr __unused_isr

----EIINTn priority_53
    .offset 0x0450
    .extern _EINTPRIO_53_PE1
    jr __unused_isr

----EIINTn priority_54
    .offset 0x0460
    .extern _EINTPRIO_54_PE1
    jr __unused_isr

----EIINTn priority_55
    .offset 0x0470
    .extern _EINTPRIO_55_PE1
    jr __unused_isr

----EIINTn priority_56
    .offset 0x0480
    .extern _EINTPRIO_56_PE1
    jr __unused_isr

----EIINTn priority_57
    .offset 0x0490
    .extern _EINTPRIO_57_PE1
    jr __unused_isr

----EIINTn priority_58
    .offset 0x04a0
    .extern _EINTPRIO_58_PE1
    jr __unused_isr

----EIINTn priority_59
    .offset 0x04b0
    .extern _EINTPRIO_59_PE1
    jr __unused_isr

----EIINTn priority_60
    .offset 0x04c0
    .extern _EINTPRIO_60_PE1
    jr __unused_isr

----EIINTn priority_61
    .offset 0x04d0
    .extern _EINTPRIO_61_PE1
    jr __unused_isr

----EIINTn priority_62
    .offset 0x04e0
    .extern _EINTPRIO_62_PE1
    jr __unused_isr

----EIINTn priority_63
    .offset 0x04f0
    .extern _EINTPRIO_63_PE1
    jr __unused_isr

    .offset 0x0500

#endif
-------------  End of exception table
-------------------------------------------------------------------------------

-------------------------------------------------------------------------------
-------------  Start Section for exception table
#if defined (PE2_USED)
.section".intvect_PE2",.text
-------------------------------------------------------------------------------
__ex_entry_PE2:
----RESET
    .offset 0x0000
    .extern _RESET
    jr _RESET

----SYSERR
    .offset 0x0010
    .extern _SYSERR_PE2
    jr __unused_isr

----FETRAP
    .offset 0x0030
    .extern _FETRAP_PE2
    jr __unused_isr

----TRAP0
    .offset 0x0040
    .extern _EITRAP0_PE2
    jr __unused_isr

----TRAP1
    .offset 0x0050
    .extern _EITRAP1_PE2
    jr __unused_isr

----RIEX
    .offset 0x0060
    .extern _RIEX_PE2
    jr __unused_isr

----UCPOP
    .offset 0x0080
    .extern _UCPOP_PE2
    jr __unused_isr

----MIP_MDP
    .offset 0x0090
    .extern _MIP_MDP_PE2
    jr __unused_isr

----PIE
    .offset 0x00a0
    .extern _PIE_PE2
    jr __unused_isr

----MAE_MAEX
    .offset 0x00c0
    .extern _MAE_MAEX_PE2
    jr __unused_isr

----FENMI
    .offset 0x00e0
    .extern _FENMI_PE2
    jr __unused_isr

----FEINT
    .offset 0x00f0
    .extern _FEINT_PE2
    jr _FEINT_PE2

----EIINTn priority_0
    .offset 0x0100
    .extern _EINTPRIO_0_PE2
    jr __unused_isr

----EIINTn priority_1
    .offset 0x0110
    .extern _EINTPRIO_1_PE2
    jr __unused_isr

----EIINTn priority_2
    .offset 0x0120
    .extern _EINTPRIO_2_PE2
    jr __unused_isr

----EIINTn priority_3
    .offset 0x0130
    .extern _EINTPRIO_3_PE2
    jr __unused_isr

----EIINTn priority_4
    .offset 0x0140
    .extern _EINTPRIO_4_PE2
    jr __unused_isr

----EIINTn priority_5
    .offset 0x0150
    .extern _EINTPRIO_5_PE2
    jr __unused_isr

----EIINTn priority_6
    .offset 0x0160
    .extern _EINTPRIO_6_PE2
    jr __unused_isr

----EIINTn priority_7
    .offset 0x0170
    .extern _EINTPRIO_7_PE2
    jr __unused_isr

----EIINTn priority_8
    .offset 0x0180
    .extern _EINTPRIO_8_PE2
    jr __unused_isr

----EIINTn priority_9
    .offset 0x0190
    .extern _EINTPRIO_9_PE2
    jr __unused_isr

----EIINTn priority_10
    .offset 0x01a0
    .extern _EINTPRIO_10_PE2
    jr __unused_isr

----EIINTn priority_11
    .offset 0x01b0
    .extern _EINTPRIO_11_PE2
    jr __unused_isr

----EIINTn priority_12
    .offset 0x01c0
    .extern _EINTPRIO_12_PE2
    jr __unused_isr

----EIINTn priority_13
    .offset 0x01d0
    .extern _EINTPRIO_13_PE2
    jr __unused_isr

----EIINTn priority_14
    .offset 0x01e0
    .extern _EINTPRIO_14_PE2
    jr __unused_isr

----EIINTn priority_15
    .offset 0x01f0
    .extern _EINTPRIO_15_PE2
    jr __unused_isr

----EIINTn priority_16
    .offset 0x0200
    .extern _EINTPRIO_16_PE2
    jr __unused_isr

----EIINTn priority_17
    .offset 0x0210
    .extern _EINTPRIO_17_PE2
    jr __unused_isr

----EIINTn priority_18
    .offset 0x0220
    .extern _EINTPRIO_18_PE2
    jr __unused_isr

----EIINTn priority_19
    .offset 0x0230
    .extern _EINTPRIO_19_PE2
    jr __unused_isr

----EIINTn priority_20
    .offset 0x0240
    .extern _EINTPRIO_20_PE2
    jr __unused_isr

----EIINTn priority_21
    .offset 0x0250
    .extern _EINTPRIO_21_PE2
    jr __unused_isr

----EIINTn priority_22
    .offset 0x0260
    .extern _EINTPRIO_22_PE2
    jr __unused_isr

----EIINTn priority_23
    .offset 0x0270
    .extern _EINTPRIO_23_PE2
    jr __unused_isr

----EIINTn priority_24
    .offset 0x0280
    .extern _EINTPRIO_24_PE2
    jr __unused_isr

----EIINTn priority_25
    .offset 0x0290
    .extern _EINTPRIO_25_PE2
    jr __unused_isr

----EIINTn priority_26
    .offset 0x02a0
    .extern _EINTPRIO_26_PE2
    jr __unused_isr

----EIINTn priority_27
    .offset 0x02b0
    .extern _EINTPRIO_27_PE2
    jr __unused_isr

----EIINTn priority_28
    .offset 0x02c0
    .extern _EINTPRIO_28_PE2
    jr __unused_isr

----EIINTn priority_29
    .offset 0x02d0
    .extern _EINTPRIO_29_PE2
    jr __unused_isr

----EIINTn priority_30
    .offset 0x02e0
    .extern _EINTPRIO_30_PE2
    jr __unused_isr

----EIINTn priority_31
    .offset 0x02f0
    .extern _EINTPRIO_31_PE2
    jr __unused_isr

----EIINTn priority_32
    .offset 0x0300
    .extern _EINTPRIO_32_PE2
    jr __unused_isr

----EIINTn priority_33
    .offset 0x0310
    .extern _EINTPRIO_33_PE2
    jr __unused_isr

----EIINTn priority_34
    .offset 0x0320
    .extern _EINTPRIO_34_PE2
    jr __unused_isr

----EIINTn priority_35
    .offset 0x0330
    .extern _EINTPRIO_35_PE2
    jr __unused_isr

----EIINTn priority_36
    .offset 0x0340
    .extern _EINTPRIO_36_PE2
    jr __unused_isr

----EIINTn priority_37
    .offset 0x0350
    .extern _EINTPRIO_37_PE2
    jr __unused_isr

----EIINTn priority_38
    .offset 0x0360
    .extern _EINTPRIO_38_PE2
    jr __unused_isr

----EIINTn priority_39
    .offset 0x0370
    .extern _EINTPRIO_39_PE2
    jr __unused_isr

----EIINTn priority_40
    .offset 0x0380
    .extern _EINTPRIO_40_PE2
    jr __unused_isr

----EIINTn priority_41
    .offset 0x0390
    .extern _EINTPRIO_41_PE2
    jr __unused_isr

----EIINTn priority_42
    .offset 0x03a0
    .extern _EINTPRIO_42_PE2
    jr __unused_isr

----EIINTn priority_43
    .offset 0x03b0
    .extern _EINTPRIO_43_PE2
    jr __unused_isr

----EIINTn priority_44
    .offset 0x03c0
    .extern _EINTPRIO_44_PE2
    jr __unused_isr

----EIINTn priority_45
    .offset 0x03d0
    .extern _EINTPRIO_45_PE2
    jr __unused_isr

----EIINTn priority_46
    .offset 0x03e0
    .extern _EINTPRIO_46_PE2
    jr __unused_isr

----EIINTn priority_47
    .offset 0x03f0
    .extern _EINTPRIO_47_PE2
    jr __unused_isr

----EIINTn priority_48
    .offset 0x0400
    .extern _EINTPRIO_48_PE2
    jr __unused_isr

----EIINTn priority_49
    .offset 0x0410
    .extern _EINTPRIO_49_PE2
    jr __unused_isr

----EIINTn priority_50
    .offset 0x0420
    .extern _EINTPRIO_50_PE2
    jr __unused_isr

----EIINTn priority_51
    .offset 0x0430
    .extern _EINTPRIO_51_PE2
    jr __unused_isr

----EIINTn priority_52
    .offset 0x0440
    .extern _EINTPRIO_52_PE2
    jr __unused_isr

----EIINTn priority_53
    .offset 0x0450
    .extern _EINTPRIO_53_PE2
    jr __unused_isr

----EIINTn priority_54
    .offset 0x0460
    .extern _EINTPRIO_54_PE2
    jr __unused_isr

----EIINTn priority_55
    .offset 0x0470
    .extern _EINTPRIO_55_PE2
    jr __unused_isr

----EIINTn priority_56
    .offset 0x0480
    .extern _EINTPRIO_56_PE2
    jr __unused_isr

----EIINTn priority_57
    .offset 0x0490
    .extern _EINTPRIO_57_PE2
    jr __unused_isr

----EIINTn priority_58
    .offset 0x04a0
    .extern _EINTPRIO_58_PE2
    jr __unused_isr

----EIINTn priority_59
    .offset 0x04b0
    .extern _EINTPRIO_59_PE2
    jr __unused_isr

----EIINTn priority_60
    .offset 0x04c0
    .extern _EINTPRIO_60_PE2
    jr __unused_isr

----EIINTn priority_61
    .offset 0x04d0
    .extern _EINTPRIO_61_PE2
    jr __unused_isr

----EIINTn priority_62
    .offset 0x04e0
    .extern _EINTPRIO_62_PE2
    jr __unused_isr

----EIINTn priority_63
    .offset 0x04f0
    .extern _EINTPRIO_63_PE2
    jr __unused_isr

    .offset 0x0500

#endif
-------------  End of exception table
-------------------------------------------------------------------------------

-------------------------------------------------------------------------------
-------------  Start Section for exception table
#if defined (PE3_USED)
.section".intvect_PE3",.text
-------------------------------------------------------------------------------
__ex_entry_PE3:
----RESET
    .offset 0x0000
    .extern _RESET
    jr _RESET

----SYSERR
    .offset 0x0010
    .extern _SYSERR_PE3
    jr __unused_isr

----FETRAP
    .offset 0x0030
    .extern _FETRAP_PE3
    jr __unused_isr

----TRAP0
    .offset 0x0040
    .extern _EITRAP0_PE3
    jr __unused_isr

----TRAP1
    .offset 0x0050
    .extern _EITRAP1_PE3
    jr __unused_isr

----RIEX
    .offset 0x0060
    .extern _RIEX_PE3
    jr __unused_isr

----UCPOP
    .offset 0x0080
    .extern _UCPOP_PE3
    jr __unused_isr

----MIP_MDP
    .offset 0x0090
    .extern _MIP_MDP_PE3
    jr __unused_isr

----PIE
    .offset 0x00a0
    .extern _PIE_PE3
    jr __unused_isr

----MAE_MAEX
    .offset 0x00c0
    .extern _MAE_MAEX_PE3
    jr __unused_isr

----FENMI
    .offset 0x00e0
    .extern _FENMI_PE3
    jr __unused_isr

----FEINT
    .offset 0x00f0
    .extern _FEINT_PE3
    jr _FEINT_PE3

----EIINTn priority_0
    .offset 0x0100
    .extern _EINTPRIO_0_PE3
    jr __unused_isr

----EIINTn priority_1
    .offset 0x0110
    .extern _EINTPRIO_1_PE3
    jr __unused_isr

----EIINTn priority_2
    .offset 0x0120
    .extern _EINTPRIO_2_PE3
    jr __unused_isr

----EIINTn priority_3
    .offset 0x0130
    .extern _EINTPRIO_3_PE3
    jr __unused_isr

----EIINTn priority_4
    .offset 0x0140
    .extern _EINTPRIO_4_PE3
    jr __unused_isr

----EIINTn priority_5
    .offset 0x0150
    .extern _EINTPRIO_5_PE3
    jr __unused_isr

----EIINTn priority_6
    .offset 0x0160
    .extern _EINTPRIO_6_PE3
    jr __unused_isr

----EIINTn priority_7
    .offset 0x0170
    .extern _EINTPRIO_7_PE3
    jr __unused_isr

----EIINTn priority_8
    .offset 0x0180
    .extern _EINTPRIO_8_PE3
    jr __unused_isr

----EIINTn priority_9
    .offset 0x0190
    .extern _EINTPRIO_9_PE3
    jr __unused_isr

----EIINTn priority_10
    .offset 0x01a0
    .extern _EINTPRIO_10_PE3
    jr __unused_isr

----EIINTn priority_11
    .offset 0x01b0
    .extern _EINTPRIO_11_PE3
    jr __unused_isr

----EIINTn priority_12
    .offset 0x01c0
    .extern _EINTPRIO_12_PE3
    jr __unused_isr

----EIINTn priority_13
    .offset 0x01d0
    .extern _EINTPRIO_13_PE3
    jr __unused_isr

----EIINTn priority_14
    .offset 0x01e0
    .extern _EINTPRIO_14_PE3
    jr __unused_isr

----EIINTn priority_15
    .offset 0x01f0
    .extern _EINTPRIO_15_PE3
    jr __unused_isr

----EIINTn priority_16
    .offset 0x0200
    .extern _EINTPRIO_16_PE3
    jr __unused_isr

----EIINTn priority_17
    .offset 0x0210
    .extern _EINTPRIO_17_PE3
    jr __unused_isr

----EIINTn priority_18
    .offset 0x0220
    .extern _EINTPRIO_18_PE3
    jr __unused_isr

----EIINTn priority_19
    .offset 0x0230
    .extern _EINTPRIO_19_PE3
    jr __unused_isr

----EIINTn priority_20
    .offset 0x0240
    .extern _EINTPRIO_20_PE3
    jr __unused_isr

----EIINTn priority_21
    .offset 0x0250
    .extern _EINTPRIO_21_PE3
    jr __unused_isr

----EIINTn priority_22
    .offset 0x0260
    .extern _EINTPRIO_22_PE3
    jr __unused_isr

----EIINTn priority_23
    .offset 0x0270
    .extern _EINTPRIO_23_PE3
    jr __unused_isr

----EIINTn priority_24
    .offset 0x0280
    .extern _EINTPRIO_24_PE3
    jr __unused_isr

----EIINTn priority_25
    .offset 0x0290
    .extern _EINTPRIO_25_PE3
    jr __unused_isr

----EIINTn priority_26
    .offset 0x02a0
    .extern _EINTPRIO_26_PE3
    jr __unused_isr

----EIINTn priority_27
    .offset 0x02b0
    .extern _EINTPRIO_27_PE3
    jr __unused_isr

----EIINTn priority_28
    .offset 0x02c0
    .extern _EINTPRIO_28_PE3
    jr __unused_isr

----EIINTn priority_29
    .offset 0x02d0
    .extern _EINTPRIO_29_PE3
    jr __unused_isr

----EIINTn priority_30
    .offset 0x02e0
    .extern _EINTPRIO_30_PE3
    jr __unused_isr

----EIINTn priority_31
    .offset 0x02f0
    .extern _EINTPRIO_31_PE3
    jr __unused_isr

----EIINTn priority_32
    .offset 0x0300
    .extern _EINTPRIO_32_PE3
    jr __unused_isr

----EIINTn priority_33
    .offset 0x0310
    .extern _EINTPRIO_33_PE3
    jr __unused_isr

----EIINTn priority_34
    .offset 0x0320
    .extern _EINTPRIO_34_PE3
    jr __unused_isr

----EIINTn priority_35
    .offset 0x0330
    .extern _EINTPRIO_35_PE3
    jr __unused_isr

----EIINTn priority_36
    .offset 0x0340
    .extern _EINTPRIO_36_PE3
    jr __unused_isr

----EIINTn priority_37
    .offset 0x0350
    .extern _EINTPRIO_37_PE3
    jr __unused_isr

----EIINTn priority_38
    .offset 0x0360
    .extern _EINTPRIO_38_PE3
    jr __unused_isr

----EIINTn priority_39
    .offset 0x0370
    .extern _EINTPRIO_39_PE3
    jr __unused_isr

----EIINTn priority_40
    .offset 0x0380
    .extern _EINTPRIO_40_PE3
    jr __unused_isr

----EIINTn priority_41
    .offset 0x0390
    .extern _EINTPRIO_41_PE3
    jr __unused_isr

----EIINTn priority_42
    .offset 0x03a0
    .extern _EINTPRIO_42_PE3
    jr __unused_isr

----EIINTn priority_43
    .offset 0x03b0
    .extern _EINTPRIO_43_PE3
    jr __unused_isr

----EIINTn priority_44
    .offset 0x03c0
    .extern _EINTPRIO_44_PE3
    jr __unused_isr

----EIINTn priority_45
    .offset 0x03d0
    .extern _EINTPRIO_45_PE3
    jr __unused_isr

----EIINTn priority_46
    .offset 0x03e0
    .extern _EINTPRIO_46_PE3
    jr __unused_isr

----EIINTn priority_47
    .offset 0x03f0
    .extern _EINTPRIO_47_PE3
    jr __unused_isr

----EIINTn priority_48
    .offset 0x0400
    .extern _EINTPRIO_48_PE3
    jr __unused_isr

----EIINTn priority_49
    .offset 0x0410
    .extern _EINTPRIO_49_PE3
    jr __unused_isr

----EIINTn priority_50
    .offset 0x0420
    .extern _EINTPRIO_50_PE3
    jr __unused_isr

----EIINTn priority_51
    .offset 0x0430
    .extern _EINTPRIO_51_PE3
    jr __unused_isr

----EIINTn priority_52
    .offset 0x0440
    .extern _EINTPRIO_52_PE3
    jr __unused_isr

----EIINTn priority_53
    .offset 0x0450
    .extern _EINTPRIO_53_PE3
    jr __unused_isr

----EIINTn priority_54
    .offset 0x0460
    .extern _EINTPRIO_54_PE3
    jr __unused_isr

----EIINTn priority_55
    .offset 0x0470
    .extern _EINTPRIO_55_PE3
    jr __unused_isr

----EIINTn priority_56
    .offset 0x0480
    .extern _EINTPRIO_56_PE3
    jr __unused_isr

----EIINTn priority_57
    .offset 0x0490
    .extern _EINTPRIO_57_PE3
    jr __unused_isr

----EIINTn priority_58
    .offset 0x04a0
    .extern _EINTPRIO_58_PE3
    jr __unused_isr

----EIINTn priority_59
    .offset 0x04b0
    .extern _EINTPRIO_59_PE3
    jr __unused_isr

----EIINTn priority_60
    .offset 0x04c0
    .extern _EINTPRIO_60_PE3
    jr __unused_isr

----EIINTn priority_61
    .offset 0x04d0
    .extern _EINTPRIO_61_PE3
    jr __unused_isr

----EIINTn priority_62
    .offset 0x04e0
    .extern _EINTPRIO_62_PE3
    jr __unused_isr

----EIINTn priority_63
    .offset 0x04f0
    .extern _EINTPRIO_63_PE3
    jr __unused_isr

    .offset 0x0500

#endif
-------------  End of exception table
-------------------------------------------------------------------------------

