-/*\r
-** Linker script for PIC24FJ128GA010\r
-*/\r
-\r
-OUTPUT_ARCH("24FJ128GA010")\r
-EXTERN(__resetPRI)\r
-EXTERN(__resetALT)\r
-\r
-\r
-/*\r
-** Memory Regions\r
-*/\r
-MEMORY\r
-{\r
- data (a!xr) : ORIGIN = 0x800, LENGTH = 0x2000\r
- reset : ORIGIN = 0x0, LENGTH = 0x4\r
- ivt : ORIGIN = 0x4, LENGTH = 0xFC\r
- aivt : ORIGIN = 0x104, LENGTH = 0xFC\r
- program (xr) : ORIGIN = 0x200, LENGTH = 0x155FC\r
- config2 : ORIGIN = 0x157FC, LENGTH = 0x2\r
- config1 : ORIGIN = 0x157FE, LENGTH = 0x2\r
-}\r
-__IVT_BASE = 0x4;\r
-__AIVT_BASE = 0x104;\r
-__DATA_BASE = 0x800;\r
-__CODE_BASE = 0x200;\r
-\r
-\r
-/*\r
-** ==================== Section Map ======================\r
-*/\r
-SECTIONS\r
-{\r
- /*\r
- ** ========== Program Memory ==========\r
- */\r
-\r
-\r
- /*\r
- ** Reset Instruction\r
- */\r
- .reset :\r
- {\r
- SHORT(ABSOLUTE(__reset));\r
- SHORT(0x04);\r
- SHORT((ABSOLUTE(__reset) >> 16) & 0x7F);\r
- SHORT(0);\r
- } >reset\r
-\r
-\r
- /*\r
- ** Interrupt Vector Tables\r
- **\r
- ** The primary and alternate tables are loaded\r
- ** here, between sections .reset and .text.\r
- ** Vector table source code appears below.\r
- */\r
-\r
-\r
- /*\r
- ** User Code and Library Code\r
- */\r
- .text __CODE_BASE :\r
- {\r
- *(.handle);\r
- *(.libc) *(.libm) *(.libdsp); /* keep together in this order */\r
- *(.lib*);\r
- *(.text);\r
- } >program\r
-\r
-\r
- /*\r
- ** Configuration Words\r
- */\r
- __CONFIG2 :\r
- { *(__CONFIG2.sec) } >config2\r
- __CONFIG1 :\r
- { *(__CONFIG1.sec) } >config1\r
-\r
-\r
- /*\r
- ** =========== Data Memory ===========\r
- */\r
-\r
-\r
- /*\r
- ** ICD Debug Exec\r
- **\r
- ** This section provides optional storage for\r
- ** the ICD2 debugger. Define a global symbol\r
- ** named __ICD2RAM to enable ICD2. This section\r
- ** must be loaded at data address 0x800.\r
- */\r
- .icd __DATA_BASE (NOLOAD):\r
- {\r
- . += (DEFINED (__ICD2RAM) ? 0x50 : 0 );\r
- } > data\r
-\r
-\r
- /*\r
- ** Other sections in data memory are not explicitly mapped.\r
- ** Instead they are allocated according to their section\r
- ** attributes, which is most efficient.\r
- ** \r
- ** If a specific arrangement of sections is required\r
- ** (other than what can be achieved using attributes)\r
- ** additional sections may be defined here. See chapter\r
- ** 10.5 in the MPLAB ASM30/LINK30 User's Guide (DS51317)\r
- ** for more information.\r
- */\r
-\r
-\r
- /*\r
- ** ========== Debug Info ==============\r
- */\r
-\r
- .comment 0 : { *(.comment) }\r
-\r
- /*\r
- ** DWARF-2\r
- */\r
- .debug_info 0 : { *(.debug_info) *(.gnu.linkonce.wi.*) }\r
- .debug_abbrev 0 : { *(.debug_abbrev) }\r
- .debug_line 0 : { *(.debug_line) }\r
- .debug_frame 0 : { *(.debug_frame) }\r
- .debug_str 0 : { *(.debug_str) }\r
- .debug_loc 0 : { *(.debug_loc) }\r
- .debug_macinfo 0 : { *(.debug_macinfo) }\r
- .debug_pubnames 0 : { *(.debug_pubnames) }\r
- .debug_ranges 0 : { *(.debug_ranges) }\r
- .debug_aranges 0 : { *(.debug_aranges) }\r
-\r
-} /* SECTIONS */\r
-\r
-/*\r
-** ================= End of Section Map ================\r
-*/\r
-\r
-/*\r
-** Section Map for Interrupt Vector Tables\r
-*/\r
-SECTIONS\r
-{\r
-\r
-/*\r
-** Interrupt Vector Table\r
-*/\r
-.ivt __IVT_BASE :\r
- {\r
- LONG( DEFINED(__ReservedTrap0) ? ABSOLUTE(__ReservedTrap0) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__OscillatorFail) ? ABSOLUTE(__OscillatorFail) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__AddressError) ? ABSOLUTE(__AddressError) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__StackError) ? ABSOLUTE(__StackError) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__MathError) ? ABSOLUTE(__MathError) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__ReservedTrap5) ? ABSOLUTE(__ReservedTrap5) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__ReservedTrap6) ? ABSOLUTE(__ReservedTrap6) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__ReservedTrap7) ? ABSOLUTE(__ReservedTrap7) :\r
- ABSOLUTE(__DefaultInterrupt));\r
-\r
- LONG( DEFINED(__INT0Interrupt) ? ABSOLUTE(__INT0Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__IC1Interrupt) ? ABSOLUTE(__IC1Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__OC1Interrupt) ? ABSOLUTE(__OC1Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__T1Interrupt) ? ABSOLUTE(__T1Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt4) ? ABSOLUTE(__Interrupt4) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__IC2Interrupt) ? ABSOLUTE(__IC2Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__OC2Interrupt) ? ABSOLUTE(__OC2Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__T2Interrupt) ? ABSOLUTE(__T2Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__T3Interrupt) ? ABSOLUTE(__T3Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__SPI1ErrInterrupt) ? ABSOLUTE(__SPI1ErrInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__SPI1TInterrupt) ? ABSOLUTE(__SPI1TInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__U1RXInterrupt) ? ABSOLUTE(__U1RXInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__U1TXInterrupt) ? ABSOLUTE(__U1TXInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__ADC1Interrupt) ? ABSOLUTE(__ADC1Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt14) ? ABSOLUTE(__Interrupt14) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt15) ? ABSOLUTE(__Interrupt15) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__SI2C1Interrupt) ? ABSOLUTE(__SI2C1Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__MI2C1Interrupt) ? ABSOLUTE(__MI2C1Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__CompInterrupt) ? ABSOLUTE(__CompInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__CNInterrupt) ? ABSOLUTE(__CNInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__INT1Interrupt) ? ABSOLUTE(__INT1Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt21) ? ABSOLUTE(__Interrupt21) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt22) ? ABSOLUTE(__Interrupt22) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt23) ? ABSOLUTE(__Interrupt23) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt24) ? ABSOLUTE(__Interrupt24) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__OC3Interrupt) ? ABSOLUTE(__OC3Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__OC4Interrupt) ? ABSOLUTE(__OC4Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__T4Interrupt) ? ABSOLUTE(__T4Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__T5Interrupt) ? ABSOLUTE(__T5Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__INT2Interrupt) ? ABSOLUTE(__INT2Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__U2RXInterrupt) ? ABSOLUTE(__U2RXInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__U2TXInterrupt) ? ABSOLUTE(__U2TXInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__SPI2ErrInterrupt) ? ABSOLUTE(__SPI2ErrInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__SPI2Interrupt) ? ABSOLUTE(__SPI2Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt34) ? ABSOLUTE(__Interrupt34) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt35) ? ABSOLUTE(__Interrupt35) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt36) ? ABSOLUTE(__Interrupt36) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__IC3Interrupt) ? ABSOLUTE(__IC3Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__IC4Interrupt) ? ABSOLUTE(__IC4Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__IC5Interrupt) ? ABSOLUTE(__IC5Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt40) ? ABSOLUTE(__Interrupt40) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__OC5Interrupt) ? ABSOLUTE(__OC5Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt42) ? ABSOLUTE(__Interrupt42) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt43) ? ABSOLUTE(__Interrupt43) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt44) ? ABSOLUTE(__Interrupt44) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__PMPInterrupt) ? ABSOLUTE(__PMPInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt46) ? ABSOLUTE(__Interrupt46) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt47) ? ABSOLUTE(__Interrupt47) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt48) ? ABSOLUTE(__Interrupt48) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__SI2C2Interrupt) ? ABSOLUTE(__SI2C2Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__MI2C2Interrupt) ? ABSOLUTE(__MI2C2Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt51) ? ABSOLUTE(__Interrupt51) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt52) ? ABSOLUTE(__Interrupt52) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__INT3Interrupt) ? ABSOLUTE(__INT3Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__INT4Interrupt) ? ABSOLUTE(__INT4Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt55) ? ABSOLUTE(__Interrupt55) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt56) ? ABSOLUTE(__Interrupt56) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt57) ? ABSOLUTE(__Interrupt57) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt58) ? ABSOLUTE(__Interrupt58) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt59) ? ABSOLUTE(__Interrupt59) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt60) ? ABSOLUTE(__Interrupt60) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt61) ? ABSOLUTE(__Interrupt61) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__RTCCInterrupt) ? ABSOLUTE(__RTCCInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt63) ? ABSOLUTE(__Interrupt63) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt64) ? ABSOLUTE(__Interrupt64) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__U1ErrInterrupt) ? ABSOLUTE(__U1ErrInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__U2ErrInterrupt) ? ABSOLUTE(__U2ErrInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__CRCInterrupt) ? ABSOLUTE(__CRCInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt68) ? ABSOLUTE(__Interrupt68) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt69) ? ABSOLUTE(__Interrupt69) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt70) ? ABSOLUTE(__Interrupt70) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt71) ? ABSOLUTE(__Interrupt71) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt72) ? ABSOLUTE(__Interrupt72) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt73) ? ABSOLUTE(__Interrupt73) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt74) ? ABSOLUTE(__Interrupt74) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt75) ? ABSOLUTE(__Interrupt75) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt76) ? ABSOLUTE(__Interrupt76) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt77) ? ABSOLUTE(__Interrupt77) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt78) ? ABSOLUTE(__Interrupt78) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt79) ? ABSOLUTE(__Interrupt79) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt80) ? ABSOLUTE(__Interrupt80) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt81) ? ABSOLUTE(__Interrupt81) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt82) ? ABSOLUTE(__Interrupt82) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt83) ? ABSOLUTE(__Interrupt83) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt84) ? ABSOLUTE(__Interrupt84) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt85) ? ABSOLUTE(__Interrupt85) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt86) ? ABSOLUTE(__Interrupt86) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt87) ? ABSOLUTE(__Interrupt87) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt88) ? ABSOLUTE(__Interrupt88) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt89) ? ABSOLUTE(__Interrupt89) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt90) ? ABSOLUTE(__Interrupt90) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt91) ? ABSOLUTE(__Interrupt91) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt92) ? ABSOLUTE(__Interrupt92) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt93) ? ABSOLUTE(__Interrupt93) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt94) ? ABSOLUTE(__Interrupt94) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt95) ? ABSOLUTE(__Interrupt95) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt96) ? ABSOLUTE(__Interrupt96) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt97) ? ABSOLUTE(__Interrupt97) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt98) ? ABSOLUTE(__Interrupt98) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt99) ? ABSOLUTE(__Interrupt99) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt100) ? ABSOLUTE(__Interrupt100) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt101) ? ABSOLUTE(__Interrupt101) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt102) ? ABSOLUTE(__Interrupt102) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt103) ? ABSOLUTE(__Interrupt103) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt104) ? ABSOLUTE(__Interrupt104) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt105) ? ABSOLUTE(__Interrupt105) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt106) ? ABSOLUTE(__Interrupt106) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt107) ? ABSOLUTE(__Interrupt107) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt108) ? ABSOLUTE(__Interrupt108) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt109) ? ABSOLUTE(__Interrupt109) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt110) ? ABSOLUTE(__Interrupt110) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt111) ? ABSOLUTE(__Interrupt111) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt112) ? ABSOLUTE(__Interrupt112) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt113) ? ABSOLUTE(__Interrupt113) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt114) ? ABSOLUTE(__Interrupt114) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt115) ? ABSOLUTE(__Interrupt115) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt116) ? ABSOLUTE(__Interrupt116) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- LONG( DEFINED(__Interrupt117) ? ABSOLUTE(__Interrupt117) :\r
- ABSOLUTE(__DefaultInterrupt));\r
- } >ivt\r
-\r
-\r
-/*\r
-** Alternate Interrupt Vector Table\r
-*/\r
-.aivt __AIVT_BASE :\r
- {\r
- LONG( DEFINED(__AltReservedTrap0) ? ABSOLUTE(__AltReservedTrap0) :\r
- (DEFINED(__ReservedTrap0) ? ABSOLUTE(__ReservedTrap0) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltOscillatorFail) ? ABSOLUTE(__AltOscillatorFail) :\r
- (DEFINED(__OscillatorFail) ? ABSOLUTE(__OscillatorFail) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltAddressError) ? ABSOLUTE(__AltAddressError) :\r
- (DEFINED(__AddressError) ? ABSOLUTE(__AddressError) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltStackError) ? ABSOLUTE(__AltStackError) :\r
- (DEFINED(__StackError) ? ABSOLUTE(__StackError) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltMathError) ? ABSOLUTE(__AltMathError) :\r
- (DEFINED(__MathError) ? ABSOLUTE(__MathError) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltReservedTrap5) ? ABSOLUTE(__AltReservedTrap5) :\r
- (DEFINED(__ReservedTrap5) ? ABSOLUTE(__ReservedTrap5) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltReservedTrap6) ? ABSOLUTE(__AltReservedTrap6) :\r
- (DEFINED(__ReservedTrap6) ? ABSOLUTE(__ReservedTrap6) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltReservedTrap7) ? ABSOLUTE(__AltReservedTrap7) :\r
- (DEFINED(__ReservedTrap7) ? ABSOLUTE(__ReservedTrap7) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
-\r
- LONG( DEFINED(__AltINT0Interrupt) ? ABSOLUTE(__AltINT0Interrupt) :\r
- (DEFINED(__INT0Interrupt) ? ABSOLUTE(__INT0Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltIC1Interrupt) ? ABSOLUTE(__AltIC1Interrupt) :\r
- (DEFINED(__IC1Interrupt) ? ABSOLUTE(__IC1Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltOC1Interrupt) ? ABSOLUTE(__AltOC1Interrupt) :\r
- (DEFINED(__OC1Interrupt) ? ABSOLUTE(__OC1Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltT1Interrupt) ? ABSOLUTE(__AltT1Interrupt) :\r
- (DEFINED(__T1Interrupt) ? ABSOLUTE(__T1Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt4) ? ABSOLUTE(__AltInterrupt4) :\r
- (DEFINED(__Interrupt4) ? ABSOLUTE(__Interrupt4) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltIC2Interrupt) ? ABSOLUTE(__AltIC2Interrupt) :\r
- (DEFINED(__IC2Interrupt) ? ABSOLUTE(__IC2Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltOC2Interrupt) ? ABSOLUTE(__AltOC2Interrupt) :\r
- (DEFINED(__OC2Interrupt) ? ABSOLUTE(__OC2Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltT2Interrupt) ? ABSOLUTE(__AltT2Interrupt) :\r
- (DEFINED(__T2Interrupt) ? ABSOLUTE(__T2Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltT3Interrupt) ? ABSOLUTE(__AltT3Interrupt) :\r
- (DEFINED(__T3Interrupt) ? ABSOLUTE(__T3Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltSPI1ErrInterrupt) ? ABSOLUTE(__AltSPI1ErrInterrupt) :\r
- (DEFINED(__SPI1ErrInterrupt) ? ABSOLUTE(__SPI1ErrInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltSPI1TInterrupt) ? ABSOLUTE(__AltSPI1TInterrupt) :\r
- (DEFINED(__SPI1TInterrupt) ? ABSOLUTE(__SPI1TInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltU1RXInterrupt) ? ABSOLUTE(__AltU1RXInterrupt) :\r
- (DEFINED(__U1RXInterrupt) ? ABSOLUTE(__U1RXInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltU1TXInterrupt) ? ABSOLUTE(__AltU1TXInterrupt) :\r
- (DEFINED(__U1TXInterrupt) ? ABSOLUTE(__U1TXInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltADC1Interrupt) ? ABSOLUTE(__AltADC1Interrupt) :\r
- (DEFINED(__ADC1Interrupt) ? ABSOLUTE(__ADC1Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt14) ? ABSOLUTE(__AltInterrupt14) :\r
- (DEFINED(__Interrupt14) ? ABSOLUTE(__Interrupt14) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt15) ? ABSOLUTE(__AltInterrupt15) :\r
- (DEFINED(__Interrupt15) ? ABSOLUTE(__Interrupt15) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltSI2C1Interrupt) ? ABSOLUTE(__AltSI2C1Interrupt) :\r
- (DEFINED(__SI2C1Interrupt) ? ABSOLUTE(__SI2C1Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltMI2C1Interrupt) ? ABSOLUTE(__AltMI2C1Interrupt) :\r
- (DEFINED(__MI2C1Interrupt) ? ABSOLUTE(__MI2C1Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltCompInterrupt) ? ABSOLUTE(__AltCompInterrupt) :\r
- (DEFINED(__CompInterrupt) ? ABSOLUTE(__CompInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltCNInterrupt) ? ABSOLUTE(__AltCNInterrupt) :\r
- (DEFINED(__CNInterrupt) ? ABSOLUTE(__CNInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltINT1Interrupt) ? ABSOLUTE(__AltINT1Interrupt) :\r
- (DEFINED(__INT1Interrupt) ? ABSOLUTE(__INT1Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt21) ? ABSOLUTE(__AltInterrupt21) :\r
- (DEFINED(__Interrupt21) ? ABSOLUTE(__Interrupt21) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt22) ? ABSOLUTE(__AltInterrupt22) :\r
- (DEFINED(__Interrupt22) ? ABSOLUTE(__Interrupt22) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt23) ? ABSOLUTE(__AltInterrupt23) :\r
- (DEFINED(__Interrupt23) ? ABSOLUTE(__Interrupt23) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt24) ? ABSOLUTE(__AltInterrupt24) :\r
- (DEFINED(__Interrupt24) ? ABSOLUTE(__Interrupt24) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltOC3Interrupt) ? ABSOLUTE(__AltOC3Interrupt) :\r
- (DEFINED(__OC3Interrupt) ? ABSOLUTE(__OC3Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltOC4Interrupt) ? ABSOLUTE(__AltOC4Interrupt) :\r
- (DEFINED(__OC4Interrupt) ? ABSOLUTE(__OC4Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltT4Interrupt) ? ABSOLUTE(__AltT4Interrupt) :\r
- (DEFINED(__T4Interrupt) ? ABSOLUTE(__T4Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltT5Interrupt) ? ABSOLUTE(__AltT5Interrupt) :\r
- (DEFINED(__T5Interrupt) ? ABSOLUTE(__T5Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltINT2Interrupt) ? ABSOLUTE(__AltINT2Interrupt) :\r
- (DEFINED(__INT2Interrupt) ? ABSOLUTE(__INT2Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltU2RXInterrupt) ? ABSOLUTE(__AltU2RXInterrupt) :\r
- (DEFINED(__U2RXInterrupt) ? ABSOLUTE(__U2RXInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltU2TXInterrupt) ? ABSOLUTE(__AltU2TXInterrupt) :\r
- (DEFINED(__U2TXInterrupt) ? ABSOLUTE(__U2TXInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltSPI2ErrInterrupt) ? ABSOLUTE(__AltSPI2ErrInterrupt) :\r
- (DEFINED(__SPI2ErrInterrupt) ? ABSOLUTE(__SPI2ErrInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltSPI2Interrupt) ? ABSOLUTE(__AltSPI2Interrupt) :\r
- (DEFINED(__SPI2Interrupt) ? ABSOLUTE(__SPI2Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt34) ? ABSOLUTE(__AltInterrupt34) :\r
- (DEFINED(__Interrupt34) ? ABSOLUTE(__Interrupt34) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt35) ? ABSOLUTE(__AltInterrupt35) :\r
- (DEFINED(__Interrupt35) ? ABSOLUTE(__Interrupt35) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt36) ? ABSOLUTE(__AltInterrupt36) :\r
- (DEFINED(__Interrupt36) ? ABSOLUTE(__Interrupt36) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltIC3Interrupt) ? ABSOLUTE(__AltIC3Interrupt) :\r
- (DEFINED(__IC3Interrupt) ? ABSOLUTE(__IC3Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltIC4Interrupt) ? ABSOLUTE(__AltIC4Interrupt) :\r
- (DEFINED(__IC4Interrupt) ? ABSOLUTE(__IC4Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltIC5Interrupt) ? ABSOLUTE(__AltIC5Interrupt) :\r
- (DEFINED(__IC5Interrupt) ? ABSOLUTE(__IC5Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt40) ? ABSOLUTE(__AltInterrupt40) :\r
- (DEFINED(__Interrupt40) ? ABSOLUTE(__Interrupt40) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltOC5Interrupt) ? ABSOLUTE(__AltOC5Interrupt) :\r
- (DEFINED(__OC5Interrupt) ? ABSOLUTE(__OC5Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt42) ? ABSOLUTE(__AltInterrupt42) :\r
- (DEFINED(__Interrupt42) ? ABSOLUTE(__Interrupt42) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt43) ? ABSOLUTE(__AltInterrupt43) :\r
- (DEFINED(__Interrupt43) ? ABSOLUTE(__Interrupt43) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt44) ? ABSOLUTE(__AltInterrupt44) :\r
- (DEFINED(__Interrupt44) ? ABSOLUTE(__Interrupt44) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltPMPInterrupt) ? ABSOLUTE(__AltPMPInterrupt) :\r
- (DEFINED(__PMPInterrupt) ? ABSOLUTE(__PMPInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt46) ? ABSOLUTE(__AltInterrupt46) :\r
- (DEFINED(__Interrupt46) ? ABSOLUTE(__Interrupt46) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt47) ? ABSOLUTE(__AltInterrupt47) :\r
- (DEFINED(__Interrupt47) ? ABSOLUTE(__Interrupt47) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt48) ? ABSOLUTE(__AltInterrupt48) :\r
- (DEFINED(__Interrupt48) ? ABSOLUTE(__Interrupt48) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltSI2C2Interrupt) ? ABSOLUTE(__AltSI2C2Interrupt) :\r
- (DEFINED(__SI2C2Interrupt) ? ABSOLUTE(__SI2C2Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltMI2C2Interrupt) ? ABSOLUTE(__AltMI2C2Interrupt) :\r
- (DEFINED(__MI2C2Interrupt) ? ABSOLUTE(__MI2C2Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt51) ? ABSOLUTE(__AltInterrupt51) :\r
- (DEFINED(__Interrupt51) ? ABSOLUTE(__Interrupt51) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt52) ? ABSOLUTE(__AltInterrupt52) :\r
- (DEFINED(__Interrupt52) ? ABSOLUTE(__Interrupt52) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltINT3Interrupt) ? ABSOLUTE(__AltINT3Interrupt) :\r
- (DEFINED(__INT3Interrupt) ? ABSOLUTE(__INT3Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltINT4Interrupt) ? ABSOLUTE(__AltINT4Interrupt) :\r
- (DEFINED(__INT4Interrupt) ? ABSOLUTE(__INT4Interrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt55) ? ABSOLUTE(__AltInterrupt55) :\r
- (DEFINED(__Interrupt55) ? ABSOLUTE(__Interrupt55) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt56) ? ABSOLUTE(__AltInterrupt56) :\r
- (DEFINED(__Interrupt56) ? ABSOLUTE(__Interrupt56) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt57) ? ABSOLUTE(__AltInterrupt57) :\r
- (DEFINED(__Interrupt57) ? ABSOLUTE(__Interrupt57) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt58) ? ABSOLUTE(__AltInterrupt58) :\r
- (DEFINED(__Interrupt58) ? ABSOLUTE(__Interrupt58) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt59) ? ABSOLUTE(__AltInterrupt59) :\r
- (DEFINED(__Interrupt59) ? ABSOLUTE(__Interrupt59) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt60) ? ABSOLUTE(__AltInterrupt60) :\r
- (DEFINED(__Interrupt60) ? ABSOLUTE(__Interrupt60) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt61) ? ABSOLUTE(__AltInterrupt61) :\r
- (DEFINED(__Interrupt61) ? ABSOLUTE(__Interrupt61) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltRTCCInterrupt) ? ABSOLUTE(__AltRTCCInterrupt) :\r
- (DEFINED(__RTCCInterrupt) ? ABSOLUTE(__RTCCInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt63) ? ABSOLUTE(__AltInterrupt63) :\r
- (DEFINED(__Interrupt63) ? ABSOLUTE(__Interrupt63) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt64) ? ABSOLUTE(__AltInterrupt64) :\r
- (DEFINED(__Interrupt64) ? ABSOLUTE(__Interrupt64) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltU1ErrInterrupt) ? ABSOLUTE(__AltU1ErrInterrupt) :\r
- (DEFINED(__U1ErrInterrupt) ? ABSOLUTE(__U1ErrInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltU2ErrInterrupt) ? ABSOLUTE(__AltU2ErrInterrupt) :\r
- (DEFINED(__U2ErrInterrupt) ? ABSOLUTE(__U2ErrInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltCRCInterrupt) ? ABSOLUTE(__AltCRCInterrupt) :\r
- (DEFINED(__CRCInterrupt) ? ABSOLUTE(__CRCInterrupt) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt68) ? ABSOLUTE(__AltInterrupt68) :\r
- (DEFINED(__Interrupt68) ? ABSOLUTE(__Interrupt68) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt69) ? ABSOLUTE(__AltInterrupt69) :\r
- (DEFINED(__Interrupt69) ? ABSOLUTE(__Interrupt69) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt70) ? ABSOLUTE(__AltInterrupt70) :\r
- (DEFINED(__Interrupt70) ? ABSOLUTE(__Interrupt70) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt71) ? ABSOLUTE(__AltInterrupt71) :\r
- (DEFINED(__Interrupt71) ? ABSOLUTE(__Interrupt71) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt72) ? ABSOLUTE(__AltInterrupt72) :\r
- (DEFINED(__Interrupt72) ? ABSOLUTE(__Interrupt72) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt73) ? ABSOLUTE(__AltInterrupt73) :\r
- (DEFINED(__Interrupt73) ? ABSOLUTE(__Interrupt73) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt74) ? ABSOLUTE(__AltInterrupt74) :\r
- (DEFINED(__Interrupt74) ? ABSOLUTE(__Interrupt74) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt75) ? ABSOLUTE(__AltInterrupt75) :\r
- (DEFINED(__Interrupt75) ? ABSOLUTE(__Interrupt75) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt76) ? ABSOLUTE(__AltInterrupt76) :\r
- (DEFINED(__Interrupt76) ? ABSOLUTE(__Interrupt76) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt77) ? ABSOLUTE(__AltInterrupt77) :\r
- (DEFINED(__Interrupt77) ? ABSOLUTE(__Interrupt77) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt78) ? ABSOLUTE(__AltInterrupt78) :\r
- (DEFINED(__Interrupt78) ? ABSOLUTE(__Interrupt78) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt79) ? ABSOLUTE(__AltInterrupt79) :\r
- (DEFINED(__Interrupt79) ? ABSOLUTE(__Interrupt79) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt80) ? ABSOLUTE(__AltInterrupt80) :\r
- (DEFINED(__Interrupt80) ? ABSOLUTE(__Interrupt80) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt81) ? ABSOLUTE(__AltInterrupt81) :\r
- (DEFINED(__Interrupt81) ? ABSOLUTE(__Interrupt81) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt82) ? ABSOLUTE(__AltInterrupt82) :\r
- (DEFINED(__Interrupt82) ? ABSOLUTE(__Interrupt82) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt83) ? ABSOLUTE(__AltInterrupt83) :\r
- (DEFINED(__Interrupt83) ? ABSOLUTE(__Interrupt83) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt84) ? ABSOLUTE(__AltInterrupt84) :\r
- (DEFINED(__Interrupt84) ? ABSOLUTE(__Interrupt84) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt85) ? ABSOLUTE(__AltInterrupt85) :\r
- (DEFINED(__Interrupt85) ? ABSOLUTE(__Interrupt85) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt86) ? ABSOLUTE(__AltInterrupt86) :\r
- (DEFINED(__Interrupt86) ? ABSOLUTE(__Interrupt86) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt87) ? ABSOLUTE(__AltInterrupt87) :\r
- (DEFINED(__Interrupt87) ? ABSOLUTE(__Interrupt87) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt88) ? ABSOLUTE(__AltInterrupt88) :\r
- (DEFINED(__Interrupt88) ? ABSOLUTE(__Interrupt88) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt89) ? ABSOLUTE(__AltInterrupt89) :\r
- (DEFINED(__Interrupt89) ? ABSOLUTE(__Interrupt89) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt90) ? ABSOLUTE(__AltInterrupt90) :\r
- (DEFINED(__Interrupt90) ? ABSOLUTE(__Interrupt90) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt91) ? ABSOLUTE(__AltInterrupt91) :\r
- (DEFINED(__Interrupt91) ? ABSOLUTE(__Interrupt91) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt92) ? ABSOLUTE(__AltInterrupt92) :\r
- (DEFINED(__Interrupt92) ? ABSOLUTE(__Interrupt92) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt93) ? ABSOLUTE(__AltInterrupt93) :\r
- (DEFINED(__Interrupt93) ? ABSOLUTE(__Interrupt93) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt94) ? ABSOLUTE(__AltInterrupt94) :\r
- (DEFINED(__Interrupt94) ? ABSOLUTE(__Interrupt94) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt95) ? ABSOLUTE(__AltInterrupt95) :\r
- (DEFINED(__Interrupt95) ? ABSOLUTE(__Interrupt95) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt96) ? ABSOLUTE(__AltInterrupt96) :\r
- (DEFINED(__Interrupt96) ? ABSOLUTE(__Interrupt96) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt97) ? ABSOLUTE(__AltInterrupt97) :\r
- (DEFINED(__Interrupt97) ? ABSOLUTE(__Interrupt97) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt98) ? ABSOLUTE(__AltInterrupt98) :\r
- (DEFINED(__Interrupt98) ? ABSOLUTE(__Interrupt98) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt99) ? ABSOLUTE(__AltInterrupt99) :\r
- (DEFINED(__Interrupt99) ? ABSOLUTE(__Interrupt99) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt100) ? ABSOLUTE(__AltInterrupt100) :\r
- (DEFINED(__Interrupt100) ? ABSOLUTE(__Interrupt100) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt101) ? ABSOLUTE(__AltInterrupt101) :\r
- (DEFINED(__Interrupt101) ? ABSOLUTE(__Interrupt101) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt102) ? ABSOLUTE(__AltInterrupt102) :\r
- (DEFINED(__Interrupt102) ? ABSOLUTE(__Interrupt102) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt103) ? ABSOLUTE(__AltInterrupt103) :\r
- (DEFINED(__Interrupt103) ? ABSOLUTE(__Interrupt103) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt104) ? ABSOLUTE(__AltInterrupt104) :\r
- (DEFINED(__Interrupt104) ? ABSOLUTE(__Interrupt104) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt105) ? ABSOLUTE(__AltInterrupt105) :\r
- (DEFINED(__Interrupt105) ? ABSOLUTE(__Interrupt105) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt106) ? ABSOLUTE(__AltInterrupt106) :\r
- (DEFINED(__Interrupt106) ? ABSOLUTE(__Interrupt106) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt107) ? ABSOLUTE(__AltInterrupt107) :\r
- (DEFINED(__Interrupt107) ? ABSOLUTE(__Interrupt107) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt108) ? ABSOLUTE(__AltInterrupt108) :\r
- (DEFINED(__Interrupt108) ? ABSOLUTE(__Interrupt108) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt109) ? ABSOLUTE(__AltInterrupt109) :\r
- (DEFINED(__Interrupt109) ? ABSOLUTE(__Interrupt109) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt110) ? ABSOLUTE(__AltInterrupt110) :\r
- (DEFINED(__Interrupt110) ? ABSOLUTE(__Interrupt110) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt111) ? ABSOLUTE(__AltInterrupt111) :\r
- (DEFINED(__Interrupt111) ? ABSOLUTE(__Interrupt111) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt112) ? ABSOLUTE(__AltInterrupt112) :\r
- (DEFINED(__Interrupt112) ? ABSOLUTE(__Interrupt112) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt113) ? ABSOLUTE(__AltInterrupt113) :\r
- (DEFINED(__Interrupt113) ? ABSOLUTE(__Interrupt113) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt114) ? ABSOLUTE(__AltInterrupt114) :\r
- (DEFINED(__Interrupt114) ? ABSOLUTE(__Interrupt114) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt115) ? ABSOLUTE(__AltInterrupt115) :\r
- (DEFINED(__Interrupt115) ? ABSOLUTE(__Interrupt115) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt116) ? ABSOLUTE(__AltInterrupt116) :\r
- (DEFINED(__Interrupt116) ? ABSOLUTE(__Interrupt116) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- LONG( DEFINED(__AltInterrupt117) ? ABSOLUTE(__AltInterrupt117) :\r
- (DEFINED(__Interrupt117) ? ABSOLUTE(__Interrupt117) :\r
- ABSOLUTE(__DefaultInterrupt)));\r
- } >aivt\r
-} /* SECTIONS */\r
-\r
-\r
-/*\r
-** ============== Equates for SFR Addresses =============\r
-*/\r
-\r
- WREG0 = 0x0;\r
-_WREG0 = 0x0;\r
- WREG1 = 0x2;\r
-_WREG1 = 0x2;\r
- WREG2 = 0x4;\r
-_WREG2 = 0x4;\r
- WREG3 = 0x6;\r
-_WREG3 = 0x6;\r
- WREG4 = 0x8;\r
-_WREG4 = 0x8;\r
- WREG5 = 0xA;\r
-_WREG5 = 0xA;\r
- WREG6 = 0xC;\r
-_WREG6 = 0xC;\r
- WREG7 = 0xE;\r
-_WREG7 = 0xE;\r
- WREG8 = 0x10;\r
-_WREG8 = 0x10;\r
- WREG9 = 0x12;\r
-_WREG9 = 0x12;\r
- WREG10 = 0x14;\r
-_WREG10 = 0x14;\r
- WREG11 = 0x16;\r
-_WREG11 = 0x16;\r
- WREG12 = 0x18;\r
-_WREG12 = 0x18;\r
- WREG13 = 0x1A;\r
-_WREG13 = 0x1A;\r
- WREG14 = 0x1C;\r
-_WREG14 = 0x1C;\r
- WREG15 = 0x1E;\r
-_WREG15 = 0x1E;\r
- SPLIM = 0x20;\r
-_SPLIM = 0x20;\r
- PCL = 0x2E;\r
-_PCL = 0x2E;\r
- PCH = 0x30;\r
-_PCH = 0x30;\r
- TBLPAG = 0x32;\r
-_TBLPAG = 0x32;\r
- PSVPAG = 0x34;\r
-_PSVPAG = 0x34;\r
- RCOUNT = 0x36;\r
-_RCOUNT = 0x36;\r
- SR = 0x42;\r
-_SR = 0x42;\r
-_SRbits = 0x42;\r
- CORCON = 0x44;\r
-_CORCON = 0x44;\r
-_CORCONbits = 0x44;\r
- DISICNT = 0x52;\r
-_DISICNT = 0x52;\r
- CNEN1 = 0x60;\r
-_CNEN1 = 0x60;\r
-_CNEN1bits = 0x60;\r
- CNEN2 = 0x62;\r
-_CNEN2 = 0x62;\r
-_CNEN2bits = 0x62;\r
- CNPU1 = 0x68;\r
-_CNPU1 = 0x68;\r
-_CNPU1bits = 0x68;\r
- CNPU2 = 0x6A;\r
-_CNPU2 = 0x6A;\r
-_CNPU2bits = 0x6A;\r
- INTCON1 = 0x80;\r
-_INTCON1 = 0x80;\r
-_INTCON1bits = 0x80;\r
- INTCON2 = 0x82;\r
-_INTCON2 = 0x82;\r
-_INTCON2bits = 0x82;\r
- IFS0 = 0x84;\r
-_IFS0 = 0x84;\r
-_IFS0bits = 0x84;\r
- IFS1 = 0x86;\r
-_IFS1 = 0x86;\r
-_IFS1bits = 0x86;\r
- IFS2 = 0x88;\r
-_IFS2 = 0x88;\r
-_IFS2bits = 0x88;\r
- IFS3 = 0x8A;\r
-_IFS3 = 0x8A;\r
-_IFS3bits = 0x8A;\r
- IFS4 = 0x8C;\r
-_IFS4 = 0x8C;\r
-_IFS4bits = 0x8C;\r
- IEC0 = 0x94;\r
-_IEC0 = 0x94;\r
-_IEC0bits = 0x94;\r
- IEC1 = 0x96;\r
-_IEC1 = 0x96;\r
-_IEC1bits = 0x96;\r
- IEC2 = 0x98;\r
-_IEC2 = 0x98;\r
-_IEC2bits = 0x98;\r
- IEC3 = 0x9A;\r
-_IEC3 = 0x9A;\r
-_IEC3bits = 0x9A;\r
- IEC4 = 0x9C;\r
-_IEC4 = 0x9C;\r
-_IEC4bits = 0x9C;\r
- IPC0 = 0xA4;\r
-_IPC0 = 0xA4;\r
-_IPC0bits = 0xA4;\r
- IPC1 = 0xA6;\r
-_IPC1 = 0xA6;\r
-_IPC1bits = 0xA6;\r
- IPC2 = 0xA8;\r
-_IPC2 = 0xA8;\r
-_IPC2bits = 0xA8;\r
- IPC3 = 0xAA;\r
-_IPC3 = 0xAA;\r
-_IPC3bits = 0xAA;\r
- IPC4 = 0xAC;\r
-_IPC4 = 0xAC;\r
-_IPC4bits = 0xAC;\r
- IPC5 = 0xAE;\r
-_IPC5 = 0xAE;\r
-_IPC5bits = 0xAE;\r
- IPC6 = 0xB0;\r
-_IPC6 = 0xB0;\r
-_IPC6bits = 0xB0;\r
- IPC7 = 0xB2;\r
-_IPC7 = 0xB2;\r
-_IPC7bits = 0xB2;\r
- IPC8 = 0xB4;\r
-_IPC8 = 0xB4;\r
-_IPC8bits = 0xB4;\r
- IPC9 = 0xB6;\r
-_IPC9 = 0xB6;\r
-_IPC9bits = 0xB6;\r
- IPC10 = 0xB8;\r
-_IPC10 = 0xB8;\r
-_IPC10bits = 0xB8;\r
- IPC11 = 0xBA;\r
-_IPC11 = 0xBA;\r
-_IPC11bits = 0xBA;\r
- IPC12 = 0xBC;\r
-_IPC12 = 0xBC;\r
-_IPC12bits = 0xBC;\r
- IPC13 = 0xBE;\r
-_IPC13 = 0xBE;\r
-_IPC13bits = 0xBE;\r
- IPC15 = 0xC2;\r
-_IPC15 = 0xC2;\r
-_IPC15bits = 0xC2;\r
- IPC16 = 0xC4;\r
-_IPC16 = 0xC4;\r
-_IPC16bits = 0xC4;\r
- TMR1 = 0x100;\r
-_TMR1 = 0x100;\r
- PR1 = 0x102;\r
-_PR1 = 0x102;\r
- T1CON = 0x104;\r
-_T1CON = 0x104;\r
-_T1CONbits = 0x104;\r
- TMR2 = 0x106;\r
-_TMR2 = 0x106;\r
- TMR3HLD = 0x108;\r
-_TMR3HLD = 0x108;\r
- TMR3 = 0x10A;\r
-_TMR3 = 0x10A;\r
- PR2 = 0x10C;\r
-_PR2 = 0x10C;\r
- PR3 = 0x10E;\r
-_PR3 = 0x10E;\r
- T2CON = 0x110;\r
-_T2CON = 0x110;\r
-_T2CONbits = 0x110;\r
- T3CON = 0x112;\r
-_T3CON = 0x112;\r
-_T3CONbits = 0x112;\r
- TMR4 = 0x114;\r
-_TMR4 = 0x114;\r
- TMR5HLD = 0x116;\r
-_TMR5HLD = 0x116;\r
- TMR5 = 0x118;\r
-_TMR5 = 0x118;\r
- PR4 = 0x11A;\r
-_PR4 = 0x11A;\r
- PR5 = 0x11C;\r
-_PR5 = 0x11C;\r
- T4CON = 0x11E;\r
-_T4CON = 0x11E;\r
-_T4CONbits = 0x11E;\r
- T5CON = 0x120;\r
-_T5CON = 0x120;\r
-_T5CONbits = 0x120;\r
- IC1BUF = 0x140;\r
-_IC1BUF = 0x140;\r
- IC1CON = 0x142;\r
-_IC1CON = 0x142;\r
-_IC1CONbits = 0x142;\r
- IC2BUF = 0x144;\r
-_IC2BUF = 0x144;\r
- IC2CON = 0x146;\r
-_IC2CON = 0x146;\r
-_IC2CONbits = 0x146;\r
- IC3BUF = 0x148;\r
-_IC3BUF = 0x148;\r
- IC3CON = 0x14A;\r
-_IC3CON = 0x14A;\r
-_IC3CONbits = 0x14A;\r
- IC4BUF = 0x14C;\r
-_IC4BUF = 0x14C;\r
- IC4CON = 0x14E;\r
-_IC4CON = 0x14E;\r
-_IC4CONbits = 0x14E;\r
- IC5BUF = 0x150;\r
-_IC5BUF = 0x150;\r
- IC5CON = 0x152;\r
-_IC5CON = 0x152;\r
-_IC5CONbits = 0x152;\r
- OC1RS = 0x180;\r
-_OC1RS = 0x180;\r
- OC1R = 0x182;\r
-_OC1R = 0x182;\r
- OC1CON = 0x184;\r
-_OC1CON = 0x184;\r
-_OC1CONbits = 0x184;\r
- OC2RS = 0x186;\r
-_OC2RS = 0x186;\r
- OC2R = 0x188;\r
-_OC2R = 0x188;\r
- OC2CON = 0x18A;\r
-_OC2CON = 0x18A;\r
-_OC2CONbits = 0x18A;\r
- OC3RS = 0x18C;\r
-_OC3RS = 0x18C;\r
- OC3R = 0x18E;\r
-_OC3R = 0x18E;\r
- OC3CON = 0x190;\r
-_OC3CON = 0x190;\r
-_OC3CONbits = 0x190;\r
- OC4RS = 0x192;\r
-_OC4RS = 0x192;\r
- OC4R = 0x194;\r
-_OC4R = 0x194;\r
- OC4CON = 0x196;\r
-_OC4CON = 0x196;\r
-_OC4CONbits = 0x196;\r
- OC5RS = 0x198;\r
-_OC5RS = 0x198;\r
- OC5R = 0x19A;\r
-_OC5R = 0x19A;\r
- OC5CON = 0x19C;\r
-_OC5CON = 0x19C;\r
-_OC5CONbits = 0x19C;\r
- I2C1RCV = 0x200;\r
-_I2C1RCV = 0x200;\r
- I2C1TRN = 0x202;\r
-_I2C1TRN = 0x202;\r
- I2C1BRG = 0x204;\r
-_I2C1BRG = 0x204;\r
- I2C1CON = 0x206;\r
-_I2C1CON = 0x206;\r
-_I2C1CONbits = 0x206;\r
- I2C1STAT = 0x208;\r
-_I2C1STAT = 0x208;\r
-_I2C1STATbits = 0x208;\r
- I2C1ADD = 0x20A;\r
-_I2C1ADD = 0x20A;\r
- I2C1MSK = 0x20C;\r
-_I2C1MSK = 0x20C;\r
- I2C2RCV = 0x210;\r
-_I2C2RCV = 0x210;\r
- I2C2TRN = 0x212;\r
-_I2C2TRN = 0x212;\r
- I2C2BRG = 0x214;\r
-_I2C2BRG = 0x214;\r
- I2C2CON = 0x216;\r
-_I2C2CON = 0x216;\r
-_I2C2CONbits = 0x216;\r
- I2C2STAT = 0x218;\r
-_I2C2STAT = 0x218;\r
-_I2C2STATbits = 0x218;\r
- I2C2ADD = 0x21A;\r
-_I2C2ADD = 0x21A;\r
- I2C2MSK = 0x21C;\r
-_I2C2MSK = 0x21C;\r
- U1MODE = 0x220;\r
-_U1MODE = 0x220;\r
-_U1MODEbits = 0x220;\r
- U1STA = 0x222;\r
-_U1STA = 0x222;\r
-_U1STAbits = 0x222;\r
- U1TXREG = 0x224;\r
-_U1TXREG = 0x224;\r
- U1RXREG = 0x226;\r
-_U1RXREG = 0x226;\r
- U1BRG = 0x228;\r
-_U1BRG = 0x228;\r
- U2MODE = 0x230;\r
-_U2MODE = 0x230;\r
-_U2MODEbits = 0x230;\r
- U2STA = 0x232;\r
-_U2STA = 0x232;\r
-_U2STAbits = 0x232;\r
- U2TXREG = 0x234;\r
-_U2TXREG = 0x234;\r
- U2RXREG = 0x236;\r
-_U2RXREG = 0x236;\r
- U2BRG = 0x238;\r
-_U2BRG = 0x238;\r
- SPI1STAT = 0x240;\r
-_SPI1STAT = 0x240;\r
-_SPI1STATbits = 0x240;\r
- SPI1CON1 = 0x242;\r
-_SPI1CON1 = 0x242;\r
-_SPI1CON1bits = 0x242;\r
- SPI1CON2 = 0x244;\r
-_SPI1CON2 = 0x244;\r
-_SPI1CON2bits = 0x244;\r
- SPI1BUF = 0x248;\r
-_SPI1BUF = 0x248;\r
- SPI2STAT = 0x260;\r
-_SPI2STAT = 0x260;\r
-_SPI2STATbits = 0x260;\r
- SPI2CON1 = 0x262;\r
-_SPI2CON1 = 0x262;\r
-_SPI2CON1bits = 0x262;\r
- SPI2CON2 = 0x264;\r
-_SPI2CON2 = 0x264;\r
-_SPI2CON2bits = 0x264;\r
- SPI2BUF = 0x268;\r
-_SPI2BUF = 0x268;\r
- TRISA = 0x2C0;\r
-_TRISA = 0x2C0;\r
-_TRISAbits = 0x2C0;\r
- PORTA = 0x2C2;\r
-_PORTA = 0x2C2;\r
-_PORTAbits = 0x2C2;\r
- LATA = 0x2C4;\r
-_LATA = 0x2C4;\r
-_LATAbits = 0x2C4;\r
- TRISB = 0x2C6;\r
-_TRISB = 0x2C6;\r
-_TRISBbits = 0x2C6;\r
- PORTB = 0x2C8;\r
-_PORTB = 0x2C8;\r
-_PORTBbits = 0x2C8;\r
- LATB = 0x2CA;\r
-_LATB = 0x2CA;\r
-_LATBbits = 0x2CA;\r
- TRISC = 0x2CC;\r
-_TRISC = 0x2CC;\r
-_TRISCbits = 0x2CC;\r
- PORTC = 0x2CE;\r
-_PORTC = 0x2CE;\r
-_PORTCbits = 0x2CE;\r
- LATC = 0x2D0;\r
-_LATC = 0x2D0;\r
-_LATCbits = 0x2D0;\r
- TRISD = 0x2D2;\r
-_TRISD = 0x2D2;\r
-_TRISDbits = 0x2D2;\r
- PORTD = 0x2D4;\r
-_PORTD = 0x2D4;\r
-_PORTDbits = 0x2D4;\r
- LATD = 0x2D6;\r
-_LATD = 0x2D6;\r
-_LATDbits = 0x2D6;\r
- TRISE = 0x2D8;\r
-_TRISE = 0x2D8;\r
-_TRISEbits = 0x2D8;\r
- PORTE = 0x2DA;\r
-_PORTE = 0x2DA;\r
-_PORTEbits = 0x2DA;\r
- LATE = 0x2DC;\r
-_LATE = 0x2DC;\r
-_LATEbits = 0x2DC;\r
- TRISF = 0x2DE;\r
-_TRISF = 0x2DE;\r
-_TRISFbits = 0x2DE;\r
- PORTF = 0x2E0;\r
-_PORTF = 0x2E0;\r
-_PORTFbits = 0x2E0;\r
- LATF = 0x2E2;\r
-_LATF = 0x2E2;\r
-_LATFbits = 0x2E2;\r
- TRISG = 0x2E4;\r
-_TRISG = 0x2E4;\r
-_TRISGbits = 0x2E4;\r
- PORTG = 0x2E6;\r
-_PORTG = 0x2E6;\r
-_PORTGbits = 0x2E6;\r
- LATG = 0x2E8;\r
-_LATG = 0x2E8;\r
-_LATGbits = 0x2E8;\r
- PADCFG1 = 0x2FC;\r
-_PADCFG1 = 0x2FC;\r
-_PADCFG1bits = 0x2FC;\r
- ADC1BUF0 = 0x300;\r
-_ADC1BUF0 = 0x300;\r
- ADC1BUF1 = 0x302;\r
-_ADC1BUF1 = 0x302;\r
- ADC1BUF2 = 0x304;\r
-_ADC1BUF2 = 0x304;\r
- ADC1BUF3 = 0x306;\r
-_ADC1BUF3 = 0x306;\r
- ADC1BUF4 = 0x308;\r
-_ADC1BUF4 = 0x308;\r
- ADC1BUF5 = 0x30A;\r
-_ADC1BUF5 = 0x30A;\r
- ADC1BUF6 = 0x30C;\r
-_ADC1BUF6 = 0x30C;\r
- ADC1BUF7 = 0x30E;\r
-_ADC1BUF7 = 0x30E;\r
- ADC1BUF8 = 0x310;\r
-_ADC1BUF8 = 0x310;\r
- ADC1BUF9 = 0x312;\r
-_ADC1BUF9 = 0x312;\r
- ADC1BUFA = 0x314;\r
-_ADC1BUFA = 0x314;\r
- ADC1BUFB = 0x316;\r
-_ADC1BUFB = 0x316;\r
- ADC1BUFC = 0x318;\r
-_ADC1BUFC = 0x318;\r
- ADC1BUFD = 0x31A;\r
-_ADC1BUFD = 0x31A;\r
- ADC1BUFE = 0x31C;\r
-_ADC1BUFE = 0x31C;\r
- ADC1BUFF = 0x31E;\r
-_ADC1BUFF = 0x31E;\r
- AD1CON1 = 0x320;\r
-_AD1CON1 = 0x320;\r
-_AD1CON1bits = 0x320;\r
- AD1CON2 = 0x322;\r
-_AD1CON2 = 0x322;\r
-_AD1CON2bits = 0x322;\r
- AD1CON3 = 0x324;\r
-_AD1CON3 = 0x324;\r
-_AD1CON3bits = 0x324;\r
- AD1CHS = 0x328;\r
-_AD1CHS = 0x328;\r
-_AD1CHSbits = 0x328;\r
- AD1PCFG = 0x32C;\r
-_AD1PCFG = 0x32C;\r
-_AD1PCFGbits = 0x32C;\r
- AD1CSSL = 0x330;\r
-_AD1CSSL = 0x330;\r
-_AD1CSSLbits = 0x330;\r
- PMCON = 0x600;\r
-_PMCON = 0x600;\r
-_PMCONbits = 0x600;\r
- PMMODE = 0x602;\r
-_PMMODE = 0x602;\r
-_PMMODEbits = 0x602;\r
- PMADDR = 0x604;\r
-_PMADDR = 0x604;\r
-_PMADDRbits = 0x604;\r
- PMDOUT1 = 0x604;\r
-_PMDOUT1 = 0x604;\r
- PMDOUT2 = 0x606;\r
-_PMDOUT2 = 0x606;\r
- PMDIN1 = 0x608;\r
-_PMDIN1 = 0x608;\r
- PMDIN2 = 0x60A;\r
-_PMDIN2 = 0x60A;\r
- PMPEN = 0x60C;\r
-_PMPEN = 0x60C;\r
-_PMPENbits = 0x60C;\r
- PMSTAT = 0x60E;\r
-_PMSTAT = 0x60E;\r
-_PMSTATbits = 0x60E;\r
- ALRMVAL = 0x620;\r
-_ALRMVAL = 0x620;\r
- ALCFGRPT = 0x622;\r
-_ALCFGRPT = 0x622;\r
-_ALCFGRPTbits = 0x622;\r
- RTCVAL = 0x624;\r
-_RTCVAL = 0x624;\r
- RCFGCAL = 0x626;\r
-_RCFGCAL = 0x626;\r
-_RCFGCALbits = 0x626;\r
- CMCON = 0x630;\r
-_CMCON = 0x630;\r
-_CMCONbits = 0x630;\r
- CVRCON = 0x632;\r
-_CVRCON = 0x632;\r
-_CVRCONbits = 0x632;\r
- CRCCON = 0x640;\r
-_CRCCON = 0x640;\r
-_CRCCONbits = 0x640;\r
- CRCXOR = 0x642;\r
-_CRCXOR = 0x642;\r
- CRCDAT = 0x644;\r
-_CRCDAT = 0x644;\r
- CRCWDAT = 0x646;\r
-_CRCWDAT = 0x646;\r
- ODCA = 0x6C0;\r
-_ODCA = 0x6C0;\r
-_ODCAbits = 0x6C0;\r
- ODCB = 0x6C6;\r
-_ODCB = 0x6C6;\r
-_ODCBbits = 0x6C6;\r
- ODCC = 0x6CC;\r
-_ODCC = 0x6CC;\r
-_ODCCbits = 0x6CC;\r
- ODCD = 0x6D2;\r
-_ODCD = 0x6D2;\r
-_ODCDbits = 0x6D2;\r
- ODCE = 0x6D8;\r
-_ODCE = 0x6D8;\r
-_ODCEbits = 0x6D8;\r
- ODCF = 0x6DE;\r
-_ODCF = 0x6DE;\r
-_ODCFbits = 0x6DE;\r
- ODCG = 0x6E4;\r
-_ODCG = 0x6E4;\r
-_ODCGbits = 0x6E4;\r
- RCON = 0x740;\r
-_RCON = 0x740;\r
-_RCONbits = 0x740;\r
- OSCCON = 0x742;\r
-_OSCCON = 0x742;\r
-_OSCCONbits = 0x742;\r
- CLKDIV = 0x744;\r
-_CLKDIV = 0x744;\r
-_CLKDIVbits = 0x744;\r
- OSCTUN = 0x748;\r
-_OSCTUN = 0x748;\r
-_OSCTUNbits = 0x748;\r
- NVMCON = 0x760;\r
-_NVMCON = 0x760;\r
-_NVMCONbits = 0x760;\r
- NVMKEY = 0x766;\r
-_NVMKEY = 0x766;\r
- PMD1 = 0x770;\r
-_PMD1 = 0x770;\r
-_PMD1bits = 0x770;\r
- PMD2 = 0x772;\r
-_PMD2 = 0x772;\r
-_PMD2bits = 0x772;\r
- PMD3 = 0x774;\r
-_PMD3 = 0x774;\r
-_PMD3bits = 0x774;\r
+/*
+** Linker script for PIC24FJ128GA010
+*/
+
+OUTPUT_ARCH("24FJ128GA010")
+CRT0_STARTUP(crt0_standard.o)
+CRT1_STARTUP(crt1_standard.o)
+
+OPTIONAL(-lpPIC24Fxxx)
+
+/*
+** Memory Regions
+*/
+MEMORY
+{
+ data (a!xr) : ORIGIN = 0x800, LENGTH = 0x2000
+ reset : ORIGIN = 0x0, LENGTH = 0x4
+ ivt : ORIGIN = 0x4, LENGTH = 0xFC
+ aivt : ORIGIN = 0x104, LENGTH = 0xFC
+ program (xr) : ORIGIN = 0x200, LENGTH = 0x155FC
+ config2 : ORIGIN = 0x157FC, LENGTH = 0x2
+ config1 : ORIGIN = 0x157FE, LENGTH = 0x2
+}
+
+__CONFIG2 = 0x157FC;
+__CONFIG1 = 0x157FE;
+
+__IVT_BASE = 0x4;
+__AIVT_BASE = 0x104;
+__DATA_BASE = 0x800;
+__CODE_BASE = 0x200;
+
+
+/*
+** ==================== Section Map ======================
+*/
+SECTIONS
+{
+ /*
+ ** ========== Program Memory ==========
+ */
+
+
+ /*
+ ** Reset Instruction
+ */
+ .reset :
+ {
+ SHORT(ABSOLUTE(__reset));
+ SHORT(0x04);
+ SHORT((ABSOLUTE(__reset) >> 16) & 0x7F);
+ SHORT(0);
+ } >reset
+
+
+ /*
+ ** Interrupt Vector Tables
+ **
+ ** The primary and alternate tables are loaded
+ ** here, between sections .reset and .text.
+ ** Vector table source code appears below.
+ */
+
+
+ /*
+ ** User Code and Library Code
+ **
+ ** This section must not be assigned to __CODE_BASE,
+ ** because CodeGuard(tm) sections may be located there.
+ **
+ ** Note that input sections *(.text) are not mapped here.
+ ** The best-fit allocator locates them, so that .text
+ ** may flow around PSV sections as needed.
+ */
+ .text :
+ {
+ *(.init);
+ *(.user_init);
+ *(.handle);
+ *(.libc) *(.libm) *(.libdsp); /* keep together in this order */
+ *(.lib*);
+ } >program
+
+
+ /*
+ ** User-Defined Section in Program Memory
+ **
+ ** note: can specify an address using
+ ** the following syntax:
+ **
+ ** usercode 0x1234 :
+ ** {
+ ** *(usercode);
+ ** } >program
+ */
+ usercode :
+ {
+ *(usercode);
+ } >program
+
+
+ /*
+ ** User-Defined Constants in Program Memory
+ **
+ ** For PSV type sections, the Load Memory Address (LMA)
+ ** should be specified as follows:
+ **
+ ** userconst : AT(0x1234)
+ ** {
+ ** *(userconst);
+ ** } >program
+ **
+ ** Note that mapping PSV sections in linker scripts
+ ** is not generally recommended.
+ **
+ ** Because of page alignment restrictions, memory is
+ ** often used more efficiently when PSV sections
+ ** do not appear in the linker script.
+ **
+ ** For more information on memory allocation,
+ ** please refer to chapter 10, 'Linker Processing'
+ ** in the Assembler, Linker manual (DS51317).
+ */
+
+
+ /*
+ ** Configuration Words
+ */
+ __CONFIG2 :
+ { *(__CONFIG2.sec) } >config2
+ __CONFIG1 :
+ { *(__CONFIG1.sec) } >config1
+
+
+ /*
+ ** =========== Data Memory ===========
+ */
+
+
+ /*
+ ** ICD Debug Exec
+ **
+ ** This section provides optional storage for
+ ** the ICD2 debugger. Define a global symbol
+ ** named __ICD2RAM to enable ICD2. This section
+ ** must be loaded at data address 0x800.
+ */
+ .icd __DATA_BASE (NOLOAD):
+ {
+ . += (DEFINED (__ICD2RAM) ? 0x50 : 0 );
+ } > data
+
+
+ /*
+ ** Other sections in data memory are not explicitly mapped.
+ ** Instead they are allocated according to their section
+ ** attributes, which is most efficient.
+ **
+ ** If a specific arrangement of sections is required
+ ** (other than what can be achieved using attributes)
+ ** additional sections may be defined here. See chapter
+ ** 10.5 in the MPLAB ASM30/LINK30 User's Guide (DS51317)
+ ** for more information.
+ */
+
+
+ /*
+ ** ========== Debug Info ==============
+ */
+
+ .comment 0 : { *(.comment) }
+
+ /*
+ ** DWARF-2
+ */
+ .debug_info 0 : { *(.debug_info) *(.gnu.linkonce.wi.*) }
+ .debug_abbrev 0 : { *(.debug_abbrev) }
+ .debug_line 0 : { *(.debug_line) }
+ .debug_frame 0 : { *(.debug_frame) }
+ .debug_str 0 : { *(.debug_str) }
+ .debug_loc 0 : { *(.debug_loc) }
+ .debug_macinfo 0 : { *(.debug_macinfo) }
+ .debug_pubnames 0 : { *(.debug_pubnames) }
+ .debug_ranges 0 : { *(.debug_ranges) }
+ .debug_aranges 0 : { *(.debug_aranges) }
+
+} /* SECTIONS */
+
+/*
+** ================= End of Section Map ================
+*/
+
+/*
+** Section Map for Interrupt Vector Tables
+*/
+SECTIONS
+{
+
+/*
+** Interrupt Vector Table
+*/
+.ivt __IVT_BASE :
+ {
+ LONG( DEFINED(__ReservedTrap0) ? ABSOLUTE(__ReservedTrap0) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__OscillatorFail) ? ABSOLUTE(__OscillatorFail) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__AddressError) ? ABSOLUTE(__AddressError) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__StackError) ? ABSOLUTE(__StackError) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__MathError) ? ABSOLUTE(__MathError) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__ReservedTrap5) ? ABSOLUTE(__ReservedTrap5) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__ReservedTrap6) ? ABSOLUTE(__ReservedTrap6) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__ReservedTrap7) ? ABSOLUTE(__ReservedTrap7) :
+ ABSOLUTE(__DefaultInterrupt));
+
+ LONG( DEFINED(__INT0Interrupt) ? ABSOLUTE(__INT0Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__IC1Interrupt) ? ABSOLUTE(__IC1Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__OC1Interrupt) ? ABSOLUTE(__OC1Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__T1Interrupt) ? ABSOLUTE(__T1Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt4) ? ABSOLUTE(__Interrupt4) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__IC2Interrupt) ? ABSOLUTE(__IC2Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__OC2Interrupt) ? ABSOLUTE(__OC2Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__T2Interrupt) ? ABSOLUTE(__T2Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__T3Interrupt) ? ABSOLUTE(__T3Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__SPI1ErrInterrupt) ? ABSOLUTE(__SPI1ErrInterrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__SPI1Interrupt) ? ABSOLUTE(__SPI1Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__U1RXInterrupt) ? ABSOLUTE(__U1RXInterrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__U1TXInterrupt) ? ABSOLUTE(__U1TXInterrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__ADC1Interrupt) ? ABSOLUTE(__ADC1Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt14) ? ABSOLUTE(__Interrupt14) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt15) ? ABSOLUTE(__Interrupt15) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__SI2C1Interrupt) ? ABSOLUTE(__SI2C1Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__MI2C1Interrupt) ? ABSOLUTE(__MI2C1Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__CompInterrupt) ? ABSOLUTE(__CompInterrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__CNInterrupt) ? ABSOLUTE(__CNInterrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__INT1Interrupt) ? ABSOLUTE(__INT1Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt21) ? ABSOLUTE(__Interrupt21) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt22) ? ABSOLUTE(__Interrupt22) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt23) ? ABSOLUTE(__Interrupt23) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt24) ? ABSOLUTE(__Interrupt24) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__OC3Interrupt) ? ABSOLUTE(__OC3Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__OC4Interrupt) ? ABSOLUTE(__OC4Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__T4Interrupt) ? ABSOLUTE(__T4Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__T5Interrupt) ? ABSOLUTE(__T5Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__INT2Interrupt) ? ABSOLUTE(__INT2Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__U2RXInterrupt) ? ABSOLUTE(__U2RXInterrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__U2TXInterrupt) ? ABSOLUTE(__U2TXInterrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__SPI2ErrInterrupt) ? ABSOLUTE(__SPI2ErrInterrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__SPI2Interrupt) ? ABSOLUTE(__SPI2Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt34) ? ABSOLUTE(__Interrupt34) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt35) ? ABSOLUTE(__Interrupt35) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt36) ? ABSOLUTE(__Interrupt36) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__IC3Interrupt) ? ABSOLUTE(__IC3Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__IC4Interrupt) ? ABSOLUTE(__IC4Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__IC5Interrupt) ? ABSOLUTE(__IC5Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt40) ? ABSOLUTE(__Interrupt40) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__OC5Interrupt) ? ABSOLUTE(__OC5Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt42) ? ABSOLUTE(__Interrupt42) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt43) ? ABSOLUTE(__Interrupt43) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt44) ? ABSOLUTE(__Interrupt44) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__PMPInterrupt) ? ABSOLUTE(__PMPInterrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt46) ? ABSOLUTE(__Interrupt46) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt47) ? ABSOLUTE(__Interrupt47) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt48) ? ABSOLUTE(__Interrupt48) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__SI2C2Interrupt) ? ABSOLUTE(__SI2C2Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__MI2C2Interrupt) ? ABSOLUTE(__MI2C2Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt51) ? ABSOLUTE(__Interrupt51) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt52) ? ABSOLUTE(__Interrupt52) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__INT3Interrupt) ? ABSOLUTE(__INT3Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__INT4Interrupt) ? ABSOLUTE(__INT4Interrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt55) ? ABSOLUTE(__Interrupt55) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt56) ? ABSOLUTE(__Interrupt56) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt57) ? ABSOLUTE(__Interrupt57) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt58) ? ABSOLUTE(__Interrupt58) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt59) ? ABSOLUTE(__Interrupt59) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt60) ? ABSOLUTE(__Interrupt60) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt61) ? ABSOLUTE(__Interrupt61) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__RTCCInterrupt) ? ABSOLUTE(__RTCCInterrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt63) ? ABSOLUTE(__Interrupt63) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt64) ? ABSOLUTE(__Interrupt64) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__U1ErrInterrupt) ? ABSOLUTE(__U1ErrInterrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__U2ErrInterrupt) ? ABSOLUTE(__U2ErrInterrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__CRCInterrupt) ? ABSOLUTE(__CRCInterrupt) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt68) ? ABSOLUTE(__Interrupt68) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt69) ? ABSOLUTE(__Interrupt69) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt70) ? ABSOLUTE(__Interrupt70) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt71) ? ABSOLUTE(__Interrupt71) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt72) ? ABSOLUTE(__Interrupt72) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt73) ? ABSOLUTE(__Interrupt73) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt74) ? ABSOLUTE(__Interrupt74) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt75) ? ABSOLUTE(__Interrupt75) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt76) ? ABSOLUTE(__Interrupt76) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt77) ? ABSOLUTE(__Interrupt77) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt78) ? ABSOLUTE(__Interrupt78) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt79) ? ABSOLUTE(__Interrupt79) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt80) ? ABSOLUTE(__Interrupt80) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt81) ? ABSOLUTE(__Interrupt81) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt82) ? ABSOLUTE(__Interrupt82) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt83) ? ABSOLUTE(__Interrupt83) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt84) ? ABSOLUTE(__Interrupt84) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt85) ? ABSOLUTE(__Interrupt85) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt86) ? ABSOLUTE(__Interrupt86) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt87) ? ABSOLUTE(__Interrupt87) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt88) ? ABSOLUTE(__Interrupt88) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt89) ? ABSOLUTE(__Interrupt89) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt90) ? ABSOLUTE(__Interrupt90) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt91) ? ABSOLUTE(__Interrupt91) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt92) ? ABSOLUTE(__Interrupt92) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt93) ? ABSOLUTE(__Interrupt93) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt94) ? ABSOLUTE(__Interrupt94) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt95) ? ABSOLUTE(__Interrupt95) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt96) ? ABSOLUTE(__Interrupt96) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt97) ? ABSOLUTE(__Interrupt97) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt98) ? ABSOLUTE(__Interrupt98) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt99) ? ABSOLUTE(__Interrupt99) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt100) ? ABSOLUTE(__Interrupt100) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt101) ? ABSOLUTE(__Interrupt101) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt102) ? ABSOLUTE(__Interrupt102) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt103) ? ABSOLUTE(__Interrupt103) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt104) ? ABSOLUTE(__Interrupt104) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt105) ? ABSOLUTE(__Interrupt105) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt106) ? ABSOLUTE(__Interrupt106) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt107) ? ABSOLUTE(__Interrupt107) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt108) ? ABSOLUTE(__Interrupt108) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt109) ? ABSOLUTE(__Interrupt109) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt110) ? ABSOLUTE(__Interrupt110) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt111) ? ABSOLUTE(__Interrupt111) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt112) ? ABSOLUTE(__Interrupt112) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt113) ? ABSOLUTE(__Interrupt113) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt114) ? ABSOLUTE(__Interrupt114) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt115) ? ABSOLUTE(__Interrupt115) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt116) ? ABSOLUTE(__Interrupt116) :
+ ABSOLUTE(__DefaultInterrupt));
+ LONG( DEFINED(__Interrupt117) ? ABSOLUTE(__Interrupt117) :
+ ABSOLUTE(__DefaultInterrupt));
+ } >ivt
+
+
+/*
+** Alternate Interrupt Vector Table
+*/
+.aivt __AIVT_BASE :
+ {
+ LONG( DEFINED(__AltReservedTrap0) ? ABSOLUTE(__AltReservedTrap0) :
+ (DEFINED(__ReservedTrap0) ? ABSOLUTE(__ReservedTrap0) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltOscillatorFail) ? ABSOLUTE(__AltOscillatorFail) :
+ (DEFINED(__OscillatorFail) ? ABSOLUTE(__OscillatorFail) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltAddressError) ? ABSOLUTE(__AltAddressError) :
+ (DEFINED(__AddressError) ? ABSOLUTE(__AddressError) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltStackError) ? ABSOLUTE(__AltStackError) :
+ (DEFINED(__StackError) ? ABSOLUTE(__StackError) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltMathError) ? ABSOLUTE(__AltMathError) :
+ (DEFINED(__MathError) ? ABSOLUTE(__MathError) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltReservedTrap5) ? ABSOLUTE(__AltReservedTrap5) :
+ (DEFINED(__ReservedTrap5) ? ABSOLUTE(__ReservedTrap5) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltReservedTrap6) ? ABSOLUTE(__AltReservedTrap6) :
+ (DEFINED(__ReservedTrap6) ? ABSOLUTE(__ReservedTrap6) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltReservedTrap7) ? ABSOLUTE(__AltReservedTrap7) :
+ (DEFINED(__ReservedTrap7) ? ABSOLUTE(__ReservedTrap7) :
+ ABSOLUTE(__DefaultInterrupt)));
+
+ LONG( DEFINED(__AltINT0Interrupt) ? ABSOLUTE(__AltINT0Interrupt) :
+ (DEFINED(__INT0Interrupt) ? ABSOLUTE(__INT0Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltIC1Interrupt) ? ABSOLUTE(__AltIC1Interrupt) :
+ (DEFINED(__IC1Interrupt) ? ABSOLUTE(__IC1Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltOC1Interrupt) ? ABSOLUTE(__AltOC1Interrupt) :
+ (DEFINED(__OC1Interrupt) ? ABSOLUTE(__OC1Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltT1Interrupt) ? ABSOLUTE(__AltT1Interrupt) :
+ (DEFINED(__T1Interrupt) ? ABSOLUTE(__T1Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt4) ? ABSOLUTE(__AltInterrupt4) :
+ (DEFINED(__Interrupt4) ? ABSOLUTE(__Interrupt4) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltIC2Interrupt) ? ABSOLUTE(__AltIC2Interrupt) :
+ (DEFINED(__IC2Interrupt) ? ABSOLUTE(__IC2Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltOC2Interrupt) ? ABSOLUTE(__AltOC2Interrupt) :
+ (DEFINED(__OC2Interrupt) ? ABSOLUTE(__OC2Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltT2Interrupt) ? ABSOLUTE(__AltT2Interrupt) :
+ (DEFINED(__T2Interrupt) ? ABSOLUTE(__T2Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltT3Interrupt) ? ABSOLUTE(__AltT3Interrupt) :
+ (DEFINED(__T3Interrupt) ? ABSOLUTE(__T3Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltSPI1ErrInterrupt) ? ABSOLUTE(__AltSPI1ErrInterrupt) :
+ (DEFINED(__SPI1ErrInterrupt) ? ABSOLUTE(__SPI1ErrInterrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltSPI1Interrupt) ? ABSOLUTE(__AltSPI1Interrupt) :
+ (DEFINED(__SPI1Interrupt) ? ABSOLUTE(__SPI1Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltU1RXInterrupt) ? ABSOLUTE(__AltU1RXInterrupt) :
+ (DEFINED(__U1RXInterrupt) ? ABSOLUTE(__U1RXInterrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltU1TXInterrupt) ? ABSOLUTE(__AltU1TXInterrupt) :
+ (DEFINED(__U1TXInterrupt) ? ABSOLUTE(__U1TXInterrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltADC1Interrupt) ? ABSOLUTE(__AltADC1Interrupt) :
+ (DEFINED(__ADC1Interrupt) ? ABSOLUTE(__ADC1Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt14) ? ABSOLUTE(__AltInterrupt14) :
+ (DEFINED(__Interrupt14) ? ABSOLUTE(__Interrupt14) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt15) ? ABSOLUTE(__AltInterrupt15) :
+ (DEFINED(__Interrupt15) ? ABSOLUTE(__Interrupt15) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltSI2C1Interrupt) ? ABSOLUTE(__AltSI2C1Interrupt) :
+ (DEFINED(__SI2C1Interrupt) ? ABSOLUTE(__SI2C1Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltMI2C1Interrupt) ? ABSOLUTE(__AltMI2C1Interrupt) :
+ (DEFINED(__MI2C1Interrupt) ? ABSOLUTE(__MI2C1Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltCompInterrupt) ? ABSOLUTE(__AltCompInterrupt) :
+ (DEFINED(__CompInterrupt) ? ABSOLUTE(__CompInterrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltCNInterrupt) ? ABSOLUTE(__AltCNInterrupt) :
+ (DEFINED(__CNInterrupt) ? ABSOLUTE(__CNInterrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltINT1Interrupt) ? ABSOLUTE(__AltINT1Interrupt) :
+ (DEFINED(__INT1Interrupt) ? ABSOLUTE(__INT1Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt21) ? ABSOLUTE(__AltInterrupt21) :
+ (DEFINED(__Interrupt21) ? ABSOLUTE(__Interrupt21) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt22) ? ABSOLUTE(__AltInterrupt22) :
+ (DEFINED(__Interrupt22) ? ABSOLUTE(__Interrupt22) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt23) ? ABSOLUTE(__AltInterrupt23) :
+ (DEFINED(__Interrupt23) ? ABSOLUTE(__Interrupt23) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt24) ? ABSOLUTE(__AltInterrupt24) :
+ (DEFINED(__Interrupt24) ? ABSOLUTE(__Interrupt24) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltOC3Interrupt) ? ABSOLUTE(__AltOC3Interrupt) :
+ (DEFINED(__OC3Interrupt) ? ABSOLUTE(__OC3Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltOC4Interrupt) ? ABSOLUTE(__AltOC4Interrupt) :
+ (DEFINED(__OC4Interrupt) ? ABSOLUTE(__OC4Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltT4Interrupt) ? ABSOLUTE(__AltT4Interrupt) :
+ (DEFINED(__T4Interrupt) ? ABSOLUTE(__T4Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltT5Interrupt) ? ABSOLUTE(__AltT5Interrupt) :
+ (DEFINED(__T5Interrupt) ? ABSOLUTE(__T5Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltINT2Interrupt) ? ABSOLUTE(__AltINT2Interrupt) :
+ (DEFINED(__INT2Interrupt) ? ABSOLUTE(__INT2Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltU2RXInterrupt) ? ABSOLUTE(__AltU2RXInterrupt) :
+ (DEFINED(__U2RXInterrupt) ? ABSOLUTE(__U2RXInterrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltU2TXInterrupt) ? ABSOLUTE(__AltU2TXInterrupt) :
+ (DEFINED(__U2TXInterrupt) ? ABSOLUTE(__U2TXInterrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltSPI2ErrInterrupt) ? ABSOLUTE(__AltSPI2ErrInterrupt) :
+ (DEFINED(__SPI2ErrInterrupt) ? ABSOLUTE(__SPI2ErrInterrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltSPI2Interrupt) ? ABSOLUTE(__AltSPI2Interrupt) :
+ (DEFINED(__SPI2Interrupt) ? ABSOLUTE(__SPI2Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt34) ? ABSOLUTE(__AltInterrupt34) :
+ (DEFINED(__Interrupt34) ? ABSOLUTE(__Interrupt34) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt35) ? ABSOLUTE(__AltInterrupt35) :
+ (DEFINED(__Interrupt35) ? ABSOLUTE(__Interrupt35) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt36) ? ABSOLUTE(__AltInterrupt36) :
+ (DEFINED(__Interrupt36) ? ABSOLUTE(__Interrupt36) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltIC3Interrupt) ? ABSOLUTE(__AltIC3Interrupt) :
+ (DEFINED(__IC3Interrupt) ? ABSOLUTE(__IC3Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltIC4Interrupt) ? ABSOLUTE(__AltIC4Interrupt) :
+ (DEFINED(__IC4Interrupt) ? ABSOLUTE(__IC4Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltIC5Interrupt) ? ABSOLUTE(__AltIC5Interrupt) :
+ (DEFINED(__IC5Interrupt) ? ABSOLUTE(__IC5Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt40) ? ABSOLUTE(__AltInterrupt40) :
+ (DEFINED(__Interrupt40) ? ABSOLUTE(__Interrupt40) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltOC5Interrupt) ? ABSOLUTE(__AltOC5Interrupt) :
+ (DEFINED(__OC5Interrupt) ? ABSOLUTE(__OC5Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt42) ? ABSOLUTE(__AltInterrupt42) :
+ (DEFINED(__Interrupt42) ? ABSOLUTE(__Interrupt42) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt43) ? ABSOLUTE(__AltInterrupt43) :
+ (DEFINED(__Interrupt43) ? ABSOLUTE(__Interrupt43) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt44) ? ABSOLUTE(__AltInterrupt44) :
+ (DEFINED(__Interrupt44) ? ABSOLUTE(__Interrupt44) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltPMPInterrupt) ? ABSOLUTE(__AltPMPInterrupt) :
+ (DEFINED(__PMPInterrupt) ? ABSOLUTE(__PMPInterrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt46) ? ABSOLUTE(__AltInterrupt46) :
+ (DEFINED(__Interrupt46) ? ABSOLUTE(__Interrupt46) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt47) ? ABSOLUTE(__AltInterrupt47) :
+ (DEFINED(__Interrupt47) ? ABSOLUTE(__Interrupt47) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt48) ? ABSOLUTE(__AltInterrupt48) :
+ (DEFINED(__Interrupt48) ? ABSOLUTE(__Interrupt48) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltSI2C2Interrupt) ? ABSOLUTE(__AltSI2C2Interrupt) :
+ (DEFINED(__SI2C2Interrupt) ? ABSOLUTE(__SI2C2Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltMI2C2Interrupt) ? ABSOLUTE(__AltMI2C2Interrupt) :
+ (DEFINED(__MI2C2Interrupt) ? ABSOLUTE(__MI2C2Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt51) ? ABSOLUTE(__AltInterrupt51) :
+ (DEFINED(__Interrupt51) ? ABSOLUTE(__Interrupt51) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt52) ? ABSOLUTE(__AltInterrupt52) :
+ (DEFINED(__Interrupt52) ? ABSOLUTE(__Interrupt52) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltINT3Interrupt) ? ABSOLUTE(__AltINT3Interrupt) :
+ (DEFINED(__INT3Interrupt) ? ABSOLUTE(__INT3Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltINT4Interrupt) ? ABSOLUTE(__AltINT4Interrupt) :
+ (DEFINED(__INT4Interrupt) ? ABSOLUTE(__INT4Interrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt55) ? ABSOLUTE(__AltInterrupt55) :
+ (DEFINED(__Interrupt55) ? ABSOLUTE(__Interrupt55) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt56) ? ABSOLUTE(__AltInterrupt56) :
+ (DEFINED(__Interrupt56) ? ABSOLUTE(__Interrupt56) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt57) ? ABSOLUTE(__AltInterrupt57) :
+ (DEFINED(__Interrupt57) ? ABSOLUTE(__Interrupt57) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt58) ? ABSOLUTE(__AltInterrupt58) :
+ (DEFINED(__Interrupt58) ? ABSOLUTE(__Interrupt58) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt59) ? ABSOLUTE(__AltInterrupt59) :
+ (DEFINED(__Interrupt59) ? ABSOLUTE(__Interrupt59) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt60) ? ABSOLUTE(__AltInterrupt60) :
+ (DEFINED(__Interrupt60) ? ABSOLUTE(__Interrupt60) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt61) ? ABSOLUTE(__AltInterrupt61) :
+ (DEFINED(__Interrupt61) ? ABSOLUTE(__Interrupt61) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltRTCCInterrupt) ? ABSOLUTE(__AltRTCCInterrupt) :
+ (DEFINED(__RTCCInterrupt) ? ABSOLUTE(__RTCCInterrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt63) ? ABSOLUTE(__AltInterrupt63) :
+ (DEFINED(__Interrupt63) ? ABSOLUTE(__Interrupt63) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt64) ? ABSOLUTE(__AltInterrupt64) :
+ (DEFINED(__Interrupt64) ? ABSOLUTE(__Interrupt64) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltU1ErrInterrupt) ? ABSOLUTE(__AltU1ErrInterrupt) :
+ (DEFINED(__U1ErrInterrupt) ? ABSOLUTE(__U1ErrInterrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltU2ErrInterrupt) ? ABSOLUTE(__AltU2ErrInterrupt) :
+ (DEFINED(__U2ErrInterrupt) ? ABSOLUTE(__U2ErrInterrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltCRCInterrupt) ? ABSOLUTE(__AltCRCInterrupt) :
+ (DEFINED(__CRCInterrupt) ? ABSOLUTE(__CRCInterrupt) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt68) ? ABSOLUTE(__AltInterrupt68) :
+ (DEFINED(__Interrupt68) ? ABSOLUTE(__Interrupt68) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt69) ? ABSOLUTE(__AltInterrupt69) :
+ (DEFINED(__Interrupt69) ? ABSOLUTE(__Interrupt69) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt70) ? ABSOLUTE(__AltInterrupt70) :
+ (DEFINED(__Interrupt70) ? ABSOLUTE(__Interrupt70) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt71) ? ABSOLUTE(__AltInterrupt71) :
+ (DEFINED(__Interrupt71) ? ABSOLUTE(__Interrupt71) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt72) ? ABSOLUTE(__AltInterrupt72) :
+ (DEFINED(__Interrupt72) ? ABSOLUTE(__Interrupt72) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt73) ? ABSOLUTE(__AltInterrupt73) :
+ (DEFINED(__Interrupt73) ? ABSOLUTE(__Interrupt73) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt74) ? ABSOLUTE(__AltInterrupt74) :
+ (DEFINED(__Interrupt74) ? ABSOLUTE(__Interrupt74) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt75) ? ABSOLUTE(__AltInterrupt75) :
+ (DEFINED(__Interrupt75) ? ABSOLUTE(__Interrupt75) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt76) ? ABSOLUTE(__AltInterrupt76) :
+ (DEFINED(__Interrupt76) ? ABSOLUTE(__Interrupt76) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt77) ? ABSOLUTE(__AltInterrupt77) :
+ (DEFINED(__Interrupt77) ? ABSOLUTE(__Interrupt77) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt78) ? ABSOLUTE(__AltInterrupt78) :
+ (DEFINED(__Interrupt78) ? ABSOLUTE(__Interrupt78) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt79) ? ABSOLUTE(__AltInterrupt79) :
+ (DEFINED(__Interrupt79) ? ABSOLUTE(__Interrupt79) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt80) ? ABSOLUTE(__AltInterrupt80) :
+ (DEFINED(__Interrupt80) ? ABSOLUTE(__Interrupt80) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt81) ? ABSOLUTE(__AltInterrupt81) :
+ (DEFINED(__Interrupt81) ? ABSOLUTE(__Interrupt81) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt82) ? ABSOLUTE(__AltInterrupt82) :
+ (DEFINED(__Interrupt82) ? ABSOLUTE(__Interrupt82) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt83) ? ABSOLUTE(__AltInterrupt83) :
+ (DEFINED(__Interrupt83) ? ABSOLUTE(__Interrupt83) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt84) ? ABSOLUTE(__AltInterrupt84) :
+ (DEFINED(__Interrupt84) ? ABSOLUTE(__Interrupt84) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt85) ? ABSOLUTE(__AltInterrupt85) :
+ (DEFINED(__Interrupt85) ? ABSOLUTE(__Interrupt85) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt86) ? ABSOLUTE(__AltInterrupt86) :
+ (DEFINED(__Interrupt86) ? ABSOLUTE(__Interrupt86) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt87) ? ABSOLUTE(__AltInterrupt87) :
+ (DEFINED(__Interrupt87) ? ABSOLUTE(__Interrupt87) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt88) ? ABSOLUTE(__AltInterrupt88) :
+ (DEFINED(__Interrupt88) ? ABSOLUTE(__Interrupt88) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt89) ? ABSOLUTE(__AltInterrupt89) :
+ (DEFINED(__Interrupt89) ? ABSOLUTE(__Interrupt89) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt90) ? ABSOLUTE(__AltInterrupt90) :
+ (DEFINED(__Interrupt90) ? ABSOLUTE(__Interrupt90) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt91) ? ABSOLUTE(__AltInterrupt91) :
+ (DEFINED(__Interrupt91) ? ABSOLUTE(__Interrupt91) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt92) ? ABSOLUTE(__AltInterrupt92) :
+ (DEFINED(__Interrupt92) ? ABSOLUTE(__Interrupt92) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt93) ? ABSOLUTE(__AltInterrupt93) :
+ (DEFINED(__Interrupt93) ? ABSOLUTE(__Interrupt93) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt94) ? ABSOLUTE(__AltInterrupt94) :
+ (DEFINED(__Interrupt94) ? ABSOLUTE(__Interrupt94) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt95) ? ABSOLUTE(__AltInterrupt95) :
+ (DEFINED(__Interrupt95) ? ABSOLUTE(__Interrupt95) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt96) ? ABSOLUTE(__AltInterrupt96) :
+ (DEFINED(__Interrupt96) ? ABSOLUTE(__Interrupt96) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt97) ? ABSOLUTE(__AltInterrupt97) :
+ (DEFINED(__Interrupt97) ? ABSOLUTE(__Interrupt97) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt98) ? ABSOLUTE(__AltInterrupt98) :
+ (DEFINED(__Interrupt98) ? ABSOLUTE(__Interrupt98) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt99) ? ABSOLUTE(__AltInterrupt99) :
+ (DEFINED(__Interrupt99) ? ABSOLUTE(__Interrupt99) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt100) ? ABSOLUTE(__AltInterrupt100) :
+ (DEFINED(__Interrupt100) ? ABSOLUTE(__Interrupt100) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt101) ? ABSOLUTE(__AltInterrupt101) :
+ (DEFINED(__Interrupt101) ? ABSOLUTE(__Interrupt101) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt102) ? ABSOLUTE(__AltInterrupt102) :
+ (DEFINED(__Interrupt102) ? ABSOLUTE(__Interrupt102) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt103) ? ABSOLUTE(__AltInterrupt103) :
+ (DEFINED(__Interrupt103) ? ABSOLUTE(__Interrupt103) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt104) ? ABSOLUTE(__AltInterrupt104) :
+ (DEFINED(__Interrupt104) ? ABSOLUTE(__Interrupt104) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt105) ? ABSOLUTE(__AltInterrupt105) :
+ (DEFINED(__Interrupt105) ? ABSOLUTE(__Interrupt105) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt106) ? ABSOLUTE(__AltInterrupt106) :
+ (DEFINED(__Interrupt106) ? ABSOLUTE(__Interrupt106) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt107) ? ABSOLUTE(__AltInterrupt107) :
+ (DEFINED(__Interrupt107) ? ABSOLUTE(__Interrupt107) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt108) ? ABSOLUTE(__AltInterrupt108) :
+ (DEFINED(__Interrupt108) ? ABSOLUTE(__Interrupt108) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt109) ? ABSOLUTE(__AltInterrupt109) :
+ (DEFINED(__Interrupt109) ? ABSOLUTE(__Interrupt109) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt110) ? ABSOLUTE(__AltInterrupt110) :
+ (DEFINED(__Interrupt110) ? ABSOLUTE(__Interrupt110) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt111) ? ABSOLUTE(__AltInterrupt111) :
+ (DEFINED(__Interrupt111) ? ABSOLUTE(__Interrupt111) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt112) ? ABSOLUTE(__AltInterrupt112) :
+ (DEFINED(__Interrupt112) ? ABSOLUTE(__Interrupt112) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt113) ? ABSOLUTE(__AltInterrupt113) :
+ (DEFINED(__Interrupt113) ? ABSOLUTE(__Interrupt113) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt114) ? ABSOLUTE(__AltInterrupt114) :
+ (DEFINED(__Interrupt114) ? ABSOLUTE(__Interrupt114) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt115) ? ABSOLUTE(__AltInterrupt115) :
+ (DEFINED(__Interrupt115) ? ABSOLUTE(__Interrupt115) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt116) ? ABSOLUTE(__AltInterrupt116) :
+ (DEFINED(__Interrupt116) ? ABSOLUTE(__Interrupt116) :
+ ABSOLUTE(__DefaultInterrupt)));
+ LONG( DEFINED(__AltInterrupt117) ? ABSOLUTE(__AltInterrupt117) :
+ (DEFINED(__Interrupt117) ? ABSOLUTE(__Interrupt117) :
+ ABSOLUTE(__DefaultInterrupt)));
+ } >aivt
+} /* SECTIONS */
+
+
+/*
+** ============== Equates for SFR Addresses =============
+*/
+
+ WREG0 = 0x0;
+_WREG0 = 0x0;
+ WREG1 = 0x2;
+_WREG1 = 0x2;
+ WREG2 = 0x4;
+_WREG2 = 0x4;
+ WREG3 = 0x6;
+_WREG3 = 0x6;
+ WREG4 = 0x8;
+_WREG4 = 0x8;
+ WREG5 = 0xA;
+_WREG5 = 0xA;
+ WREG6 = 0xC;
+_WREG6 = 0xC;
+ WREG7 = 0xE;
+_WREG7 = 0xE;
+ WREG8 = 0x10;
+_WREG8 = 0x10;
+ WREG9 = 0x12;
+_WREG9 = 0x12;
+ WREG10 = 0x14;
+_WREG10 = 0x14;
+ WREG11 = 0x16;
+_WREG11 = 0x16;
+ WREG12 = 0x18;
+_WREG12 = 0x18;
+ WREG13 = 0x1A;
+_WREG13 = 0x1A;
+ WREG14 = 0x1C;
+_WREG14 = 0x1C;
+ WREG15 = 0x1E;
+_WREG15 = 0x1E;
+ SPLIM = 0x20;
+_SPLIM = 0x20;
+ PCL = 0x2E;
+_PCL = 0x2E;
+ PCH = 0x30;
+_PCH = 0x30;
+ TBLPAG = 0x32;
+_TBLPAG = 0x32;
+ PSVPAG = 0x34;
+_PSVPAG = 0x34;
+ RCOUNT = 0x36;
+_RCOUNT = 0x36;
+ SR = 0x42;
+_SR = 0x42;
+_SRbits = 0x42;
+ CORCON = 0x44;
+_CORCON = 0x44;
+_CORCONbits = 0x44;
+ DISICNT = 0x52;
+_DISICNT = 0x52;
+ CNEN1 = 0x60;
+_CNEN1 = 0x60;
+_CNEN1bits = 0x60;
+ CNEN2 = 0x62;
+_CNEN2 = 0x62;
+_CNEN2bits = 0x62;
+ CNPU1 = 0x68;
+_CNPU1 = 0x68;
+_CNPU1bits = 0x68;
+ CNPU2 = 0x6A;
+_CNPU2 = 0x6A;
+_CNPU2bits = 0x6A;
+ INTCON1 = 0x80;
+_INTCON1 = 0x80;
+_INTCON1bits = 0x80;
+ INTCON2 = 0x82;
+_INTCON2 = 0x82;
+_INTCON2bits = 0x82;
+ IFS0 = 0x84;
+_IFS0 = 0x84;
+_IFS0bits = 0x84;
+ IFS1 = 0x86;
+_IFS1 = 0x86;
+_IFS1bits = 0x86;
+ IFS2 = 0x88;
+_IFS2 = 0x88;
+_IFS2bits = 0x88;
+ IFS3 = 0x8A;
+_IFS3 = 0x8A;
+_IFS3bits = 0x8A;
+ IFS4 = 0x8C;
+_IFS4 = 0x8C;
+_IFS4bits = 0x8C;
+ IEC0 = 0x94;
+_IEC0 = 0x94;
+_IEC0bits = 0x94;
+ IEC1 = 0x96;
+_IEC1 = 0x96;
+_IEC1bits = 0x96;
+ IEC2 = 0x98;
+_IEC2 = 0x98;
+_IEC2bits = 0x98;
+ IEC3 = 0x9A;
+_IEC3 = 0x9A;
+_IEC3bits = 0x9A;
+ IEC4 = 0x9C;
+_IEC4 = 0x9C;
+_IEC4bits = 0x9C;
+ IPC0 = 0xA4;
+_IPC0 = 0xA4;
+_IPC0bits = 0xA4;
+ IPC1 = 0xA6;
+_IPC1 = 0xA6;
+_IPC1bits = 0xA6;
+ IPC2 = 0xA8;
+_IPC2 = 0xA8;
+_IPC2bits = 0xA8;
+ IPC3 = 0xAA;
+_IPC3 = 0xAA;
+_IPC3bits = 0xAA;
+ IPC4 = 0xAC;
+_IPC4 = 0xAC;
+_IPC4bits = 0xAC;
+ IPC5 = 0xAE;
+_IPC5 = 0xAE;
+_IPC5bits = 0xAE;
+ IPC6 = 0xB0;
+_IPC6 = 0xB0;
+_IPC6bits = 0xB0;
+ IPC7 = 0xB2;
+_IPC7 = 0xB2;
+_IPC7bits = 0xB2;
+ IPC8 = 0xB4;
+_IPC8 = 0xB4;
+_IPC8bits = 0xB4;
+ IPC9 = 0xB6;
+_IPC9 = 0xB6;
+_IPC9bits = 0xB6;
+ IPC10 = 0xB8;
+_IPC10 = 0xB8;
+_IPC10bits = 0xB8;
+ IPC11 = 0xBA;
+_IPC11 = 0xBA;
+_IPC11bits = 0xBA;
+ IPC12 = 0xBC;
+_IPC12 = 0xBC;
+_IPC12bits = 0xBC;
+ IPC13 = 0xBE;
+_IPC13 = 0xBE;
+_IPC13bits = 0xBE;
+ IPC15 = 0xC2;
+_IPC15 = 0xC2;
+_IPC15bits = 0xC2;
+ IPC16 = 0xC4;
+_IPC16 = 0xC4;
+_IPC16bits = 0xC4;
+ TMR1 = 0x100;
+_TMR1 = 0x100;
+ PR1 = 0x102;
+_PR1 = 0x102;
+ T1CON = 0x104;
+_T1CON = 0x104;
+_T1CONbits = 0x104;
+ TMR2 = 0x106;
+_TMR2 = 0x106;
+ TMR3HLD = 0x108;
+_TMR3HLD = 0x108;
+ TMR3 = 0x10A;
+_TMR3 = 0x10A;
+ PR2 = 0x10C;
+_PR2 = 0x10C;
+ PR3 = 0x10E;
+_PR3 = 0x10E;
+ T2CON = 0x110;
+_T2CON = 0x110;
+_T2CONbits = 0x110;
+ T3CON = 0x112;
+_T3CON = 0x112;
+_T3CONbits = 0x112;
+ TMR4 = 0x114;
+_TMR4 = 0x114;
+ TMR5HLD = 0x116;
+_TMR5HLD = 0x116;
+ TMR5 = 0x118;
+_TMR5 = 0x118;
+ PR4 = 0x11A;
+_PR4 = 0x11A;
+ PR5 = 0x11C;
+_PR5 = 0x11C;
+ T4CON = 0x11E;
+_T4CON = 0x11E;
+_T4CONbits = 0x11E;
+ T5CON = 0x120;
+_T5CON = 0x120;
+_T5CONbits = 0x120;
+ IC1BUF = 0x140;
+_IC1BUF = 0x140;
+ IC1CON = 0x142;
+_IC1CON = 0x142;
+_IC1CONbits = 0x142;
+ IC2BUF = 0x144;
+_IC2BUF = 0x144;
+ IC2CON = 0x146;
+_IC2CON = 0x146;
+_IC2CONbits = 0x146;
+ IC3BUF = 0x148;
+_IC3BUF = 0x148;
+ IC3CON = 0x14A;
+_IC3CON = 0x14A;
+_IC3CONbits = 0x14A;
+ IC4BUF = 0x14C;
+_IC4BUF = 0x14C;
+ IC4CON = 0x14E;
+_IC4CON = 0x14E;
+_IC4CONbits = 0x14E;
+ IC5BUF = 0x150;
+_IC5BUF = 0x150;
+ IC5CON = 0x152;
+_IC5CON = 0x152;
+_IC5CONbits = 0x152;
+ OC1RS = 0x180;
+_OC1RS = 0x180;
+ OC1R = 0x182;
+_OC1R = 0x182;
+ OC1CON = 0x184;
+_OC1CON = 0x184;
+_OC1CONbits = 0x184;
+ OC2RS = 0x186;
+_OC2RS = 0x186;
+ OC2R = 0x188;
+_OC2R = 0x188;
+ OC2CON = 0x18A;
+_OC2CON = 0x18A;
+_OC2CONbits = 0x18A;
+ OC3RS = 0x18C;
+_OC3RS = 0x18C;
+ OC3R = 0x18E;
+_OC3R = 0x18E;
+ OC3CON = 0x190;
+_OC3CON = 0x190;
+_OC3CONbits = 0x190;
+ OC4RS = 0x192;
+_OC4RS = 0x192;
+ OC4R = 0x194;
+_OC4R = 0x194;
+ OC4CON = 0x196;
+_OC4CON = 0x196;
+_OC4CONbits = 0x196;
+ OC5RS = 0x198;
+_OC5RS = 0x198;
+ OC5R = 0x19A;
+_OC5R = 0x19A;
+ OC5CON = 0x19C;
+_OC5CON = 0x19C;
+_OC5CONbits = 0x19C;
+ I2C1RCV = 0x200;
+_I2C1RCV = 0x200;
+ I2C1TRN = 0x202;
+_I2C1TRN = 0x202;
+ I2C1BRG = 0x204;
+_I2C1BRG = 0x204;
+ I2C1CON = 0x206;
+_I2C1CON = 0x206;
+_I2C1CONbits = 0x206;
+ I2C1STAT = 0x208;
+_I2C1STAT = 0x208;
+_I2C1STATbits = 0x208;
+ I2C1ADD = 0x20A;
+_I2C1ADD = 0x20A;
+ I2C1MSK = 0x20C;
+_I2C1MSK = 0x20C;
+ I2C2RCV = 0x210;
+_I2C2RCV = 0x210;
+ I2C2TRN = 0x212;
+_I2C2TRN = 0x212;
+ I2C2BRG = 0x214;
+_I2C2BRG = 0x214;
+ I2C2CON = 0x216;
+_I2C2CON = 0x216;
+_I2C2CONbits = 0x216;
+ I2C2STAT = 0x218;
+_I2C2STAT = 0x218;
+_I2C2STATbits = 0x218;
+ I2C2ADD = 0x21A;
+_I2C2ADD = 0x21A;
+ I2C2MSK = 0x21C;
+_I2C2MSK = 0x21C;
+ U1MODE = 0x220;
+_U1MODE = 0x220;
+_U1MODEbits = 0x220;
+ U1STA = 0x222;
+_U1STA = 0x222;
+_U1STAbits = 0x222;
+ U1TXREG = 0x224;
+_U1TXREG = 0x224;
+ U1RXREG = 0x226;
+_U1RXREG = 0x226;
+ U1BRG = 0x228;
+_U1BRG = 0x228;
+ U2MODE = 0x230;
+_U2MODE = 0x230;
+_U2MODEbits = 0x230;
+ U2STA = 0x232;
+_U2STA = 0x232;
+_U2STAbits = 0x232;
+ U2TXREG = 0x234;
+_U2TXREG = 0x234;
+ U2RXREG = 0x236;
+_U2RXREG = 0x236;
+ U2BRG = 0x238;
+_U2BRG = 0x238;
+ SPI1STAT = 0x240;
+_SPI1STAT = 0x240;
+_SPI1STATbits = 0x240;
+ SPI1CON1 = 0x242;
+_SPI1CON1 = 0x242;
+_SPI1CON1bits = 0x242;
+ SPI1CON2 = 0x244;
+_SPI1CON2 = 0x244;
+_SPI1CON2bits = 0x244;
+ SPI1BUF = 0x248;
+_SPI1BUF = 0x248;
+ SPI2STAT = 0x260;
+_SPI2STAT = 0x260;
+_SPI2STATbits = 0x260;
+ SPI2CON1 = 0x262;
+_SPI2CON1 = 0x262;
+_SPI2CON1bits = 0x262;
+ SPI2CON2 = 0x264;
+_SPI2CON2 = 0x264;
+_SPI2CON2bits = 0x264;
+ SPI2BUF = 0x268;
+_SPI2BUF = 0x268;
+ TRISA = 0x2C0;
+_TRISA = 0x2C0;
+_TRISAbits = 0x2C0;
+ PORTA = 0x2C2;
+_PORTA = 0x2C2;
+_PORTAbits = 0x2C2;
+ LATA = 0x2C4;
+_LATA = 0x2C4;
+_LATAbits = 0x2C4;
+ TRISB = 0x2C6;
+_TRISB = 0x2C6;
+_TRISBbits = 0x2C6;
+ PORTB = 0x2C8;
+_PORTB = 0x2C8;
+_PORTBbits = 0x2C8;
+ LATB = 0x2CA;
+_LATB = 0x2CA;
+_LATBbits = 0x2CA;
+ TRISC = 0x2CC;
+_TRISC = 0x2CC;
+_TRISCbits = 0x2CC;
+ PORTC = 0x2CE;
+_PORTC = 0x2CE;
+_PORTCbits = 0x2CE;
+ LATC = 0x2D0;
+_LATC = 0x2D0;
+_LATCbits = 0x2D0;
+ TRISD = 0x2D2;
+_TRISD = 0x2D2;
+_TRISDbits = 0x2D2;
+ PORTD = 0x2D4;
+_PORTD = 0x2D4;
+_PORTDbits = 0x2D4;
+ LATD = 0x2D6;
+_LATD = 0x2D6;
+_LATDbits = 0x2D6;
+ TRISE = 0x2D8;
+_TRISE = 0x2D8;
+_TRISEbits = 0x2D8;
+ PORTE = 0x2DA;
+_PORTE = 0x2DA;
+_PORTEbits = 0x2DA;
+ LATE = 0x2DC;
+_LATE = 0x2DC;
+_LATEbits = 0x2DC;
+ TRISF = 0x2DE;
+_TRISF = 0x2DE;
+_TRISFbits = 0x2DE;
+ PORTF = 0x2E0;
+_PORTF = 0x2E0;
+_PORTFbits = 0x2E0;
+ LATF = 0x2E2;
+_LATF = 0x2E2;
+_LATFbits = 0x2E2;
+ TRISG = 0x2E4;
+_TRISG = 0x2E4;
+_TRISGbits = 0x2E4;
+ PORTG = 0x2E6;
+_PORTG = 0x2E6;
+_PORTGbits = 0x2E6;
+ LATG = 0x2E8;
+_LATG = 0x2E8;
+_LATGbits = 0x2E8;
+ PADCFG1 = 0x2FC;
+_PADCFG1 = 0x2FC;
+_PADCFG1bits = 0x2FC;
+ ADC1BUF0 = 0x300;
+_ADC1BUF0 = 0x300;
+ ADC1BUF1 = 0x302;
+_ADC1BUF1 = 0x302;
+ ADC1BUF2 = 0x304;
+_ADC1BUF2 = 0x304;
+ ADC1BUF3 = 0x306;
+_ADC1BUF3 = 0x306;
+ ADC1BUF4 = 0x308;
+_ADC1BUF4 = 0x308;
+ ADC1BUF5 = 0x30A;
+_ADC1BUF5 = 0x30A;
+ ADC1BUF6 = 0x30C;
+_ADC1BUF6 = 0x30C;
+ ADC1BUF7 = 0x30E;
+_ADC1BUF7 = 0x30E;
+ ADC1BUF8 = 0x310;
+_ADC1BUF8 = 0x310;
+ ADC1BUF9 = 0x312;
+_ADC1BUF9 = 0x312;
+ ADC1BUFA = 0x314;
+_ADC1BUFA = 0x314;
+ ADC1BUFB = 0x316;
+_ADC1BUFB = 0x316;
+ ADC1BUFC = 0x318;
+_ADC1BUFC = 0x318;
+ ADC1BUFD = 0x31A;
+_ADC1BUFD = 0x31A;
+ ADC1BUFE = 0x31C;
+_ADC1BUFE = 0x31C;
+ ADC1BUFF = 0x31E;
+_ADC1BUFF = 0x31E;
+ AD1CON1 = 0x320;
+_AD1CON1 = 0x320;
+_AD1CON1bits = 0x320;
+ AD1CON2 = 0x322;
+_AD1CON2 = 0x322;
+_AD1CON2bits = 0x322;
+ AD1CON3 = 0x324;
+_AD1CON3 = 0x324;
+_AD1CON3bits = 0x324;
+ AD1CHS = 0x328;
+_AD1CHS = 0x328;
+_AD1CHSbits = 0x328;
+ AD1PCFG = 0x32C;
+_AD1PCFG = 0x32C;
+_AD1PCFGbits = 0x32C;
+ AD1CSSL = 0x330;
+_AD1CSSL = 0x330;
+_AD1CSSLbits = 0x330;
+ PMCON = 0x600;
+_PMCON = 0x600;
+_PMCONbits = 0x600;
+ PMMODE = 0x602;
+_PMMODE = 0x602;
+_PMMODEbits = 0x602;
+ PMADDR = 0x604;
+_PMADDR = 0x604;
+_PMADDRbits = 0x604;
+ PMDOUT1 = 0x604;
+_PMDOUT1 = 0x604;
+_PMDOUT1bits = 0x604;
+ PMDOUT2 = 0x606;
+_PMDOUT2 = 0x606;
+ PMDIN1 = 0x608;
+_PMDIN1 = 0x608;
+ PMDIN2 = 0x60A;
+_PMDIN2 = 0x60A;
+ PMAEN = 0x60C;
+_PMAEN = 0x60C;
+_PMAENbits = 0x60C;
+ PMSTAT = 0x60E;
+_PMSTAT = 0x60E;
+_PMSTATbits = 0x60E;
+ ALRMVAL = 0x620;
+_ALRMVAL = 0x620;
+ ALCFGRPT = 0x622;
+_ALCFGRPT = 0x622;
+_ALCFGRPTbits = 0x622;
+ RTCVAL = 0x624;
+_RTCVAL = 0x624;
+ RCFGCAL = 0x626;
+_RCFGCAL = 0x626;
+_RCFGCALbits = 0x626;
+ CMCON = 0x630;
+_CMCON = 0x630;
+_CMCONbits = 0x630;
+ CVRCON = 0x632;
+_CVRCON = 0x632;
+_CVRCONbits = 0x632;
+ CRCCON = 0x640;
+_CRCCON = 0x640;
+_CRCCONbits = 0x640;
+ CRCXOR = 0x642;
+_CRCXOR = 0x642;
+_CRCXORbits = 0x642;
+ CRCDAT = 0x644;
+_CRCDAT = 0x644;
+ CRCWDAT = 0x646;
+_CRCWDAT = 0x646;
+ ODCA = 0x6C0;
+_ODCA = 0x6C0;
+_ODCAbits = 0x6C0;
+ ODCB = 0x6C6;
+_ODCB = 0x6C6;
+_ODCBbits = 0x6C6;
+ ODCC = 0x6CC;
+_ODCC = 0x6CC;
+_ODCCbits = 0x6CC;
+ ODCD = 0x6D2;
+_ODCD = 0x6D2;
+_ODCDbits = 0x6D2;
+ ODCE = 0x6D8;
+_ODCE = 0x6D8;
+_ODCEbits = 0x6D8;
+ ODCF = 0x6DE;
+_ODCF = 0x6DE;
+_ODCFbits = 0x6DE;
+ ODCG = 0x6E4;
+_ODCG = 0x6E4;
+_ODCGbits = 0x6E4;
+ RCON = 0x740;
+_RCON = 0x740;
+_RCONbits = 0x740;
+ OSCCON = 0x742;
+_OSCCON = 0x742;
+_OSCCONbits = 0x742;
+ OSCCONL = 0x742;
+_OSCCONL = 0x742;
+ OSCCONH = 0x743;
+_OSCCONH = 0x743;
+ CLKDIV = 0x744;
+_CLKDIV = 0x744;
+_CLKDIVbits = 0x744;
+ OSCTUN = 0x748;
+_OSCTUN = 0x748;
+_OSCTUNbits = 0x748;
+ NVMCON = 0x760;
+_NVMCON = 0x760;
+_NVMCONbits = 0x760;
+ NVMKEY = 0x766;
+_NVMKEY = 0x766;
+ PMD1 = 0x770;
+_PMD1 = 0x770;
+_PMD1bits = 0x770;
+ PMD2 = 0x772;
+_PMD2 = 0x772;
+_PMD2bits = 0x772;
+ PMD3 = 0x774;
+_PMD3 = 0x774;
+_PMD3bits = 0x774;
+/*
+** ======= Base Addresses for Various Peripherals ======
+*/
+
+ IC1 = 0x140;
+_IC1 = 0x140;
+ IC2 = 0x144;
+_IC2 = 0x144;
+ IC3 = 0x148;
+_IC3 = 0x148;
+ IC4 = 0x14C;
+_IC4 = 0x14C;
+ IC5 = 0x150;
+_IC5 = 0x150;
+ OC1 = 0x180;
+_OC1 = 0x180;
+ OC2 = 0x186;
+_OC2 = 0x186;
+ OC3 = 0x18C;
+_OC3 = 0x18C;
+ OC4 = 0x192;
+_OC4 = 0x192;
+ OC5 = 0x198;
+_OC5 = 0x198;
+ SPI1 = 0x240;
+_SPI1 = 0x240;
+ SPI2 = 0x260;
+_SPI2 = 0x260;
+ UART1 = 0x220;
+_UART1 = 0x220;
+ UART2 = 0x230;
+_UART2 = 0x230;