* device/include/asm/pic16/features.h,
authorvrokas <vrokas@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 2 Apr 2005 13:13:53 +0000 (13:13 +0000)
committervrokas <vrokas@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 2 Apr 2005 13:13:53 +0000 (13:13 +0000)
* pic18f*.h headers,
* device/include/pic16/adc.h,
* device/include/pic16/delay.h,
* device/include/pic16/i2c.h,
* device/include/pic16/malloc.h,
* device/include/pic16/stdio.h,
* device/include/pic16/stdlib.h,
* device/include/pic16/string.h,
* device/lib/pic16/libc/stdio/printf_tiny.c,
* device/lib/pic16/libc/stdio/printf_small.c,
* device/lib/pic16/libc/stdio/strmgpsim.c,
* device/lib/pic16/libc/stdio/strmmssp.c,
* device/lib/pic16/libc/stdio/strmusart.c,
* device/lib/pic16/libc/stdio/vfprintf.c,
* device/lib/pic16/libc/stdlib/ltoa.c,
* device/lib/pic16/libc/stdlib/putchar.c,
* device/lib/pic16/libc/stdlib/x_ftoa.c,
* device/lib/pic16/libc/stdlib/memchrpgm.c,
* device/lib/pic16/libc/stdlib/memchrram.c,
* device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
* device/lib/pic16/libc/stdlib/memcpyram2ram.c,
* device/lib/pic16/libio/adc/adcbusy.c,
* device/lib/pic16/libio/adc/adcread.c,
* device/lib/pic16/libio/adc/adcsetch.c,
* device/lib/pic16/libio/usart/ubaud.c,
* device/lib/pic16/libio/usart/ubusy.c,
* device/lib/pic16/libio/usart/udrdy.c,
* device/lib/pic16/libio/usart/uopen.c,
* device/lib/pic16/libio/usart/uputc.c,
* device/lib/pic16/libsdcc/gptr/gptrget1.c,
* device/lib/pic16/libsdcc/gptr/gptrget2.c,
* device/lib/pic16/libsdcc/gptr/gptrget3.c,
* device/lib/pic16/libsdcc/gptr/gptrget4.c,
* device/lib/pic16/libsdcc/gptr/gptrput1.c,
* device/lib/pic16/libsdcc/gptr/gptrput2.c,
* device/lib/pic16/libsdcc/gptr/gptrput3.c,
* device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
specific keywords to double underlined form,
* device/lib/pic16/libc/Makefile.rules,
* device/lib/pic16/libsdcc/Makefile.rules,
* device/lib/pic16/libm/Makefile,
* device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
to compile with C standard set in Makefile.common
* device/lib/pic16/libc/stdlib/Makefile: added new C sources
rand.c and crc.c in compilation process,
* device/lib/pic16/libsdcc/int/divuint.c,
* device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
`c' from signed to unsigned,
* device/lib/pic16/startup/crt0.c,
* device/lib/pic16/startup/crt0i.c,
* device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
keywords to double underlined form, bug fixes in _do_cinit function
which prevented the correct initialization of the .idata segment,
* src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
core to enter a infinite loop
* device/lib/pic16/libc/stdlib/rand.c, crc.c: new files

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3714 4a8a32a2-be11-0410-ad9d-d568d2c75423

72 files changed:
ChangeLog
device/include/asm/pic16/features.h
device/include/pic16/adc.h
device/include/pic16/delay.h
device/include/pic16/i2c.h
device/include/pic16/malloc.h
device/include/pic16/pic18f1220.h
device/include/pic16/pic18f2220.h
device/include/pic16/pic18f242.h
device/include/pic16/pic18f248.h
device/include/pic16/pic18f252.h
device/include/pic16/pic18f258.h
device/include/pic16/pic18f442.h
device/include/pic16/pic18f448.h
device/include/pic16/pic18f452.h
device/include/pic16/pic18f458.h
device/include/pic16/pic18f6520.h
device/include/pic16/pic18f6620.h
device/include/pic16/pic18f6680.h
device/include/pic16/pic18f6720.h
device/include/pic16/pic18f8520.h
device/include/pic16/pic18f8620.h
device/include/pic16/pic18f8680.h
device/include/pic16/pic18f8720.h
device/include/pic16/stdio.h
device/include/pic16/stdlib.h
device/include/pic16/string.h
device/lib/pic16/Makefile.common.in
device/lib/pic16/libc/Makefile.rules
device/lib/pic16/libc/stdio/printf_small.c
device/lib/pic16/libc/stdio/printf_tiny.c
device/lib/pic16/libc/stdio/strmgpsim.c
device/lib/pic16/libc/stdio/strmmssp.c
device/lib/pic16/libc/stdio/strmusart.c
device/lib/pic16/libc/stdio/vfprintf.c
device/lib/pic16/libc/stdlib/Makefile
device/lib/pic16/libc/stdlib/crc16.c [new file with mode: 0644]
device/lib/pic16/libc/stdlib/ltoa.c
device/lib/pic16/libc/stdlib/putchar.c
device/lib/pic16/libc/stdlib/rand.c [new file with mode: 0644]
device/lib/pic16/libc/stdlib/x_ftoa.c
device/lib/pic16/libc/string/memchrpgm.c
device/lib/pic16/libc/string/memchrram.c
device/lib/pic16/libc/string/memcpypgm2ram.c
device/lib/pic16/libc/string/memcpyram2ram.c
device/lib/pic16/libio/Makefile.rules
device/lib/pic16/libio/adc/adcbusy.c
device/lib/pic16/libio/adc/adcread.c
device/lib/pic16/libio/adc/adcsetch.c
device/lib/pic16/libio/usart/ubaud.c
device/lib/pic16/libio/usart/ubusy.c
device/lib/pic16/libio/usart/udrdy.c
device/lib/pic16/libio/usart/uopen.c
device/lib/pic16/libio/usart/uputc.c
device/lib/pic16/libm/Makefile
device/lib/pic16/libm/sincosf.c
device/lib/pic16/libsdcc/Makefile.rules
device/lib/pic16/libsdcc/gptr/gptrget1.c
device/lib/pic16/libsdcc/gptr/gptrget2.c
device/lib/pic16/libsdcc/gptr/gptrget3.c
device/lib/pic16/libsdcc/gptr/gptrget4.c
device/lib/pic16/libsdcc/gptr/gptrput1.c
device/lib/pic16/libsdcc/gptr/gptrput2.c
device/lib/pic16/libsdcc/gptr/gptrput3.c
device/lib/pic16/libsdcc/gptr/gptrput4.c
device/lib/pic16/libsdcc/int/divuint.c
device/lib/pic16/libsdcc/long/divulong.c
device/lib/pic16/startup/Makefile
device/lib/pic16/startup/crt0.c
device/lib/pic16/startup/crt0i.c
device/lib/pic16/startup/crt0iz.c
src/pic16/pcoderegs.c

index d40459009f0cb3014670a1d96957b1d943694631..3e5c7c17348f357106afcba0cc65e24b52abe974 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,63 @@
+2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
+
+        * device/include/asm/pic16/features.h,
+        * pic18f*.h headers,
+        * device/include/pic16/adc.h,
+        * device/include/pic16/delay.h,
+        * device/include/pic16/i2c.h,
+        * device/include/pic16/malloc.h,
+        * device/include/pic16/stdio.h,
+        * device/include/pic16/stdlib.h,
+        * device/include/pic16/string.h,
+        * device/lib/pic16/libc/stdio/printf_tiny.c,
+        * device/lib/pic16/libc/stdio/printf_small.c,
+        * device/lib/pic16/libc/stdio/strmgpsim.c,
+        * device/lib/pic16/libc/stdio/strmmssp.c,
+        * device/lib/pic16/libc/stdio/strmusart.c,
+        * device/lib/pic16/libc/stdio/vfprintf.c,
+        * device/lib/pic16/libc/stdlib/ltoa.c,
+        * device/lib/pic16/libc/stdlib/putchar.c,
+        * device/lib/pic16/libc/stdlib/x_ftoa.c,
+        * device/lib/pic16/libc/stdlib/memchrpgm.c,
+        * device/lib/pic16/libc/stdlib/memchrram.c,
+        * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
+        * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
+        * device/lib/pic16/libio/adc/adcbusy.c,
+        * device/lib/pic16/libio/adc/adcread.c,
+        * device/lib/pic16/libio/adc/adcsetch.c,
+        * device/lib/pic16/libio/usart/ubaud.c,
+        * device/lib/pic16/libio/usart/ubusy.c,
+        * device/lib/pic16/libio/usart/udrdy.c,
+        * device/lib/pic16/libio/usart/uopen.c,
+        * device/lib/pic16/libio/usart/uputc.c,
+        * device/lib/pic16/libsdcc/gptr/gptrget1.c,
+        * device/lib/pic16/libsdcc/gptr/gptrget2.c,
+        * device/lib/pic16/libsdcc/gptr/gptrget3.c,
+        * device/lib/pic16/libsdcc/gptr/gptrget4.c,
+        * device/lib/pic16/libsdcc/gptr/gptrput1.c,
+        * device/lib/pic16/libsdcc/gptr/gptrput2.c,
+        * device/lib/pic16/libsdcc/gptr/gptrput3.c,
+        * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
+        specific keywords to double underlined form,
+        * device/lib/pic16/libc/Makefile.rules,
+        * device/lib/pic16/libsdcc/Makefile.rules,
+        * device/lib/pic16/libm/Makefile,
+        * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
+        to compile with C standard set in Makefile.common
+        * device/lib/pic16/libc/stdlib/Makefile: added new C sources
+        rand.c and crc.c in compilation process,
+        * device/lib/pic16/libsdcc/int/divuint.c,
+        * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
+        `c' from signed to unsigned,
+        * device/lib/pic16/startup/crt0.c,
+        * device/lib/pic16/startup/crt0i.c,
+        * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
+        keywords to double underlined form, bug fixes in _do_cinit function
+        which prevented the correct initialization of the .idata segment,
+        * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
+        core to enter a infinite loop
+        * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
+
 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
 
        * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
index c6e861a5bca988d91c2a94514f98067beb485669..33d078e8a941adebd7d6e6b36def3c882c736322 100644 (file)
@@ -19,8 +19,8 @@
 #define _FS_REENTRANT
 #define _MATH_REENTRANT
 
-#define _CODE  code
-#define _DATA  data
+#define _CODE  __code
+#define _DATA  __data
 #define _AUTOMEM
 #define _STATMEM
 
index ce1e9f8d799424bab0d5d93a6600a44cbd208178..b36fc2319610fe3ab8fdbd9999b2fd4402f499da 100644 (file)
@@ -89,12 +89,12 @@ void adc_close(void);
 void adc_conv(void);
 
 /* return 1 if AD is performing a conversion, 0 if done */
-char adc_busy(void) _naked;
+char adc_busy(void) __naked;
 
 /* get value of convertion */
-int adc_read(void) _naked;
+int adc_read(void) __naked;
 
 /* setup conversion channel */
-void adc_setchannel(unsigned char channel) _naked;
+void adc_setchannel(unsigned char channel) __naked;
 
 #endif
index 1f9353642e6d7f41ad33b7415f6d2a815610581b..7b48b27960b1d0130148cff61bed4aa13c4b124d 100644 (file)
  *   1m  1000000*n cycles delay
  */
  
-void delay10tcy(unsigned char) wparam;
-void delay100tcy(unsigned char) wparam;
-void delay1ktcy(unsigned char) wparam;
-void delay10ktcy(unsigned char) wparam;
-void delay100ktcy(unsigned char) wparam;
-void delay1mtcy(unsigned char) wparam;
+void delay10tcy(unsigned char) __wparam;
+void delay100tcy(unsigned char) __wparam;
+void delay1ktcy(unsigned char) __wparam;
+void delay10ktcy(unsigned char) __wparam;
+void delay100ktcy(unsigned char) __wparam;
+void delay1mtcy(unsigned char) __wparam;
 
 #endif
index eef8b75d694c1cfcdbcf2abbc5157a52731b4bdb..f7de030e28cfd45a26cc9fa41d8fcf1e24c0d8fa 100644 (file)
@@ -37,7 +37,7 @@
 #include <pic18fregs.h>
 
 
-#define _I2CPARAM_SPEC data
+#define _I2CPARAM_SPEC __data
 
 
 /* I2C modes of operation */
index 173a6974e6353fb7adefddd076e95ca8f35ff684..861cdc7bfd287f668347e7065a2c7e715e2fc2e9 100644 (file)
@@ -60,7 +60,7 @@
 
 #pragma library c
 
-#define _MALLOC_SPEC   data
+#define _MALLOC_SPEC   __data
 
 #endif
 
index 28227447ac0abb1719d7e119949c754679ccd548..7562546ad2214cb0d5d138f0a934a8e1661ddbe5 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef __PIC18F1220_H__
 #define __PIC18F1220_H__
 
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf80 PORTA;
 typedef union {
        struct {
                unsigned RA0:1;
@@ -62,9 +62,9 @@ typedef union {
        };
 } __PORTAbits_t;
 
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
 
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
 typedef union {
        struct {
                unsigned RB0:1;
@@ -89,9 +89,9 @@ typedef union {
        };
 } __PORTBbits_t;
 
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
 
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
 typedef union {
        struct {
                unsigned LATA0:1;
@@ -105,9 +105,9 @@ typedef union {
        };
 } __LATAbits_t;
 
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
 
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
 typedef union {
        struct {
                unsigned LATB0:1;
@@ -121,9 +121,9 @@ typedef union {
        };
 } __LATBbits_t;
 
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
 
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
 typedef union {
        struct {
                unsigned TRISA0:1;
@@ -137,9 +137,9 @@ typedef union {
        };
 } __TRISAbits_t;
 
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
 
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
 typedef union {
        struct {
                unsigned TRISB0:1;
@@ -153,9 +153,9 @@ typedef union {
        };
 } __TRISBbits_t;
 
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
 
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
 typedef union {
        struct {
                unsigned TMR1IE:1;
@@ -169,9 +169,9 @@ typedef union {
        };
 } __PIE1bits_t;
 
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
 
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
 typedef union {
        struct {
                unsigned TMR1IF:1;
@@ -185,9 +185,9 @@ typedef union {
        };
 } __PIR1bits_t;
 
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
 
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
 typedef union {
        struct {
                unsigned TMR1IP:1;
@@ -201,9 +201,9 @@ typedef union {
        };
 } __IPR1bits_t;
 
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
 
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
 typedef union {
        struct {
                unsigned :1;
@@ -217,9 +217,9 @@ typedef union {
        };
 } __PIE2bits_t;
 
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
 
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
 typedef union {
        struct {
                unsigned :1;
@@ -233,9 +233,9 @@ typedef union {
        };
 } __PIR2bits_t;
 
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
 
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
 typedef union {
        struct {
                unsigned :1;
@@ -249,9 +249,9 @@ typedef union {
        };
 } __IPR2bits_t;
 
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
 
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
 typedef union {
        struct {
                unsigned RD:1;
@@ -265,13 +265,13 @@ typedef union {
        };
 } __EECON1bits_t;
 
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
 
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfaa BAUDCTL;
-extern sfr at 0xfab RCSTA;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfaa BAUDCTL;
+extern __sfr __at 0xfab RCSTA;
 typedef union {
        struct {
                unsigned RX9D:1;
@@ -285,9 +285,9 @@ typedef union {
        };
 } __RCSTAbits_t;
 
-extern volatile __RCSTAbits_t at 0xfab RCSTAbits;
+extern volatile __RCSTAbits_t __at 0xfab RCSTAbits;
 
-extern sfr at 0xfac TXSTA;
+extern __sfr __at 0xfac TXSTA;
 typedef union {
        struct {
                unsigned TX9D:1;
@@ -301,13 +301,13 @@ typedef union {
        };
 } __TXSTAbits_t;
 
-extern volatile __TXSTAbits_t at 0xfac TXSTAbits;
+extern volatile __TXSTAbits_t __at 0xfac TXSTAbits;
 
-extern sfr at 0xfad TXREG;
-extern sfr at 0xfae RCREG;
-extern sfr at 0xfaf SPBRG;
-extern sfr at 0xfb0 SPBRGH;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfad TXREG;
+extern __sfr __at 0xfae RCREG;
+extern __sfr __at 0xfaf SPBRG;
+extern __sfr __at 0xfb0 SPBRGH;
+extern __sfr __at 0xfb1 T3CON;
 typedef union {
        struct {
                unsigned TMR3ON:1;
@@ -321,11 +321,11 @@ typedef union {
        };
 } __T3CONbits_t;
 
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
 
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfbd CCP1CON;
 typedef union {
        struct {
                unsigned CCP1M0:1;
@@ -339,11 +339,11 @@ typedef union {
        };
 } __CCP1CONbits_t;
 
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
 
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc0 ADCON2;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc0 ADCON2;
 typedef union {
        struct {
                unsigned ADCS0:1;
@@ -357,9 +357,9 @@ typedef union {
        };
 } __ADCON2bits_t;
 
-extern volatile __ADCON2bits_t at 0xfc0 ADCON2bits;
+extern volatile __ADCON2bits_t __at 0xfc0 ADCON2bits;
 
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfc1 ADCON1;
 typedef union {
        struct {
                unsigned PCFG0:1;
@@ -373,9 +373,9 @@ typedef union {
        };
 } __ADCON1bits_t;
 
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
 
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
 typedef union {
        struct {
                unsigned ADON:1;
@@ -389,11 +389,11 @@ typedef union {
        };
 } __ADCON0bits_t;
 
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
 
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfca T2CON;
 typedef union {
        struct {
                unsigned T2CKPS0:1;
@@ -407,11 +407,11 @@ typedef union {
        };
 } __T2CONbits_t;
 
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
 
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
 typedef union {
        struct {
                unsigned TMR1ON:1;
@@ -425,11 +425,11 @@ typedef union {
        };
 } __T1CONbits_t;
 
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
 
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
 typedef union {
        struct {
                unsigned BOR:1;
@@ -443,9 +443,9 @@ typedef union {
        };
 } __RCONbits_t;
 
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
 
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
 typedef union {
        struct {
                unsigned SWDTEN:1;
@@ -470,9 +470,9 @@ typedef union {
        };
 } __WDTCONbits_t;
 
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
 
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
 typedef union {
        struct {
                unsigned LVDL0:1;
@@ -497,9 +497,9 @@ typedef union {
        };
 } __LVDCONbits_t;
 
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
 
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
 typedef union {
        struct {
                unsigned SCS:1;
@@ -513,12 +513,12 @@ typedef union {
        };
 } __OSCCONbits_t;
 
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
 
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
 typedef union {
        struct {
                unsigned C:1;
@@ -532,32 +532,32 @@ typedef union {
        };
 } __STATUSbits_t;
 
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
 typedef union {
        struct {
                unsigned INT1F:1;
@@ -582,9 +582,9 @@ typedef union {
        };
 } __INTCON3bits_t;
 
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
 
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
 typedef union {
        struct {
                unsigned RBIP:1;
@@ -598,9 +598,9 @@ typedef union {
        };
 } __INTCON2bits_t;
 
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
 
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
 typedef union {
        struct {
                unsigned RBIF:1;
@@ -614,18 +614,18 @@ typedef union {
        };
 } __INTCONbits_t;
 
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
-
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
+
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
 typedef union {
        struct {
                unsigned STKPTR0:1;
@@ -639,11 +639,11 @@ typedef union {
        };
 } __STKPTRbits_t;
 
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
 
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
 
 
 /* Configuration registers locations */
index 48dd054f299707a7d8f5efb3113a42bcda6e2832..34dbad45cf715b8bb7a1041d6398e041ce8a168c 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef __PIC18F2220_H__
 #define __PIC18F2220_H__
 
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf80 PORTA;
 typedef union {
        struct {
                unsigned RA0:1;
@@ -62,9 +62,9 @@ typedef union {
        };
 } __PORTAbits_t;
 
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
 
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
 typedef union {
        struct {
                unsigned RB0:1;
@@ -89,9 +89,9 @@ typedef union {
        };
 } __PORTBbits_t;
 
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
 
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
 typedef union {
        struct {
                unsigned RC0:1;
@@ -127,9 +127,9 @@ typedef union {
        };
 } __PORTCbits_t;
 
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
 
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
 typedef union {
        struct {
                unsigned LATA0:1;
@@ -143,9 +143,9 @@ typedef union {
        };
 } __LATAbits_t;
 
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
 
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
 typedef union {
        struct {
                unsigned LATB0:1;
@@ -159,9 +159,9 @@ typedef union {
        };
 } __LATBbits_t;
 
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
 
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
 typedef union {
        struct {
                unsigned LATC0:1;
@@ -175,9 +175,9 @@ typedef union {
        };
 } __LATCbits_t;
 
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
 
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
 typedef union {
        struct {
                unsigned TRISA0:1;
@@ -191,9 +191,9 @@ typedef union {
        };
 } __TRISAbits_t;
 
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
 
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
 typedef union {
        struct {
                unsigned TRISB0:1;
@@ -207,9 +207,9 @@ typedef union {
        };
 } __TRISBbits_t;
 
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
 
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
 typedef union {
        struct {
                unsigned TRISC0:1;
@@ -223,9 +223,9 @@ typedef union {
        };
 } __TRISCbits_t;
 
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
 
-extern sfr at 0xf9b OSCTUNE;
+extern __sfr __at 0xf9b OSCTUNE;
 typedef union {
        struct {
                unsigned TUN0:1;
@@ -239,9 +239,9 @@ typedef union {
        };
 } __OSCTUNEbits_t;
 
-extern volatile __OSCTUNEbits_t at 0xf9b OSCTUNEbits;
+extern volatile __OSCTUNEbits_t __at 0xf9b OSCTUNEbits;
 
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
 typedef union {
        struct {
                unsigned TMR1IE:1;
@@ -255,9 +255,9 @@ typedef union {
        };
 } __PIE1bits_t;
 
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
 
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
 typedef union {
        struct {
                unsigned TMR1IF:1;
@@ -271,9 +271,9 @@ typedef union {
        };
 } __PIR1bits_t;
 
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
 
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
 typedef union {
        struct {
                unsigned TMR1IP:1;
@@ -287,9 +287,9 @@ typedef union {
        };
 } __IPR1bits_t;
 
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
 
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
 typedef union {
        struct {
                unsigned CCP2IE:1;
@@ -303,9 +303,9 @@ typedef union {
        };
 } __PIE2bits_t;
 
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
 
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
 typedef union {
        struct {
                unsigned CCP2IF:1;
@@ -319,9 +319,9 @@ typedef union {
        };
 } __PIR2bits_t;
 
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
 
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
 typedef union {
        struct {
                unsigned CCP2IP:1;
@@ -335,9 +335,9 @@ typedef union {
        };
 } __IPR2bits_t;
 
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
 
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
 typedef union {
        struct {
                unsigned RD:1;
@@ -351,12 +351,12 @@ typedef union {
        };
 } __EECON1bits_t;
 
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
 
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfab RCSTA;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfab RCSTA;
 typedef union {
        struct {
                unsigned RX9D:1;
@@ -370,9 +370,9 @@ typedef union {
        };
 } __RCSTAbits_t;
 
-extern volatile __RCSTAbits_t at 0xfab RCSTAbits;
+extern volatile __RCSTAbits_t __at 0xfab RCSTAbits;
 
-extern sfr at 0xfac TXSTA;
+extern __sfr __at 0xfac TXSTA;
 typedef union {
        struct {
                unsigned TX9D:1;
@@ -386,12 +386,12 @@ typedef union {
        };
 } __TXSTAbits_t;
 
-extern volatile __TXSTAbits_t at 0xfac TXSTAbits;
+extern volatile __TXSTAbits_t __at 0xfac TXSTAbits;
 
-extern sfr at 0xfad TXREG;
-extern sfr at 0xfae RCREG;
-extern sfr at 0xfaf SPBRG;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfad TXREG;
+extern __sfr __at 0xfae RCREG;
+extern __sfr __at 0xfaf SPBRG;
+extern __sfr __at 0xfb1 T3CON;
 typedef union {
        struct {
                unsigned TMR3ON:1;
@@ -405,11 +405,11 @@ typedef union {
        };
 } __T3CONbits_t;
 
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
 
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfb4 CMCON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfb4 CMCON;
 typedef union {
        struct {
                unsigned CM0:1;
@@ -423,9 +423,9 @@ typedef union {
        };
 } __CMCONbits_t;
 
-extern volatile __CMCONbits_t at 0xfb4 CMCONbits;
+extern volatile __CMCONbits_t __at 0xfb4 CMCONbits;
 
-extern sfr at 0xfb5 CVRCON;
+extern __sfr __at 0xfb5 CVRCON;
 typedef union {
        struct {
                unsigned CVR0:1;
@@ -439,9 +439,9 @@ typedef union {
        };
 } __CVRCONbits_t;
 
-extern volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
+extern volatile __CVRCONbits_t __at 0xfb5 CVRCONbits;
 
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfba CCP2CON;
 typedef union {
        struct {
                unsigned CCP2M0:1;
@@ -455,11 +455,11 @@ typedef union {
        };
 } __CCP2CONbits_t;
 
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
 
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfbd CCP1CON;
 typedef union {
        struct {
                unsigned CCP1M0:1;
@@ -473,11 +473,11 @@ typedef union {
        };
 } __CCP1CONbits_t;
 
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
 
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc0 ADCON2;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc0 ADCON2;
 typedef union {
        struct {
                unsigned ADCS0:1;
@@ -491,9 +491,9 @@ typedef union {
        };
 } __ADCON2bits_t;
 
-extern volatile __ADCON2bits_t at 0xfc0 ADCON2bits;
+extern volatile __ADCON2bits_t __at 0xfc0 ADCON2bits;
 
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfc1 ADCON1;
 typedef union {
        struct {
                unsigned PCFG0:1;
@@ -507,9 +507,9 @@ typedef union {
        };
 } __ADCON1bits_t;
 
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
 
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
 typedef union {
        struct {
                unsigned ADON:1;
@@ -523,11 +523,11 @@ typedef union {
        };
 } __ADCON0bits_t;
 
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
 
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
 typedef union {
        struct {
                unsigned SEN:1;
@@ -541,9 +541,9 @@ typedef union {
        };
 } __SSPCON2bits_t;
 
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
 
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
 typedef union {
        struct {
                unsigned SSPM0:1;
@@ -557,9 +557,9 @@ typedef union {
        };
 } __SSPCON1bits_t;
 
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
 
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
 typedef union {
        struct {
                unsigned BF:1;
@@ -573,11 +573,11 @@ typedef union {
        };
 } __SSPSTATbits_t;
 
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
 
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
 typedef union {
        struct {
                unsigned T2CKPS0:1;
@@ -591,11 +591,11 @@ typedef union {
        };
 } __T2CONbits_t;
 
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
 
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
 typedef union {
        struct {
                unsigned TMR1ON:1;
@@ -609,11 +609,11 @@ typedef union {
        };
 } __T1CONbits_t;
 
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
 
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
 typedef union {
        struct {
                unsigned BOR:1;
@@ -627,9 +627,9 @@ typedef union {
        };
 } __RCONbits_t;
 
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
 
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
 typedef union {
        struct {
                unsigned SWDTEN:1;
@@ -654,9 +654,9 @@ typedef union {
        };
 } __WDTCONbits_t;
 
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
 
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
 typedef union {
        struct {
                unsigned LVDL0:1;
@@ -681,9 +681,9 @@ typedef union {
        };
 } __LVDCONbits_t;
 
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
 
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
 typedef union {
        struct {
                unsigned SCS:1;
@@ -697,12 +697,12 @@ typedef union {
        };
 } __OSCCONbits_t;
 
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
 
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
 typedef union {
        struct {
                unsigned C:1;
@@ -716,32 +716,32 @@ typedef union {
        };
 } __STATUSbits_t;
 
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
 typedef union {
        struct {
                unsigned INT1F:1;
@@ -766,9 +766,9 @@ typedef union {
        };
 } __INTCON3bits_t;
 
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
 
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
 typedef union {
        struct {
                unsigned RBIP:1;
@@ -782,9 +782,9 @@ typedef union {
        };
 } __INTCON2bits_t;
 
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
 
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
 typedef union {
        struct {
                unsigned RBIF:1;
@@ -798,18 +798,18 @@ typedef union {
        };
 } __INTCONbits_t;
 
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
 
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
 typedef union {
        struct {
                unsigned STKPTR0:1;
@@ -823,11 +823,11 @@ typedef union {
        };
 } __STKPTRbits_t;
 
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
 
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
 
 
 /* Configuration registers locations */
index 37b31ce4dfddac5af590bf08ba66971996a560cb..dd68e6261081a669eb7974145239ad91ed5cf4f9 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef __PIC18F242_H__
 #define __PIC18F242_H__
 
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf80 PORTA;
 typedef union {
        struct {
                unsigned RA0:1;
@@ -62,9 +62,9 @@ typedef union {
        };
 } __PORTAbits_t;
 
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
 
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
 typedef union {
        struct {
                unsigned RB0:1;
@@ -89,9 +89,9 @@ typedef union {
        };
 } __PORTBbits_t;
 
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
 
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
 typedef union {
        struct {
                unsigned RC0:1;
@@ -127,9 +127,9 @@ typedef union {
        };
 } __PORTCbits_t;
 
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
 
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
 typedef union {
        struct {
                unsigned LATA0:1;
@@ -143,9 +143,9 @@ typedef union {
        };
 } __LATAbits_t;
 
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
 
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
 typedef union {
        struct {
                unsigned LATB0:1;
@@ -159,9 +159,9 @@ typedef union {
        };
 } __LATBbits_t;
 
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
 
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
 typedef union {
        struct {
                unsigned LATC0:1;
@@ -175,9 +175,9 @@ typedef union {
        };
 } __LATCbits_t;
 
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
 
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
 typedef union {
        struct {
                unsigned TRISA0:1;
@@ -191,9 +191,9 @@ typedef union {
        };
 } __TRISAbits_t;
 
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
 
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
 typedef union {
        struct {
                unsigned TRISB0:1;
@@ -207,9 +207,9 @@ typedef union {
        };
 } __TRISBbits_t;
 
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
 
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
 typedef union {
        struct {
                unsigned TRISC0:1;
@@ -223,9 +223,9 @@ typedef union {
        };
 } __TRISCbits_t;
 
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
 
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
 typedef union {
        struct {
                unsigned TMR1IE:1;
@@ -239,9 +239,9 @@ typedef union {
        };
 } __PIE1bits_t;
 
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
 
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
 typedef union {
        struct {
                unsigned TMR1IF:1;
@@ -255,9 +255,9 @@ typedef union {
        };
 } __PIR1bits_t;
 
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
 
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
 typedef union {
        struct {
                unsigned TMR1IP:1;
@@ -271,9 +271,9 @@ typedef union {
        };
 } __IPR1bits_t;
 
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
 
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
 typedef union {
        struct {
                unsigned CCP2IE:1;
@@ -287,9 +287,9 @@ typedef union {
        };
 } __PIE2bits_t;
 
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
 
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
 typedef union {
        struct {
                unsigned CCP2IF:1;
@@ -303,9 +303,9 @@ typedef union {
        };
 } __PIR2bits_t;
 
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
 
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
 typedef union {
        struct {
                unsigned CCP2IP:1;
@@ -319,9 +319,9 @@ typedef union {
        };
 } __IPR2bits_t;
 
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
 
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
 typedef union {
        struct {
                unsigned RD:1;
@@ -335,12 +335,12 @@ typedef union {
        };
 } __EECON1bits_t;
 
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
 
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfab RCSTA;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfab RCSTA;
 typedef union {
        struct {
                unsigned RX9D:1;
@@ -354,9 +354,9 @@ typedef union {
        };
 } __RCSTAbits_t;
 
-extern volatile __RCSTAbits_t at 0xfab RCSTAbits;
+extern volatile __RCSTAbits_t __at 0xfab RCSTAbits;
 
-extern sfr at 0xfac TXSTA;
+extern __sfr __at 0xfac TXSTA;
 typedef union {
        struct {
                unsigned TX9D:1;
@@ -370,12 +370,12 @@ typedef union {
        };
 } __TXSTAbits_t;
 
-extern volatile __TXSTAbits_t at 0xfac TXSTAbits;
+extern volatile __TXSTAbits_t __at 0xfac TXSTAbits;
 
-extern sfr at 0xfad TXREG;
-extern sfr at 0xfae RCREG;
-extern sfr at 0xfaf SPBRG;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfad TXREG;
+extern __sfr __at 0xfae RCREG;
+extern __sfr __at 0xfaf SPBRG;
+extern __sfr __at 0xfb1 T3CON;
 typedef union {
        struct {
                unsigned TMR3ON:1;
@@ -389,11 +389,11 @@ typedef union {
        };
 } __T3CONbits_t;
 
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
 
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfba CCP2CON;
 typedef union {
        struct {
                unsigned CCP2M0:1;
@@ -407,11 +407,11 @@ typedef union {
        };
 } __CCP2CONbits_t;
 
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
 
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfbd CCP1CON;
 typedef union {
        struct {
                unsigned CCP1M0:1;
@@ -425,11 +425,11 @@ typedef union {
        };
 } __CCP1CONbits_t;
 
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
 
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc1 ADCON1;
 typedef union {
        struct {
                unsigned PCFG0:1;
@@ -443,9 +443,9 @@ typedef union {
        };
 } __ADCON1bits_t;
 
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
 
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
 typedef union {
        struct {
                unsigned ADON:1;
@@ -459,11 +459,11 @@ typedef union {
        };
 } __ADCON0bits_t;
 
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
 
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
 typedef union {
        struct {
                unsigned SEN:1;
@@ -477,9 +477,9 @@ typedef union {
        };
 } __SSPCON2bits_t;
 
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
 
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
 typedef union {
        struct {
                unsigned SSPM0:1;
@@ -493,9 +493,9 @@ typedef union {
        };
 } __SSPCON1bits_t;
 
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
 
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
 typedef union {
        struct {
                unsigned BF:1;
@@ -509,11 +509,11 @@ typedef union {
        };
 } __SSPSTATbits_t;
 
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
 
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
 typedef union {
        struct {
                unsigned T2CKPS0:1;
@@ -527,11 +527,11 @@ typedef union {
        };
 } __T2CONbits_t;
 
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
 
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
 typedef union {
        struct {
                unsigned TMR1ON:1;
@@ -545,11 +545,11 @@ typedef union {
        };
 } __T1CONbits_t;
 
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
 
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
 typedef union {
        struct {
                unsigned BOR:1;
@@ -563,9 +563,9 @@ typedef union {
        };
 } __RCONbits_t;
 
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
 
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
 typedef union {
        struct {
                unsigned SWDTEN:1;
@@ -590,9 +590,9 @@ typedef union {
        };
 } __WDTCONbits_t;
 
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
 
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
 typedef union {
        struct {
                unsigned LVDL0:1;
@@ -617,9 +617,9 @@ typedef union {
        };
 } __LVDCONbits_t;
 
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
 
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
 typedef union {
        struct {
                unsigned SCS:1;
@@ -633,9 +633,9 @@ typedef union {
        };
 } __OSCCONbits_t;
 
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
 
-extern sfr at 0xfd5 T0CON;
+extern __sfr __at 0xfd5 T0CON;
 typedef union {
        struct {
                unsigned T0PS0:1;
@@ -649,11 +649,11 @@ typedef union {
        };
 } __T0CONbits_t;
 
-extern volatile __T0CONbits_t at 0xfd5 T0CONbits;
+extern volatile __T0CONbits_t __at 0xfd5 T0CONbits;
 
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
 typedef union {
        struct {
                unsigned C:1;
@@ -667,32 +667,32 @@ typedef union {
        };
 } __STATUSbits_t;
 
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
 typedef union {
        struct {
                unsigned INT1F:1;
@@ -717,9 +717,9 @@ typedef union {
        };
 } __INTCON3bits_t;
 
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
 
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
 typedef union {
        struct {
                unsigned RBIP:1;
@@ -733,9 +733,9 @@ typedef union {
        };
 } __INTCON2bits_t;
 
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
 
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
 typedef union {
        struct {
                unsigned RBIF:1;
@@ -749,18 +749,18 @@ typedef union {
        };
 } __INTCONbits_t;
 
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
 
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
 typedef union {
        struct {
                unsigned STKPTR0:1;
@@ -774,11 +774,11 @@ typedef union {
        };
 } __STKPTRbits_t;
 
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
 
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
 
 
 /* Configuration registers locations */
index f8d9ee885097aac0bb4a72369d6360c2b08784fd..c07a6ef81ce3c7a239a9e362a308fbf482699208 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef __PIC18F248_H__
 #define __PIC18F248_H__
 
-extern sfr at 0xf00 RXF0SIDH;
+extern __sfr __at 0xf00 RXF0SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -29,9 +29,9 @@ typedef union {
        };
 } __RXF0SIDHbits_t;
 
-extern volatile __RXF0SIDHbits_t at 0xf00 RXF0SIDHbits;
+extern volatile __RXF0SIDHbits_t __at 0xf00 RXF0SIDHbits;
 
-extern sfr at 0xf01 RXF0SIDL;
+extern __sfr __at 0xf01 RXF0SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -45,9 +45,9 @@ typedef union {
        };
 } __RXF0SIDLbits_t;
 
-extern volatile __RXF0SIDLbits_t at 0xf01 RXF0SIDLbits;
+extern volatile __RXF0SIDLbits_t __at 0xf01 RXF0SIDLbits;
 
-extern sfr at 0xf02 RXF0EIDH;
+extern __sfr __at 0xf02 RXF0EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -61,9 +61,9 @@ typedef union {
        };
 } __RXF0EIDHbits_t;
 
-extern volatile __RXF0EIDHbits_t at 0xf02 RXF0EIDHbits;
+extern volatile __RXF0EIDHbits_t __at 0xf02 RXF0EIDHbits;
 
-extern sfr at 0xf03 RXF0EIDL;
+extern __sfr __at 0xf03 RXF0EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -77,9 +77,9 @@ typedef union {
        };
 } __RXF0EIDLbits_t;
 
-extern volatile __RXF0EIDLbits_t at 0xf03 RXF0EIDLbits;
+extern volatile __RXF0EIDLbits_t __at 0xf03 RXF0EIDLbits;
 
-extern sfr at 0xf04 RXF1SIDH;
+extern __sfr __at 0xf04 RXF1SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -93,9 +93,9 @@ typedef union {
        };
 } __RXF1SIDHbits_t;
 
-extern volatile __RXF1SIDHbits_t at 0xf04 RXF1SIDHbits;
+extern volatile __RXF1SIDHbits_t __at 0xf04 RXF1SIDHbits;
 
-extern sfr at 0xf05 RXF1SIDL;
+extern __sfr __at 0xf05 RXF1SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -109,9 +109,9 @@ typedef union {
        };
 } __RXF1SIDLbits_t;
 
-extern volatile __RXF1SIDLbits_t at 0xf05 RXF1SIDLbits;
+extern volatile __RXF1SIDLbits_t __at 0xf05 RXF1SIDLbits;
 
-extern sfr at 0xf06 RXF1EIDH;
+extern __sfr __at 0xf06 RXF1EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -125,9 +125,9 @@ typedef union {
        };
 } __RXF1EIDHbits_t;
 
-extern volatile __RXF1EIDHbits_t at 0xf06 RXF1EIDHbits;
+extern volatile __RXF1EIDHbits_t __at 0xf06 RXF1EIDHbits;
 
-extern sfr at 0xf07 RXF1EIDL;
+extern __sfr __at 0xf07 RXF1EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -141,9 +141,9 @@ typedef union {
        };
 } __RXF1EIDLbits_t;
 
-extern volatile __RXF1EIDLbits_t at 0xf07 RXF1EIDLbits;
+extern volatile __RXF1EIDLbits_t __at 0xf07 RXF1EIDLbits;
 
-extern sfr at 0xf08 RXF2SIDH;
+extern __sfr __at 0xf08 RXF2SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -157,9 +157,9 @@ typedef union {
        };
 } __RXF2SIDHbits_t;
 
-extern volatile __RXF2SIDHbits_t at 0xf08 RXF2SIDHbits;
+extern volatile __RXF2SIDHbits_t __at 0xf08 RXF2SIDHbits;
 
-extern sfr at 0xf09 RXF2SIDL;
+extern __sfr __at 0xf09 RXF2SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -173,9 +173,9 @@ typedef union {
        };
 } __RXF2SIDLbits_t;
 
-extern volatile __RXF2SIDLbits_t at 0xf09 RXF2SIDLbits;
+extern volatile __RXF2SIDLbits_t __at 0xf09 RXF2SIDLbits;
 
-extern sfr at 0xf0a RXF2EIDH;
+extern __sfr __at 0xf0a RXF2EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -189,9 +189,9 @@ typedef union {
        };
 } __RXF2EIDHbits_t;
 
-extern volatile __RXF2EIDHbits_t at 0xf0a RXF2EIDHbits;
+extern volatile __RXF2EIDHbits_t __at 0xf0a RXF2EIDHbits;
 
-extern sfr at 0xf0b RXF2EIDL;
+extern __sfr __at 0xf0b RXF2EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -205,9 +205,9 @@ typedef union {
        };
 } __RXF2EIDLbits_t;
 
-extern volatile __RXF2EIDLbits_t at 0xf0b RXF2EIDLbits;
+extern volatile __RXF2EIDLbits_t __at 0xf0b RXF2EIDLbits;
 
-extern sfr at 0xf0c RXF3SIDH;
+extern __sfr __at 0xf0c RXF3SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -221,9 +221,9 @@ typedef union {
        };
 } __RXF3SIDHbits_t;
 
-extern volatile __RXF3SIDHbits_t at 0xf0c RXF3SIDHbits;
+extern volatile __RXF3SIDHbits_t __at 0xf0c RXF3SIDHbits;
 
-extern sfr at 0xf0d RXF3SIDL;
+extern __sfr __at 0xf0d RXF3SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -237,9 +237,9 @@ typedef union {
        };
 } __RXF3SIDLbits_t;
 
-extern volatile __RXF3SIDLbits_t at 0xf0d RXF3SIDLbits;
+extern volatile __RXF3SIDLbits_t __at 0xf0d RXF3SIDLbits;
 
-extern sfr at 0xf0e RXF3EIDH;
+extern __sfr __at 0xf0e RXF3EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -253,9 +253,9 @@ typedef union {
        };
 } __RXF3EIDHbits_t;
 
-extern volatile __RXF3EIDHbits_t at 0xf0e RXF3EIDHbits;
+extern volatile __RXF3EIDHbits_t __at 0xf0e RXF3EIDHbits;
 
-extern sfr at 0xf0f RXF3EIDL;
+extern __sfr __at 0xf0f RXF3EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -269,9 +269,9 @@ typedef union {
        };
 } __RXF3EIDLbits_t;
 
-extern volatile __RXF3EIDLbits_t at 0xf0f RXF3EIDLbits;
+extern volatile __RXF3EIDLbits_t __at 0xf0f RXF3EIDLbits;
 
-extern sfr at 0xf10 RXF4SIDH;
+extern __sfr __at 0xf10 RXF4SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -285,9 +285,9 @@ typedef union {
        };
 } __RXF4SIDHbits_t;
 
-extern volatile __RXF4SIDHbits_t at 0xf10 RXF4SIDHbits;
+extern volatile __RXF4SIDHbits_t __at 0xf10 RXF4SIDHbits;
 
-extern sfr at 0xf11 RXF4SIDL;
+extern __sfr __at 0xf11 RXF4SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -301,9 +301,9 @@ typedef union {
        };
 } __RXF4SIDLbits_t;
 
-extern volatile __RXF4SIDLbits_t at 0xf11 RXF4SIDLbits;
+extern volatile __RXF4SIDLbits_t __at 0xf11 RXF4SIDLbits;
 
-extern sfr at 0xf12 RXF4EIDH;
+extern __sfr __at 0xf12 RXF4EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -317,9 +317,9 @@ typedef union {
        };
 } __RXF4EIDHbits_t;
 
-extern volatile __RXF4EIDHbits_t at 0xf12 RXF4EIDHbits;
+extern volatile __RXF4EIDHbits_t __at 0xf12 RXF4EIDHbits;
 
-extern sfr at 0xf13 RXF4EIDL;
+extern __sfr __at 0xf13 RXF4EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -333,9 +333,9 @@ typedef union {
        };
 } __RXF4EIDLbits_t;
 
-extern volatile __RXF4EIDLbits_t at 0xf13 RXF4EIDLbits;
+extern volatile __RXF4EIDLbits_t __at 0xf13 RXF4EIDLbits;
 
-extern sfr at 0xf14 RXF5SIDH;
+extern __sfr __at 0xf14 RXF5SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -349,9 +349,9 @@ typedef union {
        };
 } __RXF5SIDHbits_t;
 
-extern volatile __RXF5SIDHbits_t at 0xf14 RXF5SIDHbits;
+extern volatile __RXF5SIDHbits_t __at 0xf14 RXF5SIDHbits;
 
-extern sfr at 0xf15 RXF5SIDL;
+extern __sfr __at 0xf15 RXF5SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -365,9 +365,9 @@ typedef union {
        };
 } __RXF5SIDLbits_t;
 
-extern volatile __RXF5SIDLbits_t at 0xf15 RXF5SIDLbits;
+extern volatile __RXF5SIDLbits_t __at 0xf15 RXF5SIDLbits;
 
-extern sfr at 0xf16 RXF5EIDH;
+extern __sfr __at 0xf16 RXF5EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -381,9 +381,9 @@ typedef union {
        };
 } __RXF5EIDHbits_t;
 
-extern volatile __RXF5EIDHbits_t at 0xf16 RXF5EIDHbits;
+extern volatile __RXF5EIDHbits_t __at 0xf16 RXF5EIDHbits;
 
-extern sfr at 0xf17 RXF5EIDL;
+extern __sfr __at 0xf17 RXF5EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -397,9 +397,9 @@ typedef union {
        };
 } __RXF5EIDLbits_t;
 
-extern volatile __RXF5EIDLbits_t at 0xf17 RXF5EIDLbits;
+extern volatile __RXF5EIDLbits_t __at 0xf17 RXF5EIDLbits;
 
-extern sfr at 0xf18 RXM0SIDH;
+extern __sfr __at 0xf18 RXM0SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -413,9 +413,9 @@ typedef union {
        };
 } __RXM0SIDHbits_t;
 
-extern volatile __RXM0SIDHbits_t at 0xf18 RXM0SIDHbits;
+extern volatile __RXM0SIDHbits_t __at 0xf18 RXM0SIDHbits;
 
-extern sfr at 0xf19 RXM0SIDL;
+extern __sfr __at 0xf19 RXM0SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -429,9 +429,9 @@ typedef union {
        };
 } __RXM0SIDLbits_t;
 
-extern volatile __RXM0SIDLbits_t at 0xf19 RXM0SIDLbits;
+extern volatile __RXM0SIDLbits_t __at 0xf19 RXM0SIDLbits;
 
-extern sfr at 0xf1a RXM0EIDH;
+extern __sfr __at 0xf1a RXM0EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -445,9 +445,9 @@ typedef union {
        };
 } __RXM0EIDHbits_t;
 
-extern volatile __RXM0EIDHbits_t at 0xf1a RXM0EIDHbits;
+extern volatile __RXM0EIDHbits_t __at 0xf1a RXM0EIDHbits;
 
-extern sfr at 0xf1b RXM0EIDL;
+extern __sfr __at 0xf1b RXM0EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -461,9 +461,9 @@ typedef union {
        };
 } __RXM0EIDLbits_t;
 
-extern volatile __RXM0EIDLbits_t at 0xf1b RXM0EIDLbits;
+extern volatile __RXM0EIDLbits_t __at 0xf1b RXM0EIDLbits;
 
-extern sfr at 0xf1c RXM1SIDH;
+extern __sfr __at 0xf1c RXM1SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -477,9 +477,9 @@ typedef union {
        };
 } __RXM1SIDHbits_t;
 
-extern volatile __RXM1SIDHbits_t at 0xf1c RXM1SIDHbits;
+extern volatile __RXM1SIDHbits_t __at 0xf1c RXM1SIDHbits;
 
-extern sfr at 0xf1d RXM1SIDL;
+extern __sfr __at 0xf1d RXM1SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -493,9 +493,9 @@ typedef union {
        };
 } __RXM1SIDLbits_t;
 
-extern volatile __RXM1SIDLbits_t at 0xf1d RXM1SIDLbits;
+extern volatile __RXM1SIDLbits_t __at 0xf1d RXM1SIDLbits;
 
-extern sfr at 0xf1e RXM1EIDH;
+extern __sfr __at 0xf1e RXM1EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -509,9 +509,9 @@ typedef union {
        };
 } __RXM1EIDHbits_t;
 
-extern volatile __RXM1EIDHbits_t at 0xf1e RXM1EIDHbits;
+extern volatile __RXM1EIDHbits_t __at 0xf1e RXM1EIDHbits;
 
-extern sfr at 0xf1f RXM1EIDL;
+extern __sfr __at 0xf1f RXM1EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -525,9 +525,9 @@ typedef union {
        };
 } __RXM1EIDLbits_t;
 
-extern volatile __RXM1EIDLbits_t at 0xf1f RXM1EIDLbits;
+extern volatile __RXM1EIDLbits_t __at 0xf1f RXM1EIDLbits;
 
-extern sfr at 0xf20 TXB2CON;
+extern __sfr __at 0xf20 TXB2CON;
 typedef union {
        struct {
                unsigned TXPRI0:1;
@@ -541,9 +541,9 @@ typedef union {
        };
 } __TXB2CONbits_t;
 
-extern volatile __TXB2CONbits_t at 0xf20 TXB2CONbits;
+extern volatile __TXB2CONbits_t __at 0xf20 TXB2CONbits;
 
-extern sfr at 0xf21 TXB2SIDH;
+extern __sfr __at 0xf21 TXB2SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -557,9 +557,9 @@ typedef union {
        };
 } __TXB2SIDHbits_t;
 
-extern volatile __TXB2SIDHbits_t at 0xf21 TXB2SIDHbits;
+extern volatile __TXB2SIDHbits_t __at 0xf21 TXB2SIDHbits;
 
-extern sfr at 0xf22 TXB2SIDL;
+extern __sfr __at 0xf22 TXB2SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -573,9 +573,9 @@ typedef union {
        };
 } __TXB2SIDLbits_t;
 
-extern volatile __TXB2SIDLbits_t at 0xf22 TXB2SIDLbits;
+extern volatile __TXB2SIDLbits_t __at 0xf22 TXB2SIDLbits;
 
-extern sfr at 0xf23 TXB2EIDH;
+extern __sfr __at 0xf23 TXB2EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -589,9 +589,9 @@ typedef union {
        };
 } __TXB2EIDHbits_t;
 
-extern volatile __TXB2EIDHbits_t at 0xf23 TXB2EIDHbits;
+extern volatile __TXB2EIDHbits_t __at 0xf23 TXB2EIDHbits;
 
-extern sfr at 0xf24 TXB2EIDL;
+extern __sfr __at 0xf24 TXB2EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -605,9 +605,9 @@ typedef union {
        };
 } __TXB2EIDLbits_t;
 
-extern volatile __TXB2EIDLbits_t at 0xf24 TXB2EIDLbits;
+extern volatile __TXB2EIDLbits_t __at 0xf24 TXB2EIDLbits;
 
-extern sfr at 0xf25 TXB2DLC;
+extern __sfr __at 0xf25 TXB2DLC;
 typedef union {
        struct {
                unsigned TXB2DLC0:1;
@@ -621,9 +621,9 @@ typedef union {
        };
 } __TXB2DLCbits_t;
 
-extern volatile __TXB2DLCbits_t at 0xf25 TXB2DLCbits;
+extern volatile __TXB2DLCbits_t __at 0xf25 TXB2DLCbits;
 
-extern sfr at 0xf26 TXB2D0;
+extern __sfr __at 0xf26 TXB2D0;
 typedef union {
        struct {
                unsigned TXB2D00:1;
@@ -637,9 +637,9 @@ typedef union {
        };
 } __TXB2D0bits_t;
 
-extern volatile __TXB2D0bits_t at 0xf26 TXB2D0bits;
+extern volatile __TXB2D0bits_t __at 0xf26 TXB2D0bits;
 
-extern sfr at 0xf27 TXB2D1;
+extern __sfr __at 0xf27 TXB2D1;
 typedef union {
        struct {
                unsigned TXB2D10:1;
@@ -653,9 +653,9 @@ typedef union {
        };
 } __TXB2D1bits_t;
 
-extern volatile __TXB2D1bits_t at 0xf27 TXB2D1bits;
+extern volatile __TXB2D1bits_t __at 0xf27 TXB2D1bits;
 
-extern sfr at 0xf28 TXB2D2;
+extern __sfr __at 0xf28 TXB2D2;
 typedef union {
        struct {
                unsigned TXB2D20:1;
@@ -669,9 +669,9 @@ typedef union {
        };
 } __TXB2D2bits_t;
 
-extern volatile __TXB2D2bits_t at 0xf28 TXB2D2bits;
+extern volatile __TXB2D2bits_t __at 0xf28 TXB2D2bits;
 
-extern sfr at 0xf29 TXB2D3;
+extern __sfr __at 0xf29 TXB2D3;
 typedef union {
        struct {
                unsigned TXB2D30:1;
@@ -685,9 +685,9 @@ typedef union {
        };
 } __TXB2D3bits_t;
 
-extern volatile __TXB2D3bits_t at 0xf29 TXB2D3bits;
+extern volatile __TXB2D3bits_t __at 0xf29 TXB2D3bits;
 
-extern sfr at 0xf2a TXB2D4;
+extern __sfr __at 0xf2a TXB2D4;
 typedef union {
        struct {
                unsigned TXB2D40:1;
@@ -701,9 +701,9 @@ typedef union {
        };
 } __TXB2D4bits_t;
 
-extern volatile __TXB2D4bits_t at 0xf2a TXB2D4bits;
+extern volatile __TXB2D4bits_t __at 0xf2a TXB2D4bits;
 
-extern sfr at 0xf2b TXB2D5;
+extern __sfr __at 0xf2b TXB2D5;
 typedef union {
        struct {
                unsigned TXB2D50:1;
@@ -717,9 +717,9 @@ typedef union {
        };
 } __TXB2D5bits_t;
 
-extern volatile __TXB2D5bits_t at 0xf2b TXB2D5bits;
+extern volatile __TXB2D5bits_t __at 0xf2b TXB2D5bits;
 
-extern sfr at 0xf2c TXB2D6;
+extern __sfr __at 0xf2c TXB2D6;
 typedef union {
        struct {
                unsigned TXB2D60:1;
@@ -733,9 +733,9 @@ typedef union {
        };
 } __TXB2D6bits_t;
 
-extern volatile __TXB2D6bits_t at 0xf2c TXB2D6bits;
+extern volatile __TXB2D6bits_t __at 0xf2c TXB2D6bits;
 
-extern sfr at 0xf2d TXB2D7;
+extern __sfr __at 0xf2d TXB2D7;
 typedef union {
        struct {
                unsigned TXB2D70:1;
@@ -749,9 +749,9 @@ typedef union {
        };
 } __TXB2D7bits_t;
 
-extern volatile __TXB2D7bits_t at 0xf2d TXB2D7bits;
+extern volatile __TXB2D7bits_t __at 0xf2d TXB2D7bits;
 
-extern sfr at 0xf2e CANSTATRO4;
+extern __sfr __at 0xf2e CANSTATRO4;
 typedef union {
        struct {
                unsigned :1;
@@ -765,9 +765,9 @@ typedef union {
        };
 } __CANSTATRO4bits_t;
 
-extern volatile __CANSTATRO4bits_t at 0xf2e CANSTATRO4bits;
+extern volatile __CANSTATRO4bits_t __at 0xf2e CANSTATRO4bits;
 
-extern sfr at 0xf30 TXB1CON;
+extern __sfr __at 0xf30 TXB1CON;
 typedef union {
        struct {
                unsigned TXPRI0:1;
@@ -781,9 +781,9 @@ typedef union {
        };
 } __TXB1CONbits_t;
 
-extern volatile __TXB1CONbits_t at 0xf30 TXB1CONbits;
+extern volatile __TXB1CONbits_t __at 0xf30 TXB1CONbits;
 
-extern sfr at 0xf31 TXB1SIDH;
+extern __sfr __at 0xf31 TXB1SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -797,9 +797,9 @@ typedef union {
        };
 } __TXB1SIDHbits_t;
 
-extern volatile __TXB1SIDHbits_t at 0xf31 TXB1SIDHbits;
+extern volatile __TXB1SIDHbits_t __at 0xf31 TXB1SIDHbits;
 
-extern sfr at 0xf32 TXB1SIDL;
+extern __sfr __at 0xf32 TXB1SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -813,9 +813,9 @@ typedef union {
        };
 } __TXB1SIDLbits_t;
 
-extern volatile __TXB1SIDLbits_t at 0xf32 TXB1SIDLbits;
+extern volatile __TXB1SIDLbits_t __at 0xf32 TXB1SIDLbits;
 
-extern sfr at 0xf33 TXB1EIDH;
+extern __sfr __at 0xf33 TXB1EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -829,9 +829,9 @@ typedef union {
        };
 } __TXB1EIDHbits_t;
 
-extern volatile __TXB1EIDHbits_t at 0xf33 TXB1EIDHbits;
+extern volatile __TXB1EIDHbits_t __at 0xf33 TXB1EIDHbits;
 
-extern sfr at 0xf34 TXB1EIDL;
+extern __sfr __at 0xf34 TXB1EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -845,9 +845,9 @@ typedef union {
        };
 } __TXB1EIDLbits_t;
 
-extern volatile __TXB1EIDLbits_t at 0xf34 TXB1EIDLbits;
+extern volatile __TXB1EIDLbits_t __at 0xf34 TXB1EIDLbits;
 
-extern sfr at 0xf35 TXB1DLC;
+extern __sfr __at 0xf35 TXB1DLC;
 typedef union {
        struct {
                unsigned DLC0:1;
@@ -861,9 +861,9 @@ typedef union {
        };
 } __TXB1DLCbits_t;
 
-extern volatile __TXB1DLCbits_t at 0xf35 TXB1DLCbits;
+extern volatile __TXB1DLCbits_t __at 0xf35 TXB1DLCbits;
 
-extern sfr at 0xf36 TXB1D0;
+extern __sfr __at 0xf36 TXB1D0;
 typedef union {
        struct {
                unsigned TXB1D00:1;
@@ -877,9 +877,9 @@ typedef union {
        };
 } __TXB1D0bits_t;
 
-extern volatile __TXB1D0bits_t at 0xf36 TXB1D0bits;
+extern volatile __TXB1D0bits_t __at 0xf36 TXB1D0bits;
 
-extern sfr at 0xf37 TXB1D1;
+extern __sfr __at 0xf37 TXB1D1;
 typedef union {
        struct {
                unsigned TXB1D10:1;
@@ -893,9 +893,9 @@ typedef union {
        };
 } __TXB1D1bits_t;
 
-extern volatile __TXB1D1bits_t at 0xf37 TXB1D1bits;
+extern volatile __TXB1D1bits_t __at 0xf37 TXB1D1bits;
 
-extern sfr at 0xf38 TXB1D2;
+extern __sfr __at 0xf38 TXB1D2;
 typedef union {
        struct {
                unsigned TXB1D20:1;
@@ -909,9 +909,9 @@ typedef union {
        };
 } __TXB1D2bits_t;
 
-extern volatile __TXB1D2bits_t at 0xf38 TXB1D2bits;
+extern volatile __TXB1D2bits_t __at 0xf38 TXB1D2bits;
 
-extern sfr at 0xf39 TXB1D3;
+extern __sfr __at 0xf39 TXB1D3;
 typedef union {
        struct {
                unsigned TXB1D30:1;
@@ -925,9 +925,9 @@ typedef union {
        };
 } __TXB1D3bits_t;
 
-extern volatile __TXB1D3bits_t at 0xf39 TXB1D3bits;
+extern volatile __TXB1D3bits_t __at 0xf39 TXB1D3bits;
 
-extern sfr at 0xf3a TXB1D4;
+extern __sfr __at 0xf3a TXB1D4;
 typedef union {
        struct {
                unsigned TXB1D40:1;
@@ -941,9 +941,9 @@ typedef union {
        };
 } __TXB1D4bits_t;
 
-extern volatile __TXB1D4bits_t at 0xf3a TXB1D4bits;
+extern volatile __TXB1D4bits_t __at 0xf3a TXB1D4bits;
 
-extern sfr at 0xf3b TXB1D5;
+extern __sfr __at 0xf3b TXB1D5;
 typedef union {
        struct {
                unsigned TXB1D50:1;
@@ -957,9 +957,9 @@ typedef union {
        };
 } __TXB1D5bits_t;
 
-extern volatile __TXB1D5bits_t at 0xf3b TXB1D5bits;
+extern volatile __TXB1D5bits_t __at 0xf3b TXB1D5bits;
 
-extern sfr at 0xf3c TXB1D6;
+extern __sfr __at 0xf3c TXB1D6;
 typedef union {
        struct {
                unsigned TXB1D60:1;
@@ -973,9 +973,9 @@ typedef union {
        };
 } __TXB1D6bits_t;
 
-extern volatile __TXB1D6bits_t at 0xf3c TXB1D6bits;
+extern volatile __TXB1D6bits_t __at 0xf3c TXB1D6bits;
 
-extern sfr at 0xf3d TXB1D7;
+extern __sfr __at 0xf3d TXB1D7;
 typedef union {
        struct {
                unsigned TXB1D70:1;
@@ -989,9 +989,9 @@ typedef union {
        };
 } __TXB1D7bits_t;
 
-extern volatile __TXB1D7bits_t at 0xf3d TXB1D7bits;
+extern volatile __TXB1D7bits_t __at 0xf3d TXB1D7bits;
 
-extern sfr at 0xf3e CANSTATRO3;
+extern __sfr __at 0xf3e CANSTATRO3;
 typedef union {
        struct {
                unsigned :1;
@@ -1005,9 +1005,9 @@ typedef union {
        };
 } __CANSTATRO3bits_t;
 
-extern volatile __CANSTATRO3bits_t at 0xf3e CANSTATRO3bits;
+extern volatile __CANSTATRO3bits_t __at 0xf3e CANSTATRO3bits;
 
-extern sfr at 0xf40 TXB0CON;
+extern __sfr __at 0xf40 TXB0CON;
 typedef union {
        struct {
                unsigned TXPRI0:1;
@@ -1021,9 +1021,9 @@ typedef union {
        };
 } __TXB0CONbits_t;
 
-extern volatile __TXB0CONbits_t at 0xf40 TXB0CONbits;
+extern volatile __TXB0CONbits_t __at 0xf40 TXB0CONbits;
 
-extern sfr at 0xf41 TXB0SIDH;
+extern __sfr __at 0xf41 TXB0SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -1037,9 +1037,9 @@ typedef union {
        };
 } __TXB0SIDHbits_t;
 
-extern volatile __TXB0SIDHbits_t at 0xf41 TXB0SIDHbits;
+extern volatile __TXB0SIDHbits_t __at 0xf41 TXB0SIDHbits;
 
-extern sfr at 0xf42 TXB0SIDL;
+extern __sfr __at 0xf42 TXB0SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -1053,9 +1053,9 @@ typedef union {
        };
 } __TXB0SIDLbits_t;
 
-extern volatile __TXB0SIDLbits_t at 0xf42 TXB0SIDLbits;
+extern volatile __TXB0SIDLbits_t __at 0xf42 TXB0SIDLbits;
 
-extern sfr at 0xf43 TXB0EIDH;
+extern __sfr __at 0xf43 TXB0EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -1069,9 +1069,9 @@ typedef union {
        };
 } __TXB0EIDHbits_t;
 
-extern volatile __TXB0EIDHbits_t at 0xf43 TXB0EIDHbits;
+extern volatile __TXB0EIDHbits_t __at 0xf43 TXB0EIDHbits;
 
-extern sfr at 0xf44 TXB0EIDL;
+extern __sfr __at 0xf44 TXB0EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -1085,9 +1085,9 @@ typedef union {
        };
 } __TXB0EIDLbits_t;
 
-extern volatile __TXB0EIDLbits_t at 0xf44 TXB0EIDLbits;
+extern volatile __TXB0EIDLbits_t __at 0xf44 TXB0EIDLbits;
 
-extern sfr at 0xf45 TXB0DLC;
+extern __sfr __at 0xf45 TXB0DLC;
 typedef union {
        struct {
                unsigned DLC0:1;
@@ -1101,9 +1101,9 @@ typedef union {
        };
 } __TXB0DLCbits_t;
 
-extern volatile __TXB0DLCbits_t at 0xf45 TXB0DLCbits;
+extern volatile __TXB0DLCbits_t __at 0xf45 TXB0DLCbits;
 
-extern sfr at 0xf46 TXB0D0;
+extern __sfr __at 0xf46 TXB0D0;
 typedef union {
        struct {
                unsigned TXB0D00:1;
@@ -1117,9 +1117,9 @@ typedef union {
        };
 } __TXB0D0bits_t;
 
-extern volatile __TXB0D0bits_t at 0xf46 TXB0D0bits;
+extern volatile __TXB0D0bits_t __at 0xf46 TXB0D0bits;
 
-extern sfr at 0xf47 TXB0D1;
+extern __sfr __at 0xf47 TXB0D1;
 typedef union {
        struct {
                unsigned TXB0D10:1;
@@ -1133,9 +1133,9 @@ typedef union {
        };
 } __TXB0D1bits_t;
 
-extern volatile __TXB0D1bits_t at 0xf47 TXB0D1bits;
+extern volatile __TXB0D1bits_t __at 0xf47 TXB0D1bits;
 
-extern sfr at 0xf48 TXB0D2;
+extern __sfr __at 0xf48 TXB0D2;
 typedef union {
        struct {
                unsigned TXB0D20:1;
@@ -1149,9 +1149,9 @@ typedef union {
        };
 } __TXB0D2bits_t;
 
-extern volatile __TXB0D2bits_t at 0xf48 TXB0D2bits;
+extern volatile __TXB0D2bits_t __at 0xf48 TXB0D2bits;
 
-extern sfr at 0xf49 TXB0D3;
+extern __sfr __at 0xf49 TXB0D3;
 typedef union {
        struct {
                unsigned TXB0D30:1;
@@ -1165,9 +1165,9 @@ typedef union {
        };
 } __TXB0D3bits_t;
 
-extern volatile __TXB0D3bits_t at 0xf49 TXB0D3bits;
+extern volatile __TXB0D3bits_t __at 0xf49 TXB0D3bits;
 
-extern sfr at 0xf4a TXB0D4;
+extern __sfr __at 0xf4a TXB0D4;
 typedef union {
        struct {
                unsigned TXB0D40:1;
@@ -1181,9 +1181,9 @@ typedef union {
        };
 } __TXB0D4bits_t;
 
-extern volatile __TXB0D4bits_t at 0xf4a TXB0D4bits;
+extern volatile __TXB0D4bits_t __at 0xf4a TXB0D4bits;
 
-extern sfr at 0xf4b TXB0D5;
+extern __sfr __at 0xf4b TXB0D5;
 typedef union {
        struct {
                unsigned TXB0D50:1;
@@ -1197,9 +1197,9 @@ typedef union {
        };
 } __TXB0D5bits_t;
 
-extern volatile __TXB0D5bits_t at 0xf4b TXB0D5bits;
+extern volatile __TXB0D5bits_t __at 0xf4b TXB0D5bits;
 
-extern sfr at 0xf4c TXB0D6;
+extern __sfr __at 0xf4c TXB0D6;
 typedef union {
        struct {
                unsigned TXB0D60:1;
@@ -1213,9 +1213,9 @@ typedef union {
        };
 } __TXB0D6bits_t;
 
-extern volatile __TXB0D6bits_t at 0xf4c TXB0D6bits;
+extern volatile __TXB0D6bits_t __at 0xf4c TXB0D6bits;
 
-extern sfr at 0xf4d TXB0D7;
+extern __sfr __at 0xf4d TXB0D7;
 typedef union {
        struct {
                unsigned TXB0D70:1;
@@ -1229,9 +1229,9 @@ typedef union {
        };
 } __TXB0D7bits_t;
 
-extern volatile __TXB0D7bits_t at 0xf4d TXB0D7bits;
+extern volatile __TXB0D7bits_t __at 0xf4d TXB0D7bits;
 
-extern sfr at 0xf4e CANSTATRO2;
+extern __sfr __at 0xf4e CANSTATRO2;
 typedef union {
        struct {
                unsigned :1;
@@ -1245,9 +1245,9 @@ typedef union {
        };
 } __CANSTATRO2bits_t;
 
-extern volatile __CANSTATRO2bits_t at 0xf4e CANSTATRO2bits;
+extern volatile __CANSTATRO2bits_t __at 0xf4e CANSTATRO2bits;
 
-extern sfr at 0xf50 RXB1CON;
+extern __sfr __at 0xf50 RXB1CON;
 typedef union {
        struct {
                unsigned FILHIT0:1;
@@ -1261,9 +1261,9 @@ typedef union {
        };
 } __RXB1CONbits_t;
 
-extern volatile __RXB1CONbits_t at 0xf50 RXB1CONbits;
+extern volatile __RXB1CONbits_t __at 0xf50 RXB1CONbits;
 
-extern sfr at 0xf51 RXB1SIDH;
+extern __sfr __at 0xf51 RXB1SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -1277,9 +1277,9 @@ typedef union {
        };
 } __RXB1SIDHbits_t;
 
-extern volatile __RXB1SIDHbits_t at 0xf51 RXB1SIDHbits;
+extern volatile __RXB1SIDHbits_t __at 0xf51 RXB1SIDHbits;
 
-extern sfr at 0xf52 RXB1SIDL;
+extern __sfr __at 0xf52 RXB1SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -1293,9 +1293,9 @@ typedef union {
        };
 } __RXB1SIDLbits_t;
 
-extern volatile __RXB1SIDLbits_t at 0xf52 RXB1SIDLbits;
+extern volatile __RXB1SIDLbits_t __at 0xf52 RXB1SIDLbits;
 
-extern sfr at 0xf53 RXB1EIDH;
+extern __sfr __at 0xf53 RXB1EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -1309,9 +1309,9 @@ typedef union {
        };
 } __RXB1EIDHbits_t;
 
-extern volatile __RXB1EIDHbits_t at 0xf53 RXB1EIDHbits;
+extern volatile __RXB1EIDHbits_t __at 0xf53 RXB1EIDHbits;
 
-extern sfr at 0xf54 RXB1EIDL;
+extern __sfr __at 0xf54 RXB1EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -1325,9 +1325,9 @@ typedef union {
        };
 } __RXB1EIDLbits_t;
 
-extern volatile __RXB1EIDLbits_t at 0xf54 RXB1EIDLbits;
+extern volatile __RXB1EIDLbits_t __at 0xf54 RXB1EIDLbits;
 
-extern sfr at 0xf55 RXB1DLC;
+extern __sfr __at 0xf55 RXB1DLC;
 typedef union {
        struct {
                unsigned DLC0:1;
@@ -1341,9 +1341,9 @@ typedef union {
        };
 } __RXB1DLCbits_t;
 
-extern volatile __RXB1DLCbits_t at 0xf55 RXB1DLCbits;
+extern volatile __RXB1DLCbits_t __at 0xf55 RXB1DLCbits;
 
-extern sfr at 0xf56 RXB1D0;
+extern __sfr __at 0xf56 RXB1D0;
 typedef union {
        struct {
                unsigned RXB1D00:1;
@@ -1357,9 +1357,9 @@ typedef union {
        };
 } __RXB1D0bits_t;
 
-extern volatile __RXB1D0bits_t at 0xf56 RXB1D0bits;
+extern volatile __RXB1D0bits_t __at 0xf56 RXB1D0bits;
 
-extern sfr at 0xf57 RXB1D1;
+extern __sfr __at 0xf57 RXB1D1;
 typedef union {
        struct {
                unsigned RXB1D10:1;
@@ -1373,9 +1373,9 @@ typedef union {
        };
 } __RXB1D1bits_t;
 
-extern volatile __RXB1D1bits_t at 0xf57 RXB1D1bits;
+extern volatile __RXB1D1bits_t __at 0xf57 RXB1D1bits;
 
-extern sfr at 0xf58 RXB1D2;
+extern __sfr __at 0xf58 RXB1D2;
 typedef union {
        struct {
                unsigned RXB1D20:1;
@@ -1389,9 +1389,9 @@ typedef union {
        };
 } __RXB1D2bits_t;
 
-extern volatile __RXB1D2bits_t at 0xf58 RXB1D2bits;
+extern volatile __RXB1D2bits_t __at 0xf58 RXB1D2bits;
 
-extern sfr at 0xf59 RXB1D3;
+extern __sfr __at 0xf59 RXB1D3;
 typedef union {
        struct {
                unsigned RXB1D30:1;
@@ -1405,9 +1405,9 @@ typedef union {
        };
 } __RXB1D3bits_t;
 
-extern volatile __RXB1D3bits_t at 0xf59 RXB1D3bits;
+extern volatile __RXB1D3bits_t __at 0xf59 RXB1D3bits;
 
-extern sfr at 0xf5a RXB1D4;
+extern __sfr __at 0xf5a RXB1D4;
 typedef union {
        struct {
                unsigned RXB1D40:1;
@@ -1421,9 +1421,9 @@ typedef union {
        };
 } __RXB1D4bits_t;
 
-extern volatile __RXB1D4bits_t at 0xf5a RXB1D4bits;
+extern volatile __RXB1D4bits_t __at 0xf5a RXB1D4bits;
 
-extern sfr at 0xf5b RXB1D5;
+extern __sfr __at 0xf5b RXB1D5;
 typedef union {
        struct {
                unsigned RXB1D50:1;
@@ -1437,9 +1437,9 @@ typedef union {
        };
 } __RXB1D5bits_t;
 
-extern volatile __RXB1D5bits_t at 0xf5b RXB1D5bits;
+extern volatile __RXB1D5bits_t __at 0xf5b RXB1D5bits;
 
-extern sfr at 0xf5c RXB1D6;
+extern __sfr __at 0xf5c RXB1D6;
 typedef union {
        struct {
                unsigned RXB1D60:1;
@@ -1453,9 +1453,9 @@ typedef union {
        };
 } __RXB1D6bits_t;
 
-extern volatile __RXB1D6bits_t at 0xf5c RXB1D6bits;
+extern volatile __RXB1D6bits_t __at 0xf5c RXB1D6bits;
 
-extern sfr at 0xf5d RXB1D7;
+extern __sfr __at 0xf5d RXB1D7;
 typedef union {
        struct {
                unsigned RXB1D70:1;
@@ -1469,9 +1469,9 @@ typedef union {
        };
 } __RXB1D7bits_t;
 
-extern volatile __RXB1D7bits_t at 0xf5d RXB1D7bits;
+extern volatile __RXB1D7bits_t __at 0xf5d RXB1D7bits;
 
-extern sfr at 0xf5e CANSTATRO1;
+extern __sfr __at 0xf5e CANSTATRO1;
 typedef union {
        struct {
                unsigned :1;
@@ -1485,9 +1485,9 @@ typedef union {
        };
 } __CANSTATRO1bits_t;
 
-extern volatile __CANSTATRO1bits_t at 0xf5e CANSTATRO1bits;
+extern volatile __CANSTATRO1bits_t __at 0xf5e CANSTATRO1bits;
 
-extern sfr at 0xf60 RXB0CON;
+extern __sfr __at 0xf60 RXB0CON;
 typedef union {
        struct {
                unsigned FILHIT0:1;
@@ -1501,9 +1501,9 @@ typedef union {
        };
 } __RXB0CONbits_t;
 
-extern volatile __RXB0CONbits_t at 0xf60 RXB0CONbits;
+extern volatile __RXB0CONbits_t __at 0xf60 RXB0CONbits;
 
-extern sfr at 0xf61 RXB0SIDH;
+extern __sfr __at 0xf61 RXB0SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -1517,9 +1517,9 @@ typedef union {
        };
 } __RXB0SIDHbits_t;
 
-extern volatile __RXB0SIDHbits_t at 0xf61 RXB0SIDHbits;
+extern volatile __RXB0SIDHbits_t __at 0xf61 RXB0SIDHbits;
 
-extern sfr at 0xf62 RXB0SIDL;
+extern __sfr __at 0xf62 RXB0SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -1533,9 +1533,9 @@ typedef union {
        };
 } __RXB0SIDLbits_t;
 
-extern volatile __RXB0SIDLbits_t at 0xf62 RXB0SIDLbits;
+extern volatile __RXB0SIDLbits_t __at 0xf62 RXB0SIDLbits;
 
-extern sfr at 0xf63 RXB0EIDH;
+extern __sfr __at 0xf63 RXB0EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -1549,9 +1549,9 @@ typedef union {
        };
 } __RXB0EIDHbits_t;
 
-extern volatile __RXB0EIDHbits_t at 0xf63 RXB0EIDHbits;
+extern volatile __RXB0EIDHbits_t __at 0xf63 RXB0EIDHbits;
 
-extern sfr at 0xf64 RXB0EIDL;
+extern __sfr __at 0xf64 RXB0EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -1565,9 +1565,9 @@ typedef union {
        };
 } __RXB0EIDLbits_t;
 
-extern volatile __RXB0EIDLbits_t at 0xf64 RXB0EIDLbits;
+extern volatile __RXB0EIDLbits_t __at 0xf64 RXB0EIDLbits;
 
-extern sfr at 0xf65 RXB0DLC;
+extern __sfr __at 0xf65 RXB0DLC;
 typedef union {
        struct {
                unsigned DLC0:1;
@@ -1581,17 +1581,17 @@ typedef union {
        };
 } __RXB0DLCbits_t;
 
-extern volatile __RXB0DLCbits_t at 0xf65 RXB0DLCbits;
+extern volatile __RXB0DLCbits_t __at 0xf65 RXB0DLCbits;
 
-extern sfr at 0xf66 RXB0D0;
-extern sfr at 0xf67 RXB0D1;
-extern sfr at 0xf68 RXB0D2;
-extern sfr at 0xf69 RXB0D3;
-extern sfr at 0xf6a RXB0D4;
-extern sfr at 0xf6b RXB0D5;
-extern sfr at 0xf6c RXB0D6;
-extern sfr at 0xf6d RXB0D7;
-extern sfr at 0xf6e CANSTAT;
+extern __sfr __at 0xf66 RXB0D0;
+extern __sfr __at 0xf67 RXB0D1;
+extern __sfr __at 0xf68 RXB0D2;
+extern __sfr __at 0xf69 RXB0D3;
+extern __sfr __at 0xf6a RXB0D4;
+extern __sfr __at 0xf6b RXB0D5;
+extern __sfr __at 0xf6c RXB0D6;
+extern __sfr __at 0xf6d RXB0D7;
+extern __sfr __at 0xf6e CANSTAT;
 typedef union {
        struct {
                unsigned :1;
@@ -1605,9 +1605,9 @@ typedef union {
        };
 } __CANSTATbits_t;
 
-extern volatile __CANSTATbits_t at 0xf6e CANSTATbits;
+extern volatile __CANSTATbits_t __at 0xf6e CANSTATbits;
 
-extern sfr at 0xf6f CANCON;
+extern __sfr __at 0xf6f CANCON;
 typedef union {
        struct {
                unsigned WIN0:1;
@@ -1621,9 +1621,9 @@ typedef union {
        };
 } __CANCONbits_t;
 
-extern volatile __CANCONbits_t at 0xf6f CANCONbits;
+extern volatile __CANCONbits_t __at 0xf6f CANCONbits;
 
-extern sfr at 0xf70 BRGCON1;
+extern __sfr __at 0xf70 BRGCON1;
 typedef union {
        struct {
                unsigned BRP0:1;
@@ -1637,9 +1637,9 @@ typedef union {
        };
 } __BRGCON1bits_t;
 
-extern volatile __BRGCON1bits_t at 0xf70 BRGCON1bits;
+extern volatile __BRGCON1bits_t __at 0xf70 BRGCON1bits;
 
-extern sfr at 0xf71 BRGCON2;
+extern __sfr __at 0xf71 BRGCON2;
 typedef union {
        struct {
                unsigned PRSEG0:1;
@@ -1653,9 +1653,9 @@ typedef union {
        };
 } __BRGCON2bits_t;
 
-extern volatile __BRGCON2bits_t at 0xf71 BRGCON2bits;
+extern volatile __BRGCON2bits_t __at 0xf71 BRGCON2bits;
 
-extern sfr at 0xf72 BRGCON3;
+extern __sfr __at 0xf72 BRGCON3;
 typedef union {
        struct {
                unsigned SEG2PH0:1;
@@ -1669,9 +1669,9 @@ typedef union {
        };
 } __BRGCON3bits_t;
 
-extern volatile __BRGCON3bits_t at 0xf72 BRGCON3bits;
+extern volatile __BRGCON3bits_t __at 0xf72 BRGCON3bits;
 
-extern sfr at 0xf73 CIOCON;
+extern __sfr __at 0xf73 CIOCON;
 typedef union {
        struct {
                unsigned :1;
@@ -1685,9 +1685,9 @@ typedef union {
        };
 } __CIOCONbits_t;
 
-extern volatile __CIOCONbits_t at 0xf73 CIOCONbits;
+extern volatile __CIOCONbits_t __at 0xf73 CIOCONbits;
 
-extern sfr at 0xf74 COMSTAT;
+extern __sfr __at 0xf74 COMSTAT;
 typedef union {
        struct {
                unsigned EWARN:1;
@@ -1701,9 +1701,9 @@ typedef union {
        };
 } __COMSTATbits_t;
 
-extern volatile __COMSTATbits_t at 0xf74 COMSTATbits;
+extern volatile __COMSTATbits_t __at 0xf74 COMSTATbits;
 
-extern sfr at 0xf75 RXERRCNT;
+extern __sfr __at 0xf75 RXERRCNT;
 typedef union {
        struct {
                unsigned REC0:1;
@@ -1717,9 +1717,9 @@ typedef union {
        };
 } __RXERRCNTbits_t;
 
-extern volatile __RXERRCNTbits_t at 0xf75 RXERRCNTbits;
+extern volatile __RXERRCNTbits_t __at 0xf75 RXERRCNTbits;
 
-extern sfr at 0xf76 TXERRCNT;
+extern __sfr __at 0xf76 TXERRCNT;
 typedef union {
        struct {
                unsigned TEC0:1;
@@ -1733,9 +1733,9 @@ typedef union {
        };
 } __TXERRCNTbits_t;
 
-extern volatile __TXERRCNTbits_t at 0xf76 TXERRCNTbits;
+extern volatile __TXERRCNTbits_t __at 0xf76 TXERRCNTbits;
 
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf80 PORTA;
 typedef union {
        struct {
                unsigned RA0:1;
@@ -1782,9 +1782,9 @@ typedef union {
        };
 } __PORTAbits_t;
 
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
 
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
 typedef union {
        struct {
                unsigned RB0:1;
@@ -1809,9 +1809,9 @@ typedef union {
        };
 } __PORTBbits_t;
 
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
 
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
 typedef union {
        struct {
                unsigned RC0:1;
@@ -1847,9 +1847,9 @@ typedef union {
        };
 } __PORTCbits_t;
 
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
 
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
 typedef union {
        struct {
                unsigned LATA0:1;
@@ -1863,9 +1863,9 @@ typedef union {
        };
 } __LATAbits_t;
 
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
 
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
 typedef union {
        struct {
                unsigned LATB0:1;
@@ -1879,9 +1879,9 @@ typedef union {
        };
 } __LATBbits_t;
 
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
 
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
 typedef union {
        struct {
                unsigned LATC0:1;
@@ -1895,9 +1895,9 @@ typedef union {
        };
 } __LATCbits_t;
 
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
 
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
 typedef union {
        struct {
                unsigned TRISA0:1;
@@ -1911,9 +1911,9 @@ typedef union {
        };
 } __TRISAbits_t;
 
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
 
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
 typedef union {
        struct {
                unsigned TRISB0:1;
@@ -1927,9 +1927,9 @@ typedef union {
        };
 } __TRISBbits_t;
 
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
 
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
 typedef union {
        struct {
                unsigned TRISC0:1;
@@ -1943,9 +1943,9 @@ typedef union {
        };
 } __TRISCbits_t;
 
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
 
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
 typedef union {
        struct {
                unsigned TMR1IE:1;
@@ -1959,9 +1959,9 @@ typedef union {
        };
 } __PIE1bits_t;
 
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
 
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
 typedef union {
        struct {
                unsigned TMR1IF:1;
@@ -1975,9 +1975,9 @@ typedef union {
        };
 } __PIR1bits_t;
 
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
 
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
 typedef union {
        struct {
                unsigned TMR1IP:1;
@@ -1991,9 +1991,9 @@ typedef union {
        };
 } __IPR1bits_t;
 
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
 
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
 typedef union {
        struct {
                unsigned CCP2IE:1;
@@ -2007,9 +2007,9 @@ typedef union {
        };
 } __PIE2bits_t;
 
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
 
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
 typedef union {
        struct {
                unsigned CCP2IF:1;
@@ -2023,9 +2023,9 @@ typedef union {
        };
 } __PIR2bits_t;
 
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
 
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
 typedef union {
        struct {
                unsigned CCP2IP:1;
@@ -2039,9 +2039,9 @@ typedef union {
        };
 } __IPR2bits_t;
 
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
 
-extern sfr at 0xfa3 PIE3;
+extern __sfr __at 0xfa3 PIE3;
 typedef union {
        struct {
                unsigned RX0IE:1;
@@ -2055,9 +2055,9 @@ typedef union {
        };
 } __PIE3bits_t;
 
-extern volatile __PIE3bits_t at 0xfa3 PIE3bits;
+extern volatile __PIE3bits_t __at 0xfa3 PIE3bits;
 
-extern sfr at 0xfa4 PIR3;
+extern __sfr __at 0xfa4 PIR3;
 typedef union {
        struct {
                unsigned RX0IF:1;
@@ -2071,9 +2071,9 @@ typedef union {
        };
 } __PIR3bits_t;
 
-extern volatile __PIR3bits_t at 0xfa4 PIR3bits;
+extern volatile __PIR3bits_t __at 0xfa4 PIR3bits;
 
-extern sfr at 0xfa5 IPR3;
+extern __sfr __at 0xfa5 IPR3;
 typedef union {
        struct {
                unsigned RX0IP:1;
@@ -2087,9 +2087,9 @@ typedef union {
        };
 } __IPR3bits_t;
 
-extern volatile __IPR3bits_t at 0xfa5 IPR3bits;
+extern volatile __IPR3bits_t __at 0xfa5 IPR3bits;
 
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
 typedef union {
        struct {
                unsigned RD:1;
@@ -2103,12 +2103,12 @@ typedef union {
        };
 } __EECON1bits_t;
 
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
 
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfab RCSTA;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfab RCSTA;
 typedef union {
        struct {
                unsigned RX9D:1;
@@ -2122,9 +2122,9 @@ typedef union {
        };
 } __RCSTAbits_t;
 
-extern volatile __RCSTAbits_t at 0xfab RCSTAbits;
+extern volatile __RCSTAbits_t __at 0xfab RCSTAbits;
 
-extern sfr at 0xfac TXSTA;
+extern __sfr __at 0xfac TXSTA;
 typedef union {
        struct {
                unsigned TX9D:1;
@@ -2138,12 +2138,12 @@ typedef union {
        };
 } __TXSTAbits_t;
 
-extern volatile __TXSTAbits_t at 0xfac TXSTAbits;
+extern volatile __TXSTAbits_t __at 0xfac TXSTAbits;
 
-extern sfr at 0xfad TXREG;
-extern sfr at 0xfae RCREG;
-extern sfr at 0xfaf SPBRG;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfad TXREG;
+extern __sfr __at 0xfae RCREG;
+extern __sfr __at 0xfaf SPBRG;
+extern __sfr __at 0xfb1 T3CON;
 typedef union {
        struct {
                unsigned TMR3ON:1;
@@ -2157,11 +2157,11 @@ typedef union {
        };
 } __T3CONbits_t;
 
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
 
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfbd CCP1CON;
 typedef union {
        struct {
                unsigned CCP1M0:1;
@@ -2175,11 +2175,11 @@ typedef union {
        };
 } __CCP1CONbits_t;
 
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
 
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc1 ADCON1;
 typedef union {
        struct {
                unsigned PCFG0:1;
@@ -2193,9 +2193,9 @@ typedef union {
        };
 } __ADCON1bits_t;
 
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
 
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
 typedef union {
        struct {
                unsigned ADON:1;
@@ -2209,11 +2209,11 @@ typedef union {
        };
 } __ADCON0bits_t;
 
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
 
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
 typedef union {
        struct {
                unsigned SEN:1;
@@ -2227,9 +2227,9 @@ typedef union {
        };
 } __SSPCON2bits_t;
 
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
 
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
 typedef union {
        struct {
                unsigned SSPM0:1;
@@ -2243,9 +2243,9 @@ typedef union {
        };
 } __SSPCON1bits_t;
 
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
 
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
 typedef union {
        struct {
                unsigned BF:1;
@@ -2259,11 +2259,11 @@ typedef union {
        };
 } __SSPSTATbits_t;
 
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
 
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
 typedef union {
        struct {
                unsigned T2CKPS0:1;
@@ -2277,11 +2277,11 @@ typedef union {
        };
 } __T2CONbits_t;
 
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
 
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
 typedef union {
        struct {
                unsigned TMR1ON:1;
@@ -2295,11 +2295,11 @@ typedef union {
        };
 } __T1CONbits_t;
 
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
 
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
 typedef union {
        struct {
                unsigned BOR:1;
@@ -2313,9 +2313,9 @@ typedef union {
        };
 } __RCONbits_t;
 
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
 
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
 typedef union {
        struct {
                unsigned SWDTEN:1;
@@ -2340,9 +2340,9 @@ typedef union {
        };
 } __WDTCONbits_t;
 
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
 
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
 typedef union {
        struct {
                unsigned LVDL0:1;
@@ -2367,9 +2367,9 @@ typedef union {
        };
 } __LVDCONbits_t;
 
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
 
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
 typedef union {
        struct {
                unsigned SCS:1;
@@ -2383,12 +2383,12 @@ typedef union {
        };
 } __OSCCONbits_t;
 
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
 
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
 typedef union {
        struct {
                unsigned C:1;
@@ -2402,32 +2402,32 @@ typedef union {
        };
 } __STATUSbits_t;
 
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
 typedef union {
        struct {
                unsigned INT1F:1;
@@ -2452,9 +2452,9 @@ typedef union {
        };
 } __INTCON3bits_t;
 
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
 
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
 typedef union {
        struct {
                unsigned RBIP:1;
@@ -2468,9 +2468,9 @@ typedef union {
        };
 } __INTCON2bits_t;
 
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
 
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
 typedef union {
        struct {
                unsigned RBIF:1;
@@ -2484,18 +2484,18 @@ typedef union {
        };
 } __INTCONbits_t;
 
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
 
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
 typedef union {
        struct {
                unsigned STKPTR0:1;
@@ -2509,11 +2509,11 @@ typedef union {
        };
 } __STKPTRbits_t;
 
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
 
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
 
 
 /* Configuration registers locations */
index 66804d2972f44dc7574520f8edb61790a2511e50..aa55d395eb95d7491ee5d5ca454fb857ab163979 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef __PIC18F252_H__
 #define __PIC18F252_H__
 
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf80 PORTA;
 typedef union {
        struct {
                unsigned RA0:1;
@@ -62,9 +62,9 @@ typedef union {
        };
 } __PORTAbits_t;
 
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
 
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
 typedef union {
        struct {
                unsigned RB0:1;
@@ -89,9 +89,9 @@ typedef union {
        };
 } __PORTBbits_t;
 
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
 
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
 typedef union {
        struct {
                unsigned RC0:1;
@@ -127,9 +127,9 @@ typedef union {
        };
 } __PORTCbits_t;
 
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
 
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
 typedef union {
        struct {
                unsigned LATA0:1;
@@ -143,9 +143,9 @@ typedef union {
        };
 } __LATAbits_t;
 
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
 
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
 typedef union {
        struct {
                unsigned LATB0:1;
@@ -159,9 +159,9 @@ typedef union {
        };
 } __LATBbits_t;
 
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
 
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
 typedef union {
        struct {
                unsigned LATC0:1;
@@ -175,9 +175,9 @@ typedef union {
        };
 } __LATCbits_t;
 
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
 
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
 typedef union {
        struct {
                unsigned TRISA0:1;
@@ -191,9 +191,9 @@ typedef union {
        };
 } __TRISAbits_t;
 
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
 
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
 typedef union {
        struct {
                unsigned TRISB0:1;
@@ -207,9 +207,9 @@ typedef union {
        };
 } __TRISBbits_t;
 
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
 
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
 typedef union {
        struct {
                unsigned TRISC0:1;
@@ -223,9 +223,9 @@ typedef union {
        };
 } __TRISCbits_t;
 
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
 
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
 typedef union {
        struct {
                unsigned TMR1IE:1;
@@ -239,9 +239,9 @@ typedef union {
        };
 } __PIE1bits_t;
 
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
 
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
 typedef union {
        struct {
                unsigned TMR1IF:1;
@@ -255,9 +255,9 @@ typedef union {
        };
 } __PIR1bits_t;
 
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
 
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
 typedef union {
        struct {
                unsigned TMR1IP:1;
@@ -271,9 +271,9 @@ typedef union {
        };
 } __IPR1bits_t;
 
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
 
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
 typedef union {
        struct {
                unsigned CCP2IE:1;
@@ -287,9 +287,9 @@ typedef union {
        };
 } __PIE2bits_t;
 
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
 
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
 typedef union {
        struct {
                unsigned CCP2IF:1;
@@ -303,9 +303,9 @@ typedef union {
        };
 } __PIR2bits_t;
 
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
 
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
 typedef union {
        struct {
                unsigned CCP2IP:1;
@@ -319,9 +319,9 @@ typedef union {
        };
 } __IPR2bits_t;
 
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
 
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
 typedef union {
        struct {
                unsigned RD:1;
@@ -335,12 +335,12 @@ typedef union {
        };
 } __EECON1bits_t;
 
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
 
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfab RCSTA;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfab RCSTA;
 typedef union {
        struct {
                unsigned RX9D:1;
@@ -354,9 +354,9 @@ typedef union {
        };
 } __RCSTAbits_t;
 
-extern volatile __RCSTAbits_t at 0xfab RCSTAbits;
+extern volatile __RCSTAbits_t __at 0xfab RCSTAbits;
 
-extern sfr at 0xfac TXSTA;
+extern __sfr __at 0xfac TXSTA;
 typedef union {
        struct {
                unsigned TX9D:1;
@@ -370,12 +370,12 @@ typedef union {
        };
 } __TXSTAbits_t;
 
-extern volatile __TXSTAbits_t at 0xfac TXSTAbits;
+extern volatile __TXSTAbits_t __at 0xfac TXSTAbits;
 
-extern sfr at 0xfad TXREG;
-extern sfr at 0xfae RCREG;
-extern sfr at 0xfaf SPBRG;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfad TXREG;
+extern __sfr __at 0xfae RCREG;
+extern __sfr __at 0xfaf SPBRG;
+extern __sfr __at 0xfb1 T3CON;
 typedef union {
        struct {
                unsigned TMR3ON:1;
@@ -389,11 +389,11 @@ typedef union {
        };
 } __T3CONbits_t;
 
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
 
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfba CCP2CON;
 typedef union {
        struct {
                unsigned CCP2M0:1;
@@ -407,11 +407,11 @@ typedef union {
        };
 } __CCP2CONbits_t;
 
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
 
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfbd CCP1CON;
 typedef union {
        struct {
                unsigned CCP1M0:1;
@@ -425,11 +425,11 @@ typedef union {
        };
 } __CCP1CONbits_t;
 
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
 
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc1 ADCON1;
 typedef union {
        struct {
                unsigned PCFG0:1;
@@ -443,9 +443,9 @@ typedef union {
        };
 } __ADCON1bits_t;
 
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
 
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
 typedef union {
        struct {
                unsigned ADON:1;
@@ -459,11 +459,11 @@ typedef union {
        };
 } __ADCON0bits_t;
 
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
 
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
 typedef union {
        struct {
                unsigned SEN:1;
@@ -477,9 +477,9 @@ typedef union {
        };
 } __SSPCON2bits_t;
 
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
 
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
 typedef union {
        struct {
                unsigned SSPM0:1;
@@ -493,9 +493,9 @@ typedef union {
        };
 } __SSPCON1bits_t;
 
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
 
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
 typedef union {
        struct {
                unsigned BF:1;
@@ -509,11 +509,11 @@ typedef union {
        };
 } __SSPSTATbits_t;
 
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
 
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
 typedef union {
        struct {
                unsigned T2CKPS0:1;
@@ -527,11 +527,11 @@ typedef union {
        };
 } __T2CONbits_t;
 
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
 
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
 typedef union {
        struct {
                unsigned TMR1ON:1;
@@ -545,11 +545,11 @@ typedef union {
        };
 } __T1CONbits_t;
 
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
 
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
 typedef union {
        struct {
                unsigned BOR:1;
@@ -563,9 +563,9 @@ typedef union {
        };
 } __RCONbits_t;
 
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
 
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
 typedef union {
        struct {
                unsigned SWDTEN:1;
@@ -590,9 +590,9 @@ typedef union {
        };
 } __WDTCONbits_t;
 
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
 
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
 typedef union {
        struct {
                unsigned LVDL0:1;
@@ -617,9 +617,9 @@ typedef union {
        };
 } __LVDCONbits_t;
 
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
 
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
 typedef union {
        struct {
                unsigned SCS:1;
@@ -633,9 +633,9 @@ typedef union {
        };
 } __OSCCONbits_t;
 
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
 
-extern sfr at 0xfd5 T0CON;
+extern __sfr __at 0xfd5 T0CON;
 typedef union {
        struct {
                unsigned T0PS0:1;
@@ -649,11 +649,11 @@ typedef union {
        };
 } __T0CONbits_t;
 
-extern volatile __T0CONbits_t at 0xfd5 T0CONbits;
+extern volatile __T0CONbits_t __at 0xfd5 T0CONbits;
 
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
 typedef union {
        struct {
                unsigned C:1;
@@ -667,32 +667,32 @@ typedef union {
        };
 } __STATUSbits_t;
 
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
 typedef union {
        struct {
                unsigned INT1F:1;
@@ -717,9 +717,9 @@ typedef union {
        };
 } __INTCON3bits_t;
 
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
 
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
 typedef union {
        struct {
                unsigned RBIP:1;
@@ -733,9 +733,9 @@ typedef union {
        };
 } __INTCON2bits_t;
 
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
 
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
 typedef union {
        struct {
                unsigned RBIF:1;
@@ -749,18 +749,18 @@ typedef union {
        };
 } __INTCONbits_t;
 
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
 
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
 typedef union {
        struct {
                unsigned STKPTR0:1;
@@ -774,11 +774,11 @@ typedef union {
        };
 } __STKPTRbits_t;
 
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
 
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
 
 
 /* Configuration registers locations */
index 8e358936e3c10491916e5eba60151f0b7d134f7c..1f2cd933b03036c06ee2547958c0e1d9ba91fa18 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef __PIC18F258_H__
 #define __PIC18F258_H__
 
-extern sfr at 0xf00 RXF0SIDH;
+extern __sfr __at 0xf00 RXF0SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -29,9 +29,9 @@ typedef union {
        };
 } __RXF0SIDHbits_t;
 
-extern volatile __RXF0SIDHbits_t at 0xf00 RXF0SIDHbits;
+extern volatile __RXF0SIDHbits_t __at 0xf00 RXF0SIDHbits;
 
-extern sfr at 0xf01 RXF0SIDL;
+extern __sfr __at 0xf01 RXF0SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -45,9 +45,9 @@ typedef union {
        };
 } __RXF0SIDLbits_t;
 
-extern volatile __RXF0SIDLbits_t at 0xf01 RXF0SIDLbits;
+extern volatile __RXF0SIDLbits_t __at 0xf01 RXF0SIDLbits;
 
-extern sfr at 0xf02 RXF0EIDH;
+extern __sfr __at 0xf02 RXF0EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -61,9 +61,9 @@ typedef union {
        };
 } __RXF0EIDHbits_t;
 
-extern volatile __RXF0EIDHbits_t at 0xf02 RXF0EIDHbits;
+extern volatile __RXF0EIDHbits_t __at 0xf02 RXF0EIDHbits;
 
-extern sfr at 0xf03 RXF0EIDL;
+extern __sfr __at 0xf03 RXF0EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -77,9 +77,9 @@ typedef union {
        };
 } __RXF0EIDLbits_t;
 
-extern volatile __RXF0EIDLbits_t at 0xf03 RXF0EIDLbits;
+extern volatile __RXF0EIDLbits_t __at 0xf03 RXF0EIDLbits;
 
-extern sfr at 0xf04 RXF1SIDH;
+extern __sfr __at 0xf04 RXF1SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -93,9 +93,9 @@ typedef union {
        };
 } __RXF1SIDHbits_t;
 
-extern volatile __RXF1SIDHbits_t at 0xf04 RXF1SIDHbits;
+extern volatile __RXF1SIDHbits_t __at 0xf04 RXF1SIDHbits;
 
-extern sfr at 0xf05 RXF1SIDL;
+extern __sfr __at 0xf05 RXF1SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -109,9 +109,9 @@ typedef union {
        };
 } __RXF1SIDLbits_t;
 
-extern volatile __RXF1SIDLbits_t at 0xf05 RXF1SIDLbits;
+extern volatile __RXF1SIDLbits_t __at 0xf05 RXF1SIDLbits;
 
-extern sfr at 0xf06 RXF1EIDH;
+extern __sfr __at 0xf06 RXF1EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -125,9 +125,9 @@ typedef union {
        };
 } __RXF1EIDHbits_t;
 
-extern volatile __RXF1EIDHbits_t at 0xf06 RXF1EIDHbits;
+extern volatile __RXF1EIDHbits_t __at 0xf06 RXF1EIDHbits;
 
-extern sfr at 0xf07 RXF1EIDL;
+extern __sfr __at 0xf07 RXF1EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -141,9 +141,9 @@ typedef union {
        };
 } __RXF1EIDLbits_t;
 
-extern volatile __RXF1EIDLbits_t at 0xf07 RXF1EIDLbits;
+extern volatile __RXF1EIDLbits_t __at 0xf07 RXF1EIDLbits;
 
-extern sfr at 0xf08 RXF2SIDH;
+extern __sfr __at 0xf08 RXF2SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -157,9 +157,9 @@ typedef union {
        };
 } __RXF2SIDHbits_t;
 
-extern volatile __RXF2SIDHbits_t at 0xf08 RXF2SIDHbits;
+extern volatile __RXF2SIDHbits_t __at 0xf08 RXF2SIDHbits;
 
-extern sfr at 0xf09 RXF2SIDL;
+extern __sfr __at 0xf09 RXF2SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -173,9 +173,9 @@ typedef union {
        };
 } __RXF2SIDLbits_t;
 
-extern volatile __RXF2SIDLbits_t at 0xf09 RXF2SIDLbits;
+extern volatile __RXF2SIDLbits_t __at 0xf09 RXF2SIDLbits;
 
-extern sfr at 0xf0a RXF2EIDH;
+extern __sfr __at 0xf0a RXF2EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -189,9 +189,9 @@ typedef union {
        };
 } __RXF2EIDHbits_t;
 
-extern volatile __RXF2EIDHbits_t at 0xf0a RXF2EIDHbits;
+extern volatile __RXF2EIDHbits_t __at 0xf0a RXF2EIDHbits;
 
-extern sfr at 0xf0b RXF2EIDL;
+extern __sfr __at 0xf0b RXF2EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -205,9 +205,9 @@ typedef union {
        };
 } __RXF2EIDLbits_t;
 
-extern volatile __RXF2EIDLbits_t at 0xf0b RXF2EIDLbits;
+extern volatile __RXF2EIDLbits_t __at 0xf0b RXF2EIDLbits;
 
-extern sfr at 0xf0c RXF3SIDH;
+extern __sfr __at 0xf0c RXF3SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -221,9 +221,9 @@ typedef union {
        };
 } __RXF3SIDHbits_t;
 
-extern volatile __RXF3SIDHbits_t at 0xf0c RXF3SIDHbits;
+extern volatile __RXF3SIDHbits_t __at 0xf0c RXF3SIDHbits;
 
-extern sfr at 0xf0d RXF3SIDL;
+extern __sfr __at 0xf0d RXF3SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -237,9 +237,9 @@ typedef union {
        };
 } __RXF3SIDLbits_t;
 
-extern volatile __RXF3SIDLbits_t at 0xf0d RXF3SIDLbits;
+extern volatile __RXF3SIDLbits_t __at 0xf0d RXF3SIDLbits;
 
-extern sfr at 0xf0e RXF3EIDH;
+extern __sfr __at 0xf0e RXF3EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -253,9 +253,9 @@ typedef union {
        };
 } __RXF3EIDHbits_t;
 
-extern volatile __RXF3EIDHbits_t at 0xf0e RXF3EIDHbits;
+extern volatile __RXF3EIDHbits_t __at 0xf0e RXF3EIDHbits;
 
-extern sfr at 0xf0f RXF3EIDL;
+extern __sfr __at 0xf0f RXF3EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -269,9 +269,9 @@ typedef union {
        };
 } __RXF3EIDLbits_t;
 
-extern volatile __RXF3EIDLbits_t at 0xf0f RXF3EIDLbits;
+extern volatile __RXF3EIDLbits_t __at 0xf0f RXF3EIDLbits;
 
-extern sfr at 0xf10 RXF4SIDH;
+extern __sfr __at 0xf10 RXF4SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -285,9 +285,9 @@ typedef union {
        };
 } __RXF4SIDHbits_t;
 
-extern volatile __RXF4SIDHbits_t at 0xf10 RXF4SIDHbits;
+extern volatile __RXF4SIDHbits_t __at 0xf10 RXF4SIDHbits;
 
-extern sfr at 0xf11 RXF4SIDL;
+extern __sfr __at 0xf11 RXF4SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -301,9 +301,9 @@ typedef union {
        };
 } __RXF4SIDLbits_t;
 
-extern volatile __RXF4SIDLbits_t at 0xf11 RXF4SIDLbits;
+extern volatile __RXF4SIDLbits_t __at 0xf11 RXF4SIDLbits;
 
-extern sfr at 0xf12 RXF4EIDH;
+extern __sfr __at 0xf12 RXF4EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -317,9 +317,9 @@ typedef union {
        };
 } __RXF4EIDHbits_t;
 
-extern volatile __RXF4EIDHbits_t at 0xf12 RXF4EIDHbits;
+extern volatile __RXF4EIDHbits_t __at 0xf12 RXF4EIDHbits;
 
-extern sfr at 0xf13 RXF4EIDL;
+extern __sfr __at 0xf13 RXF4EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -333,9 +333,9 @@ typedef union {
        };
 } __RXF4EIDLbits_t;
 
-extern volatile __RXF4EIDLbits_t at 0xf13 RXF4EIDLbits;
+extern volatile __RXF4EIDLbits_t __at 0xf13 RXF4EIDLbits;
 
-extern sfr at 0xf14 RXF5SIDH;
+extern __sfr __at 0xf14 RXF5SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -349,9 +349,9 @@ typedef union {
        };
 } __RXF5SIDHbits_t;
 
-extern volatile __RXF5SIDHbits_t at 0xf14 RXF5SIDHbits;
+extern volatile __RXF5SIDHbits_t __at 0xf14 RXF5SIDHbits;
 
-extern sfr at 0xf15 RXF5SIDL;
+extern __sfr __at 0xf15 RXF5SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -365,9 +365,9 @@ typedef union {
        };
 } __RXF5SIDLbits_t;
 
-extern volatile __RXF5SIDLbits_t at 0xf15 RXF5SIDLbits;
+extern volatile __RXF5SIDLbits_t __at 0xf15 RXF5SIDLbits;
 
-extern sfr at 0xf16 RXF5EIDH;
+extern __sfr __at 0xf16 RXF5EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -381,9 +381,9 @@ typedef union {
        };
 } __RXF5EIDHbits_t;
 
-extern volatile __RXF5EIDHbits_t at 0xf16 RXF5EIDHbits;
+extern volatile __RXF5EIDHbits_t __at 0xf16 RXF5EIDHbits;
 
-extern sfr at 0xf17 RXF5EIDL;
+extern __sfr __at 0xf17 RXF5EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -397,9 +397,9 @@ typedef union {
        };
 } __RXF5EIDLbits_t;
 
-extern volatile __RXF5EIDLbits_t at 0xf17 RXF5EIDLbits;
+extern volatile __RXF5EIDLbits_t __at 0xf17 RXF5EIDLbits;
 
-extern sfr at 0xf18 RXM0SIDH;
+extern __sfr __at 0xf18 RXM0SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -413,9 +413,9 @@ typedef union {
        };
 } __RXM0SIDHbits_t;
 
-extern volatile __RXM0SIDHbits_t at 0xf18 RXM0SIDHbits;
+extern volatile __RXM0SIDHbits_t __at 0xf18 RXM0SIDHbits;
 
-extern sfr at 0xf19 RXM0SIDL;
+extern __sfr __at 0xf19 RXM0SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -429,9 +429,9 @@ typedef union {
        };
 } __RXM0SIDLbits_t;
 
-extern volatile __RXM0SIDLbits_t at 0xf19 RXM0SIDLbits;
+extern volatile __RXM0SIDLbits_t __at 0xf19 RXM0SIDLbits;
 
-extern sfr at 0xf1a RXM0EIDH;
+extern __sfr __at 0xf1a RXM0EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -445,9 +445,9 @@ typedef union {
        };
 } __RXM0EIDHbits_t;
 
-extern volatile __RXM0EIDHbits_t at 0xf1a RXM0EIDHbits;
+extern volatile __RXM0EIDHbits_t __at 0xf1a RXM0EIDHbits;
 
-extern sfr at 0xf1b RXM0EIDL;
+extern __sfr __at 0xf1b RXM0EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -461,9 +461,9 @@ typedef union {
        };
 } __RXM0EIDLbits_t;
 
-extern volatile __RXM0EIDLbits_t at 0xf1b RXM0EIDLbits;
+extern volatile __RXM0EIDLbits_t __at 0xf1b RXM0EIDLbits;
 
-extern sfr at 0xf1c RXM1SIDH;
+extern __sfr __at 0xf1c RXM1SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -477,9 +477,9 @@ typedef union {
        };
 } __RXM1SIDHbits_t;
 
-extern volatile __RXM1SIDHbits_t at 0xf1c RXM1SIDHbits;
+extern volatile __RXM1SIDHbits_t __at 0xf1c RXM1SIDHbits;
 
-extern sfr at 0xf1d RXM1SIDL;
+extern __sfr __at 0xf1d RXM1SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -493,9 +493,9 @@ typedef union {
        };
 } __RXM1SIDLbits_t;
 
-extern volatile __RXM1SIDLbits_t at 0xf1d RXM1SIDLbits;
+extern volatile __RXM1SIDLbits_t __at 0xf1d RXM1SIDLbits;
 
-extern sfr at 0xf1e RXM1EIDH;
+extern __sfr __at 0xf1e RXM1EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -509,9 +509,9 @@ typedef union {
        };
 } __RXM1EIDHbits_t;
 
-extern volatile __RXM1EIDHbits_t at 0xf1e RXM1EIDHbits;
+extern volatile __RXM1EIDHbits_t __at 0xf1e RXM1EIDHbits;
 
-extern sfr at 0xf1f RXM1EIDL;
+extern __sfr __at 0xf1f RXM1EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -525,9 +525,9 @@ typedef union {
        };
 } __RXM1EIDLbits_t;
 
-extern volatile __RXM1EIDLbits_t at 0xf1f RXM1EIDLbits;
+extern volatile __RXM1EIDLbits_t __at 0xf1f RXM1EIDLbits;
 
-extern sfr at 0xf20 TXB2CON;
+extern __sfr __at 0xf20 TXB2CON;
 typedef union {
        struct {
                unsigned TXPRI0:1;
@@ -541,9 +541,9 @@ typedef union {
        };
 } __TXB2CONbits_t;
 
-extern volatile __TXB2CONbits_t at 0xf20 TXB2CONbits;
+extern volatile __TXB2CONbits_t __at 0xf20 TXB2CONbits;
 
-extern sfr at 0xf21 TXB2SIDH;
+extern __sfr __at 0xf21 TXB2SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -557,9 +557,9 @@ typedef union {
        };
 } __TXB2SIDHbits_t;
 
-extern volatile __TXB2SIDHbits_t at 0xf21 TXB2SIDHbits;
+extern volatile __TXB2SIDHbits_t __at 0xf21 TXB2SIDHbits;
 
-extern sfr at 0xf22 TXB2SIDL;
+extern __sfr __at 0xf22 TXB2SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -573,9 +573,9 @@ typedef union {
        };
 } __TXB2SIDLbits_t;
 
-extern volatile __TXB2SIDLbits_t at 0xf22 TXB2SIDLbits;
+extern volatile __TXB2SIDLbits_t __at 0xf22 TXB2SIDLbits;
 
-extern sfr at 0xf23 TXB2EIDH;
+extern __sfr __at 0xf23 TXB2EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -589,9 +589,9 @@ typedef union {
        };
 } __TXB2EIDHbits_t;
 
-extern volatile __TXB2EIDHbits_t at 0xf23 TXB2EIDHbits;
+extern volatile __TXB2EIDHbits_t __at 0xf23 TXB2EIDHbits;
 
-extern sfr at 0xf24 TXB2EIDL;
+extern __sfr __at 0xf24 TXB2EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -605,9 +605,9 @@ typedef union {
        };
 } __TXB2EIDLbits_t;
 
-extern volatile __TXB2EIDLbits_t at 0xf24 TXB2EIDLbits;
+extern volatile __TXB2EIDLbits_t __at 0xf24 TXB2EIDLbits;
 
-extern sfr at 0xf25 TXB2DLC;
+extern __sfr __at 0xf25 TXB2DLC;
 typedef union {
        struct {
                unsigned TXB2DLC0:1;
@@ -621,9 +621,9 @@ typedef union {
        };
 } __TXB2DLCbits_t;
 
-extern volatile __TXB2DLCbits_t at 0xf25 TXB2DLCbits;
+extern volatile __TXB2DLCbits_t __at 0xf25 TXB2DLCbits;
 
-extern sfr at 0xf26 TXB2D0;
+extern __sfr __at 0xf26 TXB2D0;
 typedef union {
        struct {
                unsigned TXB2D00:1;
@@ -637,9 +637,9 @@ typedef union {
        };
 } __TXB2D0bits_t;
 
-extern volatile __TXB2D0bits_t at 0xf26 TXB2D0bits;
+extern volatile __TXB2D0bits_t __at 0xf26 TXB2D0bits;
 
-extern sfr at 0xf27 TXB2D1;
+extern __sfr __at 0xf27 TXB2D1;
 typedef union {
        struct {
                unsigned TXB2D10:1;
@@ -653,9 +653,9 @@ typedef union {
        };
 } __TXB2D1bits_t;
 
-extern volatile __TXB2D1bits_t at 0xf27 TXB2D1bits;
+extern volatile __TXB2D1bits_t __at 0xf27 TXB2D1bits;
 
-extern sfr at 0xf28 TXB2D2;
+extern __sfr __at 0xf28 TXB2D2;
 typedef union {
        struct {
                unsigned TXB2D20:1;
@@ -669,9 +669,9 @@ typedef union {
        };
 } __TXB2D2bits_t;
 
-extern volatile __TXB2D2bits_t at 0xf28 TXB2D2bits;
+extern volatile __TXB2D2bits_t __at 0xf28 TXB2D2bits;
 
-extern sfr at 0xf29 TXB2D3;
+extern __sfr __at 0xf29 TXB2D3;
 typedef union {
        struct {
                unsigned TXB2D30:1;
@@ -685,9 +685,9 @@ typedef union {
        };
 } __TXB2D3bits_t;
 
-extern volatile __TXB2D3bits_t at 0xf29 TXB2D3bits;
+extern volatile __TXB2D3bits_t __at 0xf29 TXB2D3bits;
 
-extern sfr at 0xf2a TXB2D4;
+extern __sfr __at 0xf2a TXB2D4;
 typedef union {
        struct {
                unsigned TXB2D40:1;
@@ -701,9 +701,9 @@ typedef union {
        };
 } __TXB2D4bits_t;
 
-extern volatile __TXB2D4bits_t at 0xf2a TXB2D4bits;
+extern volatile __TXB2D4bits_t __at 0xf2a TXB2D4bits;
 
-extern sfr at 0xf2b TXB2D5;
+extern __sfr __at 0xf2b TXB2D5;
 typedef union {
        struct {
                unsigned TXB2D50:1;
@@ -717,9 +717,9 @@ typedef union {
        };
 } __TXB2D5bits_t;
 
-extern volatile __TXB2D5bits_t at 0xf2b TXB2D5bits;
+extern volatile __TXB2D5bits_t __at 0xf2b TXB2D5bits;
 
-extern sfr at 0xf2c TXB2D6;
+extern __sfr __at 0xf2c TXB2D6;
 typedef union {
        struct {
                unsigned TXB2D60:1;
@@ -733,9 +733,9 @@ typedef union {
        };
 } __TXB2D6bits_t;
 
-extern volatile __TXB2D6bits_t at 0xf2c TXB2D6bits;
+extern volatile __TXB2D6bits_t __at 0xf2c TXB2D6bits;
 
-extern sfr at 0xf2d TXB2D7;
+extern __sfr __at 0xf2d TXB2D7;
 typedef union {
        struct {
                unsigned TXB2D70:1;
@@ -749,9 +749,9 @@ typedef union {
        };
 } __TXB2D7bits_t;
 
-extern volatile __TXB2D7bits_t at 0xf2d TXB2D7bits;
+extern volatile __TXB2D7bits_t __at 0xf2d TXB2D7bits;
 
-extern sfr at 0xf2e CANSTATRO4;
+extern __sfr __at 0xf2e CANSTATRO4;
 typedef union {
        struct {
                unsigned :1;
@@ -765,9 +765,9 @@ typedef union {
        };
 } __CANSTATRO4bits_t;
 
-extern volatile __CANSTATRO4bits_t at 0xf2e CANSTATRO4bits;
+extern volatile __CANSTATRO4bits_t __at 0xf2e CANSTATRO4bits;
 
-extern sfr at 0xf30 TXB1CON;
+extern __sfr __at 0xf30 TXB1CON;
 typedef union {
        struct {
                unsigned TXPRI0:1;
@@ -781,9 +781,9 @@ typedef union {
        };
 } __TXB1CONbits_t;
 
-extern volatile __TXB1CONbits_t at 0xf30 TXB1CONbits;
+extern volatile __TXB1CONbits_t __at 0xf30 TXB1CONbits;
 
-extern sfr at 0xf31 TXB1SIDH;
+extern __sfr __at 0xf31 TXB1SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -797,9 +797,9 @@ typedef union {
        };
 } __TXB1SIDHbits_t;
 
-extern volatile __TXB1SIDHbits_t at 0xf31 TXB1SIDHbits;
+extern volatile __TXB1SIDHbits_t __at 0xf31 TXB1SIDHbits;
 
-extern sfr at 0xf32 TXB1SIDL;
+extern __sfr __at 0xf32 TXB1SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -813,9 +813,9 @@ typedef union {
        };
 } __TXB1SIDLbits_t;
 
-extern volatile __TXB1SIDLbits_t at 0xf32 TXB1SIDLbits;
+extern volatile __TXB1SIDLbits_t __at 0xf32 TXB1SIDLbits;
 
-extern sfr at 0xf33 TXB1EIDH;
+extern __sfr __at 0xf33 TXB1EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -829,9 +829,9 @@ typedef union {
        };
 } __TXB1EIDHbits_t;
 
-extern volatile __TXB1EIDHbits_t at 0xf33 TXB1EIDHbits;
+extern volatile __TXB1EIDHbits_t __at 0xf33 TXB1EIDHbits;
 
-extern sfr at 0xf34 TXB1EIDL;
+extern __sfr __at 0xf34 TXB1EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -845,9 +845,9 @@ typedef union {
        };
 } __TXB1EIDLbits_t;
 
-extern volatile __TXB1EIDLbits_t at 0xf34 TXB1EIDLbits;
+extern volatile __TXB1EIDLbits_t __at 0xf34 TXB1EIDLbits;
 
-extern sfr at 0xf35 TXB1DLC;
+extern __sfr __at 0xf35 TXB1DLC;
 typedef union {
        struct {
                unsigned DLC0:1;
@@ -861,9 +861,9 @@ typedef union {
        };
 } __TXB1DLCbits_t;
 
-extern volatile __TXB1DLCbits_t at 0xf35 TXB1DLCbits;
+extern volatile __TXB1DLCbits_t __at 0xf35 TXB1DLCbits;
 
-extern sfr at 0xf36 TXB1D0;
+extern __sfr __at 0xf36 TXB1D0;
 typedef union {
        struct {
                unsigned TXB1D00:1;
@@ -877,9 +877,9 @@ typedef union {
        };
 } __TXB1D0bits_t;
 
-extern volatile __TXB1D0bits_t at 0xf36 TXB1D0bits;
+extern volatile __TXB1D0bits_t __at 0xf36 TXB1D0bits;
 
-extern sfr at 0xf37 TXB1D1;
+extern __sfr __at 0xf37 TXB1D1;
 typedef union {
        struct {
                unsigned TXB1D10:1;
@@ -893,9 +893,9 @@ typedef union {
        };
 } __TXB1D1bits_t;
 
-extern volatile __TXB1D1bits_t at 0xf37 TXB1D1bits;
+extern volatile __TXB1D1bits_t __at 0xf37 TXB1D1bits;
 
-extern sfr at 0xf38 TXB1D2;
+extern __sfr __at 0xf38 TXB1D2;
 typedef union {
        struct {
                unsigned TXB1D20:1;
@@ -909,9 +909,9 @@ typedef union {
        };
 } __TXB1D2bits_t;
 
-extern volatile __TXB1D2bits_t at 0xf38 TXB1D2bits;
+extern volatile __TXB1D2bits_t __at 0xf38 TXB1D2bits;
 
-extern sfr at 0xf39 TXB1D3;
+extern __sfr __at 0xf39 TXB1D3;
 typedef union {
        struct {
                unsigned TXB1D30:1;
@@ -925,9 +925,9 @@ typedef union {
        };
 } __TXB1D3bits_t;
 
-extern volatile __TXB1D3bits_t at 0xf39 TXB1D3bits;
+extern volatile __TXB1D3bits_t __at 0xf39 TXB1D3bits;
 
-extern sfr at 0xf3a TXB1D4;
+extern __sfr __at 0xf3a TXB1D4;
 typedef union {
        struct {
                unsigned TXB1D40:1;
@@ -941,9 +941,9 @@ typedef union {
        };
 } __TXB1D4bits_t;
 
-extern volatile __TXB1D4bits_t at 0xf3a TXB1D4bits;
+extern volatile __TXB1D4bits_t __at 0xf3a TXB1D4bits;
 
-extern sfr at 0xf3b TXB1D5;
+extern __sfr __at 0xf3b TXB1D5;
 typedef union {
        struct {
                unsigned TXB1D50:1;
@@ -957,9 +957,9 @@ typedef union {
        };
 } __TXB1D5bits_t;
 
-extern volatile __TXB1D5bits_t at 0xf3b TXB1D5bits;
+extern volatile __TXB1D5bits_t __at 0xf3b TXB1D5bits;
 
-extern sfr at 0xf3c TXB1D6;
+extern __sfr __at 0xf3c TXB1D6;
 typedef union {
        struct {
                unsigned TXB1D60:1;
@@ -973,9 +973,9 @@ typedef union {
        };
 } __TXB1D6bits_t;
 
-extern volatile __TXB1D6bits_t at 0xf3c TXB1D6bits;
+extern volatile __TXB1D6bits_t __at 0xf3c TXB1D6bits;
 
-extern sfr at 0xf3d TXB1D7;
+extern __sfr __at 0xf3d TXB1D7;
 typedef union {
        struct {
                unsigned TXB1D70:1;
@@ -989,9 +989,9 @@ typedef union {
        };
 } __TXB1D7bits_t;
 
-extern volatile __TXB1D7bits_t at 0xf3d TXB1D7bits;
+extern volatile __TXB1D7bits_t __at 0xf3d TXB1D7bits;
 
-extern sfr at 0xf3e CANSTATRO3;
+extern __sfr __at 0xf3e CANSTATRO3;
 typedef union {
        struct {
                unsigned :1;
@@ -1005,9 +1005,9 @@ typedef union {
        };
 } __CANSTATRO3bits_t;
 
-extern volatile __CANSTATRO3bits_t at 0xf3e CANSTATRO3bits;
+extern volatile __CANSTATRO3bits_t __at 0xf3e CANSTATRO3bits;
 
-extern sfr at 0xf40 TXB0CON;
+extern __sfr __at 0xf40 TXB0CON;
 typedef union {
        struct {
                unsigned TXPRI0:1;
@@ -1021,9 +1021,9 @@ typedef union {
        };
 } __TXB0CONbits_t;
 
-extern volatile __TXB0CONbits_t at 0xf40 TXB0CONbits;
+extern volatile __TXB0CONbits_t __at 0xf40 TXB0CONbits;
 
-extern sfr at 0xf41 TXB0SIDH;
+extern __sfr __at 0xf41 TXB0SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -1037,9 +1037,9 @@ typedef union {
        };
 } __TXB0SIDHbits_t;
 
-extern volatile __TXB0SIDHbits_t at 0xf41 TXB0SIDHbits;
+extern volatile __TXB0SIDHbits_t __at 0xf41 TXB0SIDHbits;
 
-extern sfr at 0xf42 TXB0SIDL;
+extern __sfr __at 0xf42 TXB0SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -1053,9 +1053,9 @@ typedef union {
        };
 } __TXB0SIDLbits_t;
 
-extern volatile __TXB0SIDLbits_t at 0xf42 TXB0SIDLbits;
+extern volatile __TXB0SIDLbits_t __at 0xf42 TXB0SIDLbits;
 
-extern sfr at 0xf43 TXB0EIDH;
+extern __sfr __at 0xf43 TXB0EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -1069,9 +1069,9 @@ typedef union {
        };
 } __TXB0EIDHbits_t;
 
-extern volatile __TXB0EIDHbits_t at 0xf43 TXB0EIDHbits;
+extern volatile __TXB0EIDHbits_t __at 0xf43 TXB0EIDHbits;
 
-extern sfr at 0xf44 TXB0EIDL;
+extern __sfr __at 0xf44 TXB0EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -1085,9 +1085,9 @@ typedef union {
        };
 } __TXB0EIDLbits_t;
 
-extern volatile __TXB0EIDLbits_t at 0xf44 TXB0EIDLbits;
+extern volatile __TXB0EIDLbits_t __at 0xf44 TXB0EIDLbits;
 
-extern sfr at 0xf45 TXB0DLC;
+extern __sfr __at 0xf45 TXB0DLC;
 typedef union {
        struct {
                unsigned DLC0:1;
@@ -1101,9 +1101,9 @@ typedef union {
        };
 } __TXB0DLCbits_t;
 
-extern volatile __TXB0DLCbits_t at 0xf45 TXB0DLCbits;
+extern volatile __TXB0DLCbits_t __at 0xf45 TXB0DLCbits;
 
-extern sfr at 0xf46 TXB0D0;
+extern __sfr __at 0xf46 TXB0D0;
 typedef union {
        struct {
                unsigned TXB0D00:1;
@@ -1117,9 +1117,9 @@ typedef union {
        };
 } __TXB0D0bits_t;
 
-extern volatile __TXB0D0bits_t at 0xf46 TXB0D0bits;
+extern volatile __TXB0D0bits_t __at 0xf46 TXB0D0bits;
 
-extern sfr at 0xf47 TXB0D1;
+extern __sfr __at 0xf47 TXB0D1;
 typedef union {
        struct {
                unsigned TXB0D10:1;
@@ -1133,9 +1133,9 @@ typedef union {
        };
 } __TXB0D1bits_t;
 
-extern volatile __TXB0D1bits_t at 0xf47 TXB0D1bits;
+extern volatile __TXB0D1bits_t __at 0xf47 TXB0D1bits;
 
-extern sfr at 0xf48 TXB0D2;
+extern __sfr __at 0xf48 TXB0D2;
 typedef union {
        struct {
                unsigned TXB0D20:1;
@@ -1149,9 +1149,9 @@ typedef union {
        };
 } __TXB0D2bits_t;
 
-extern volatile __TXB0D2bits_t at 0xf48 TXB0D2bits;
+extern volatile __TXB0D2bits_t __at 0xf48 TXB0D2bits;
 
-extern sfr at 0xf49 TXB0D3;
+extern __sfr __at 0xf49 TXB0D3;
 typedef union {
        struct {
                unsigned TXB0D30:1;
@@ -1165,9 +1165,9 @@ typedef union {
        };
 } __TXB0D3bits_t;
 
-extern volatile __TXB0D3bits_t at 0xf49 TXB0D3bits;
+extern volatile __TXB0D3bits_t __at 0xf49 TXB0D3bits;
 
-extern sfr at 0xf4a TXB0D4;
+extern __sfr __at 0xf4a TXB0D4;
 typedef union {
        struct {
                unsigned TXB0D40:1;
@@ -1181,9 +1181,9 @@ typedef union {
        };
 } __TXB0D4bits_t;
 
-extern volatile __TXB0D4bits_t at 0xf4a TXB0D4bits;
+extern volatile __TXB0D4bits_t __at 0xf4a TXB0D4bits;
 
-extern sfr at 0xf4b TXB0D5;
+extern __sfr __at 0xf4b TXB0D5;
 typedef union {
        struct {
                unsigned TXB0D50:1;
@@ -1197,9 +1197,9 @@ typedef union {
        };
 } __TXB0D5bits_t;
 
-extern volatile __TXB0D5bits_t at 0xf4b TXB0D5bits;
+extern volatile __TXB0D5bits_t __at 0xf4b TXB0D5bits;
 
-extern sfr at 0xf4c TXB0D6;
+extern __sfr __at 0xf4c TXB0D6;
 typedef union {
        struct {
                unsigned TXB0D60:1;
@@ -1213,9 +1213,9 @@ typedef union {
        };
 } __TXB0D6bits_t;
 
-extern volatile __TXB0D6bits_t at 0xf4c TXB0D6bits;
+extern volatile __TXB0D6bits_t __at 0xf4c TXB0D6bits;
 
-extern sfr at 0xf4d TXB0D7;
+extern __sfr __at 0xf4d TXB0D7;
 typedef union {
        struct {
                unsigned TXB0D70:1;
@@ -1229,9 +1229,9 @@ typedef union {
        };
 } __TXB0D7bits_t;
 
-extern volatile __TXB0D7bits_t at 0xf4d TXB0D7bits;
+extern volatile __TXB0D7bits_t __at 0xf4d TXB0D7bits;
 
-extern sfr at 0xf4e CANSTATRO2;
+extern __sfr __at 0xf4e CANSTATRO2;
 typedef union {
        struct {
                unsigned :1;
@@ -1245,9 +1245,9 @@ typedef union {
        };
 } __CANSTATRO2bits_t;
 
-extern volatile __CANSTATRO2bits_t at 0xf4e CANSTATRO2bits;
+extern volatile __CANSTATRO2bits_t __at 0xf4e CANSTATRO2bits;
 
-extern sfr at 0xf50 RXB1CON;
+extern __sfr __at 0xf50 RXB1CON;
 typedef union {
        struct {
                unsigned FILHIT0:1;
@@ -1261,9 +1261,9 @@ typedef union {
        };
 } __RXB1CONbits_t;
 
-extern volatile __RXB1CONbits_t at 0xf50 RXB1CONbits;
+extern volatile __RXB1CONbits_t __at 0xf50 RXB1CONbits;
 
-extern sfr at 0xf51 RXB1SIDH;
+extern __sfr __at 0xf51 RXB1SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -1277,9 +1277,9 @@ typedef union {
        };
 } __RXB1SIDHbits_t;
 
-extern volatile __RXB1SIDHbits_t at 0xf51 RXB1SIDHbits;
+extern volatile __RXB1SIDHbits_t __at 0xf51 RXB1SIDHbits;
 
-extern sfr at 0xf52 RXB1SIDL;
+extern __sfr __at 0xf52 RXB1SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -1293,9 +1293,9 @@ typedef union {
        };
 } __RXB1SIDLbits_t;
 
-extern volatile __RXB1SIDLbits_t at 0xf52 RXB1SIDLbits;
+extern volatile __RXB1SIDLbits_t __at 0xf52 RXB1SIDLbits;
 
-extern sfr at 0xf53 RXB1EIDH;
+extern __sfr __at 0xf53 RXB1EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -1309,9 +1309,9 @@ typedef union {
        };
 } __RXB1EIDHbits_t;
 
-extern volatile __RXB1EIDHbits_t at 0xf53 RXB1EIDHbits;
+extern volatile __RXB1EIDHbits_t __at 0xf53 RXB1EIDHbits;
 
-extern sfr at 0xf54 RXB1EIDL;
+extern __sfr __at 0xf54 RXB1EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -1325,9 +1325,9 @@ typedef union {
        };
 } __RXB1EIDLbits_t;
 
-extern volatile __RXB1EIDLbits_t at 0xf54 RXB1EIDLbits;
+extern volatile __RXB1EIDLbits_t __at 0xf54 RXB1EIDLbits;
 
-extern sfr at 0xf55 RXB1DLC;
+extern __sfr __at 0xf55 RXB1DLC;
 typedef union {
        struct {
                unsigned DLC0:1;
@@ -1341,9 +1341,9 @@ typedef union {
        };
 } __RXB1DLCbits_t;
 
-extern volatile __RXB1DLCbits_t at 0xf55 RXB1DLCbits;
+extern volatile __RXB1DLCbits_t __at 0xf55 RXB1DLCbits;
 
-extern sfr at 0xf56 RXB1D0;
+extern __sfr __at 0xf56 RXB1D0;
 typedef union {
        struct {
                unsigned RXB1D00:1;
@@ -1357,9 +1357,9 @@ typedef union {
        };
 } __RXB1D0bits_t;
 
-extern volatile __RXB1D0bits_t at 0xf56 RXB1D0bits;
+extern volatile __RXB1D0bits_t __at 0xf56 RXB1D0bits;
 
-extern sfr at 0xf57 RXB1D1;
+extern __sfr __at 0xf57 RXB1D1;
 typedef union {
        struct {
                unsigned RXB1D10:1;
@@ -1373,9 +1373,9 @@ typedef union {
        };
 } __RXB1D1bits_t;
 
-extern volatile __RXB1D1bits_t at 0xf57 RXB1D1bits;
+extern volatile __RXB1D1bits_t __at 0xf57 RXB1D1bits;
 
-extern sfr at 0xf58 RXB1D2;
+extern __sfr __at 0xf58 RXB1D2;
 typedef union {
        struct {
                unsigned RXB1D20:1;
@@ -1389,9 +1389,9 @@ typedef union {
        };
 } __RXB1D2bits_t;
 
-extern volatile __RXB1D2bits_t at 0xf58 RXB1D2bits;
+extern volatile __RXB1D2bits_t __at 0xf58 RXB1D2bits;
 
-extern sfr at 0xf59 RXB1D3;
+extern __sfr __at 0xf59 RXB1D3;
 typedef union {
        struct {
                unsigned RXB1D30:1;
@@ -1405,9 +1405,9 @@ typedef union {
        };
 } __RXB1D3bits_t;
 
-extern volatile __RXB1D3bits_t at 0xf59 RXB1D3bits;
+extern volatile __RXB1D3bits_t __at 0xf59 RXB1D3bits;
 
-extern sfr at 0xf5a RXB1D4;
+extern __sfr __at 0xf5a RXB1D4;
 typedef union {
        struct {
                unsigned RXB1D40:1;
@@ -1421,9 +1421,9 @@ typedef union {
        };
 } __RXB1D4bits_t;
 
-extern volatile __RXB1D4bits_t at 0xf5a RXB1D4bits;
+extern volatile __RXB1D4bits_t __at 0xf5a RXB1D4bits;
 
-extern sfr at 0xf5b RXB1D5;
+extern __sfr __at 0xf5b RXB1D5;
 typedef union {
        struct {
                unsigned RXB1D50:1;
@@ -1437,9 +1437,9 @@ typedef union {
        };
 } __RXB1D5bits_t;
 
-extern volatile __RXB1D5bits_t at 0xf5b RXB1D5bits;
+extern volatile __RXB1D5bits_t __at 0xf5b RXB1D5bits;
 
-extern sfr at 0xf5c RXB1D6;
+extern __sfr __at 0xf5c RXB1D6;
 typedef union {
        struct {
                unsigned RXB1D60:1;
@@ -1453,9 +1453,9 @@ typedef union {
        };
 } __RXB1D6bits_t;
 
-extern volatile __RXB1D6bits_t at 0xf5c RXB1D6bits;
+extern volatile __RXB1D6bits_t __at 0xf5c RXB1D6bits;
 
-extern sfr at 0xf5d RXB1D7;
+extern __sfr __at 0xf5d RXB1D7;
 typedef union {
        struct {
                unsigned RXB1D70:1;
@@ -1469,9 +1469,9 @@ typedef union {
        };
 } __RXB1D7bits_t;
 
-extern volatile __RXB1D7bits_t at 0xf5d RXB1D7bits;
+extern volatile __RXB1D7bits_t __at 0xf5d RXB1D7bits;
 
-extern sfr at 0xf5e CANSTATRO1;
+extern __sfr __at 0xf5e CANSTATRO1;
 typedef union {
        struct {
                unsigned :1;
@@ -1485,9 +1485,9 @@ typedef union {
        };
 } __CANSTATRO1bits_t;
 
-extern volatile __CANSTATRO1bits_t at 0xf5e CANSTATRO1bits;
+extern volatile __CANSTATRO1bits_t __at 0xf5e CANSTATRO1bits;
 
-extern sfr at 0xf60 RXB0CON;
+extern __sfr __at 0xf60 RXB0CON;
 typedef union {
        struct {
                unsigned FILHIT0:1;
@@ -1501,9 +1501,9 @@ typedef union {
        };
 } __RXB0CONbits_t;
 
-extern volatile __RXB0CONbits_t at 0xf60 RXB0CONbits;
+extern volatile __RXB0CONbits_t __at 0xf60 RXB0CONbits;
 
-extern sfr at 0xf61 RXB0SIDH;
+extern __sfr __at 0xf61 RXB0SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -1517,9 +1517,9 @@ typedef union {
        };
 } __RXB0SIDHbits_t;
 
-extern volatile __RXB0SIDHbits_t at 0xf61 RXB0SIDHbits;
+extern volatile __RXB0SIDHbits_t __at 0xf61 RXB0SIDHbits;
 
-extern sfr at 0xf62 RXB0SIDL;
+extern __sfr __at 0xf62 RXB0SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -1533,9 +1533,9 @@ typedef union {
        };
 } __RXB0SIDLbits_t;
 
-extern volatile __RXB0SIDLbits_t at 0xf62 RXB0SIDLbits;
+extern volatile __RXB0SIDLbits_t __at 0xf62 RXB0SIDLbits;
 
-extern sfr at 0xf63 RXB0EIDH;
+extern __sfr __at 0xf63 RXB0EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -1549,9 +1549,9 @@ typedef union {
        };
 } __RXB0EIDHbits_t;
 
-extern volatile __RXB0EIDHbits_t at 0xf63 RXB0EIDHbits;
+extern volatile __RXB0EIDHbits_t __at 0xf63 RXB0EIDHbits;
 
-extern sfr at 0xf64 RXB0EIDL;
+extern __sfr __at 0xf64 RXB0EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -1565,9 +1565,9 @@ typedef union {
        };
 } __RXB0EIDLbits_t;
 
-extern volatile __RXB0EIDLbits_t at 0xf64 RXB0EIDLbits;
+extern volatile __RXB0EIDLbits_t __at 0xf64 RXB0EIDLbits;
 
-extern sfr at 0xf65 RXB0DLC;
+extern __sfr __at 0xf65 RXB0DLC;
 typedef union {
        struct {
                unsigned DLC0:1;
@@ -1581,17 +1581,17 @@ typedef union {
        };
 } __RXB0DLCbits_t;
 
-extern volatile __RXB0DLCbits_t at 0xf65 RXB0DLCbits;
+extern volatile __RXB0DLCbits_t __at 0xf65 RXB0DLCbits;
 
-extern sfr at 0xf66 RXB0D0;
-extern sfr at 0xf67 RXB0D1;
-extern sfr at 0xf68 RXB0D2;
-extern sfr at 0xf69 RXB0D3;
-extern sfr at 0xf6a RXB0D4;
-extern sfr at 0xf6b RXB0D5;
-extern sfr at 0xf6c RXB0D6;
-extern sfr at 0xf6d RXB0D7;
-extern sfr at 0xf6e CANSTAT;
+extern __sfr __at 0xf66 RXB0D0;
+extern __sfr __at 0xf67 RXB0D1;
+extern __sfr __at 0xf68 RXB0D2;
+extern __sfr __at 0xf69 RXB0D3;
+extern __sfr __at 0xf6a RXB0D4;
+extern __sfr __at 0xf6b RXB0D5;
+extern __sfr __at 0xf6c RXB0D6;
+extern __sfr __at 0xf6d RXB0D7;
+extern __sfr __at 0xf6e CANSTAT;
 typedef union {
        struct {
                unsigned :1;
@@ -1605,9 +1605,9 @@ typedef union {
        };
 } __CANSTATbits_t;
 
-extern volatile __CANSTATbits_t at 0xf6e CANSTATbits;
+extern volatile __CANSTATbits_t __at 0xf6e CANSTATbits;
 
-extern sfr at 0xf6f CANCON;
+extern __sfr __at 0xf6f CANCON;
 typedef union {
        struct {
                unsigned WIN0:1;
@@ -1621,9 +1621,9 @@ typedef union {
        };
 } __CANCONbits_t;
 
-extern volatile __CANCONbits_t at 0xf6f CANCONbits;
+extern volatile __CANCONbits_t __at 0xf6f CANCONbits;
 
-extern sfr at 0xf70 BRGCON1;
+extern __sfr __at 0xf70 BRGCON1;
 typedef union {
        struct {
                unsigned BRP0:1;
@@ -1637,9 +1637,9 @@ typedef union {
        };
 } __BRGCON1bits_t;
 
-extern volatile __BRGCON1bits_t at 0xf70 BRGCON1bits;
+extern volatile __BRGCON1bits_t __at 0xf70 BRGCON1bits;
 
-extern sfr at 0xf71 BRGCON2;
+extern __sfr __at 0xf71 BRGCON2;
 typedef union {
        struct {
                unsigned PRSEG0:1;
@@ -1653,9 +1653,9 @@ typedef union {
        };
 } __BRGCON2bits_t;
 
-extern volatile __BRGCON2bits_t at 0xf71 BRGCON2bits;
+extern volatile __BRGCON2bits_t __at 0xf71 BRGCON2bits;
 
-extern sfr at 0xf72 BRGCON3;
+extern __sfr __at 0xf72 BRGCON3;
 typedef union {
        struct {
                unsigned SEG2PH0:1;
@@ -1669,9 +1669,9 @@ typedef union {
        };
 } __BRGCON3bits_t;
 
-extern volatile __BRGCON3bits_t at 0xf72 BRGCON3bits;
+extern volatile __BRGCON3bits_t __at 0xf72 BRGCON3bits;
 
-extern sfr at 0xf73 CIOCON;
+extern __sfr __at 0xf73 CIOCON;
 typedef union {
        struct {
                unsigned :1;
@@ -1685,9 +1685,9 @@ typedef union {
        };
 } __CIOCONbits_t;
 
-extern volatile __CIOCONbits_t at 0xf73 CIOCONbits;
+extern volatile __CIOCONbits_t __at 0xf73 CIOCONbits;
 
-extern sfr at 0xf74 COMSTAT;
+extern __sfr __at 0xf74 COMSTAT;
 typedef union {
        struct {
                unsigned EWARN:1;
@@ -1701,9 +1701,9 @@ typedef union {
        };
 } __COMSTATbits_t;
 
-extern volatile __COMSTATbits_t at 0xf74 COMSTATbits;
+extern volatile __COMSTATbits_t __at 0xf74 COMSTATbits;
 
-extern sfr at 0xf75 RXERRCNT;
+extern __sfr __at 0xf75 RXERRCNT;
 typedef union {
        struct {
                unsigned REC0:1;
@@ -1717,9 +1717,9 @@ typedef union {
        };
 } __RXERRCNTbits_t;
 
-extern volatile __RXERRCNTbits_t at 0xf75 RXERRCNTbits;
+extern volatile __RXERRCNTbits_t __at 0xf75 RXERRCNTbits;
 
-extern sfr at 0xf76 TXERRCNT;
+extern __sfr __at 0xf76 TXERRCNT;
 typedef union {
        struct {
                unsigned TEC0:1;
@@ -1733,9 +1733,9 @@ typedef union {
        };
 } __TXERRCNTbits_t;
 
-extern volatile __TXERRCNTbits_t at 0xf76 TXERRCNTbits;
+extern volatile __TXERRCNTbits_t __at 0xf76 TXERRCNTbits;
 
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf80 PORTA;
 typedef union {
        struct {
                unsigned RA0:1;
@@ -1782,9 +1782,9 @@ typedef union {
        };
 } __PORTAbits_t;
 
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
 
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
 typedef union {
        struct {
                unsigned RB0:1;
@@ -1809,9 +1809,9 @@ typedef union {
        };
 } __PORTBbits_t;
 
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
 
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
 typedef union {
        struct {
                unsigned RC0:1;
@@ -1847,9 +1847,9 @@ typedef union {
        };
 } __PORTCbits_t;
 
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
 
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
 typedef union {
        struct {
                unsigned LATA0:1;
@@ -1863,9 +1863,9 @@ typedef union {
        };
 } __LATAbits_t;
 
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
 
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
 typedef union {
        struct {
                unsigned LATB0:1;
@@ -1879,9 +1879,9 @@ typedef union {
        };
 } __LATBbits_t;
 
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
 
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
 typedef union {
        struct {
                unsigned LATC0:1;
@@ -1895,9 +1895,9 @@ typedef union {
        };
 } __LATCbits_t;
 
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
 
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
 typedef union {
        struct {
                unsigned TRISA0:1;
@@ -1911,9 +1911,9 @@ typedef union {
        };
 } __TRISAbits_t;
 
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
 
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
 typedef union {
        struct {
                unsigned TRISB0:1;
@@ -1927,9 +1927,9 @@ typedef union {
        };
 } __TRISBbits_t;
 
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
 
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
 typedef union {
        struct {
                unsigned TRISC0:1;
@@ -1943,9 +1943,9 @@ typedef union {
        };
 } __TRISCbits_t;
 
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
 
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
 typedef union {
        struct {
                unsigned TMR1IE:1;
@@ -1959,9 +1959,9 @@ typedef union {
        };
 } __PIE1bits_t;
 
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
 
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
 typedef union {
        struct {
                unsigned TMR1IF:1;
@@ -1975,9 +1975,9 @@ typedef union {
        };
 } __PIR1bits_t;
 
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
 
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
 typedef union {
        struct {
                unsigned TMR1IP:1;
@@ -1991,9 +1991,9 @@ typedef union {
        };
 } __IPR1bits_t;
 
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
 
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
 typedef union {
        struct {
                unsigned CCP2IE:1;
@@ -2007,9 +2007,9 @@ typedef union {
        };
 } __PIE2bits_t;
 
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
 
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
 typedef union {
        struct {
                unsigned CCP2IF:1;
@@ -2023,9 +2023,9 @@ typedef union {
        };
 } __PIR2bits_t;
 
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
 
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
 typedef union {
        struct {
                unsigned CCP2IP:1;
@@ -2039,9 +2039,9 @@ typedef union {
        };
 } __IPR2bits_t;
 
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
 
-extern sfr at 0xfa3 PIE3;
+extern __sfr __at 0xfa3 PIE3;
 typedef union {
        struct {
                unsigned RX0IE:1;
@@ -2055,9 +2055,9 @@ typedef union {
        };
 } __PIE3bits_t;
 
-extern volatile __PIE3bits_t at 0xfa3 PIE3bits;
+extern volatile __PIE3bits_t __at 0xfa3 PIE3bits;
 
-extern sfr at 0xfa4 PIR3;
+extern __sfr __at 0xfa4 PIR3;
 typedef union {
        struct {
                unsigned RX0IF:1;
@@ -2071,9 +2071,9 @@ typedef union {
        };
 } __PIR3bits_t;
 
-extern volatile __PIR3bits_t at 0xfa4 PIR3bits;
+extern volatile __PIR3bits_t __at 0xfa4 PIR3bits;
 
-extern sfr at 0xfa5 IPR3;
+extern __sfr __at 0xfa5 IPR3;
 typedef union {
        struct {
                unsigned RX0IP:1;
@@ -2087,9 +2087,9 @@ typedef union {
        };
 } __IPR3bits_t;
 
-extern volatile __IPR3bits_t at 0xfa5 IPR3bits;
+extern volatile __IPR3bits_t __at 0xfa5 IPR3bits;
 
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
 typedef union {
        struct {
                unsigned RD:1;
@@ -2103,12 +2103,12 @@ typedef union {
        };
 } __EECON1bits_t;
 
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
 
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfab RCSTA;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfab RCSTA;
 typedef union {
        struct {
                unsigned RX9D:1;
@@ -2122,9 +2122,9 @@ typedef union {
        };
 } __RCSTAbits_t;
 
-extern volatile __RCSTAbits_t at 0xfab RCSTAbits;
+extern volatile __RCSTAbits_t __at 0xfab RCSTAbits;
 
-extern sfr at 0xfac TXSTA;
+extern __sfr __at 0xfac TXSTA;
 typedef union {
        struct {
                unsigned TX9D:1;
@@ -2138,12 +2138,12 @@ typedef union {
        };
 } __TXSTAbits_t;
 
-extern volatile __TXSTAbits_t at 0xfac TXSTAbits;
+extern volatile __TXSTAbits_t __at 0xfac TXSTAbits;
 
-extern sfr at 0xfad TXREG;
-extern sfr at 0xfae RCREG;
-extern sfr at 0xfaf SPBRG;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfad TXREG;
+extern __sfr __at 0xfae RCREG;
+extern __sfr __at 0xfaf SPBRG;
+extern __sfr __at 0xfb1 T3CON;
 typedef union {
        struct {
                unsigned TMR3ON:1;
@@ -2157,11 +2157,11 @@ typedef union {
        };
 } __T3CONbits_t;
 
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
 
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfbd CCP1CON;
 typedef union {
        struct {
                unsigned CCP1M0:1;
@@ -2175,11 +2175,11 @@ typedef union {
        };
 } __CCP1CONbits_t;
 
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
 
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc1 ADCON1;
 typedef union {
        struct {
                unsigned PCFG0:1;
@@ -2193,9 +2193,9 @@ typedef union {
        };
 } __ADCON1bits_t;
 
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
 
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
 typedef union {
        struct {
                unsigned ADON:1;
@@ -2209,11 +2209,11 @@ typedef union {
        };
 } __ADCON0bits_t;
 
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
 
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
 typedef union {
        struct {
                unsigned SEN:1;
@@ -2227,9 +2227,9 @@ typedef union {
        };
 } __SSPCON2bits_t;
 
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
 
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
 typedef union {
        struct {
                unsigned SSPM0:1;
@@ -2243,9 +2243,9 @@ typedef union {
        };
 } __SSPCON1bits_t;
 
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
 
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
 typedef union {
        struct {
                unsigned BF:1;
@@ -2259,11 +2259,11 @@ typedef union {
        };
 } __SSPSTATbits_t;
 
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
 
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
 typedef union {
        struct {
                unsigned T2CKPS0:1;
@@ -2277,11 +2277,11 @@ typedef union {
        };
 } __T2CONbits_t;
 
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
 
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
 typedef union {
        struct {
                unsigned TMR1ON:1;
@@ -2295,11 +2295,11 @@ typedef union {
        };
 } __T1CONbits_t;
 
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
 
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
 typedef union {
        struct {
                unsigned BOR:1;
@@ -2313,9 +2313,9 @@ typedef union {
        };
 } __RCONbits_t;
 
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
 
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
 typedef union {
        struct {
                unsigned SWDTEN:1;
@@ -2340,9 +2340,9 @@ typedef union {
        };
 } __WDTCONbits_t;
 
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
 
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
 typedef union {
        struct {
                unsigned LVDL0:1;
@@ -2367,9 +2367,9 @@ typedef union {
        };
 } __LVDCONbits_t;
 
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
 
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
 typedef union {
        struct {
                unsigned SCS:1;
@@ -2383,12 +2383,12 @@ typedef union {
        };
 } __OSCCONbits_t;
 
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
 
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
 typedef union {
        struct {
                unsigned C:1;
@@ -2402,32 +2402,32 @@ typedef union {
        };
 } __STATUSbits_t;
 
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
 typedef union {
        struct {
                unsigned INT1F:1;
@@ -2452,9 +2452,9 @@ typedef union {
        };
 } __INTCON3bits_t;
 
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
 
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
 typedef union {
        struct {
                unsigned RBIP:1;
@@ -2468,9 +2468,9 @@ typedef union {
        };
 } __INTCON2bits_t;
 
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
 
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
 typedef union {
        struct {
                unsigned RBIF:1;
@@ -2484,18 +2484,18 @@ typedef union {
        };
 } __INTCONbits_t;
 
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
 
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
 typedef union {
        struct {
                unsigned STKPTR0:1;
@@ -2509,11 +2509,11 @@ typedef union {
        };
 } __STKPTRbits_t;
 
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
 
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
 
 
 /* Configuration registers locations */
index 11976f74827a7b93bcec99f2d172bb5e5114b336..8aba53c67391711436c768210a82614abc31a702 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef __PIC18F442_H__
 #define __PIC18F442_H__
 
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf80 PORTA;
 typedef union {
        struct {
                unsigned RA0:1;
@@ -62,9 +62,9 @@ typedef union {
        };
 } __PORTAbits_t;
 
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
 
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
 typedef union {
        struct {
                unsigned RB0:1;
@@ -89,9 +89,9 @@ typedef union {
        };
 } __PORTBbits_t;
 
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
 
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
 typedef union {
        struct {
                unsigned RC0:1;
@@ -127,9 +127,9 @@ typedef union {
        };
 } __PORTCbits_t;
 
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
 
-extern sfr at 0xf83 PORTD;
+extern __sfr __at 0xf83 PORTD;
 typedef union {
        struct {
                unsigned RD0:1;
@@ -154,9 +154,9 @@ typedef union {
        };
 } __PORTDbits_t;
 
-extern volatile __PORTDbits_t at 0xf83 PORTDbits;
+extern volatile __PORTDbits_t __at 0xf83 PORTDbits;
 
-extern sfr at 0xf84 PORTE;
+extern __sfr __at 0xf84 PORTE;
 typedef union {
        struct {
                unsigned RE0:1;
@@ -192,9 +192,9 @@ typedef union {
        };
 } __PORTEbits_t;
 
-extern volatile __PORTEbits_t at 0xf84 PORTEbits;
+extern volatile __PORTEbits_t __at 0xf84 PORTEbits;
 
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
 typedef union {
        struct {
                unsigned LATA0:1;
@@ -208,9 +208,9 @@ typedef union {
        };
 } __LATAbits_t;
 
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
 
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
 typedef union {
        struct {
                unsigned LATB0:1;
@@ -224,9 +224,9 @@ typedef union {
        };
 } __LATBbits_t;
 
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
 
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
 typedef union {
        struct {
                unsigned LATC0:1;
@@ -240,9 +240,9 @@ typedef union {
        };
 } __LATCbits_t;
 
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
 
-extern sfr at 0xf8c LATD;
+extern __sfr __at 0xf8c LATD;
 typedef union {
        struct {
                unsigned LATD0:1;
@@ -256,9 +256,9 @@ typedef union {
        };
 } __LATDbits_t;
 
-extern volatile __LATDbits_t at 0xf8c LATDbits;
+extern volatile __LATDbits_t __at 0xf8c LATDbits;
 
-extern sfr at 0xf8d LATE;
+extern __sfr __at 0xf8d LATE;
 typedef union {
        struct {
                unsigned LATE0:1;
@@ -272,9 +272,9 @@ typedef union {
        };
 } __LATEbits_t;
 
-extern volatile __LATEbits_t at 0xf8d LATEbits;
+extern volatile __LATEbits_t __at 0xf8d LATEbits;
 
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
 typedef union {
        struct {
                unsigned TRISA0:1;
@@ -288,9 +288,9 @@ typedef union {
        };
 } __TRISAbits_t;
 
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
 
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
 typedef union {
        struct {
                unsigned TRISB0:1;
@@ -304,9 +304,9 @@ typedef union {
        };
 } __TRISBbits_t;
 
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
 
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
 typedef union {
        struct {
                unsigned TRISC0:1;
@@ -320,9 +320,9 @@ typedef union {
        };
 } __TRISCbits_t;
 
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
 
-extern sfr at 0xf95 TRISD;
+extern __sfr __at 0xf95 TRISD;
 typedef union {
        struct {
                unsigned TRISD0:1;
@@ -336,9 +336,9 @@ typedef union {
        };
 } __TRISDbits_t;
 
-extern volatile __TRISDbits_t at 0xf95 TRISDbits;
+extern volatile __TRISDbits_t __at 0xf95 TRISDbits;
 
-extern sfr at 0xf96 TRISE;
+extern __sfr __at 0xf96 TRISE;
 typedef union {
        struct {
                unsigned :1;
@@ -352,9 +352,9 @@ typedef union {
        };
 } __TRISEbits_t;
 
-extern volatile __TRISEbits_t at 0xf96 TRISEbits;
+extern volatile __TRISEbits_t __at 0xf96 TRISEbits;
 
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
 typedef union {
        struct {
                unsigned TMR1IE:1;
@@ -368,9 +368,9 @@ typedef union {
        };
 } __PIE1bits_t;
 
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
 
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
 typedef union {
        struct {
                unsigned TMR1IF:1;
@@ -384,9 +384,9 @@ typedef union {
        };
 } __PIR1bits_t;
 
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
 
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
 typedef union {
        struct {
                unsigned TMR1IP:1;
@@ -400,9 +400,9 @@ typedef union {
        };
 } __IPR1bits_t;
 
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
 
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
 typedef union {
        struct {
                unsigned CCP2IE:1;
@@ -416,9 +416,9 @@ typedef union {
        };
 } __PIE2bits_t;
 
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
 
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
 typedef union {
        struct {
                unsigned CCP2IF:1;
@@ -432,9 +432,9 @@ typedef union {
        };
 } __PIR2bits_t;
 
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
 
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
 typedef union {
        struct {
                unsigned CCP2IP:1;
@@ -448,9 +448,9 @@ typedef union {
        };
 } __IPR2bits_t;
 
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
 
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
 typedef union {
        struct {
                unsigned RD:1;
@@ -464,12 +464,12 @@ typedef union {
        };
 } __EECON1bits_t;
 
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
 
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfab RCSTA;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfab RCSTA;
 typedef union {
        struct {
                unsigned RX9D:1;
@@ -483,9 +483,9 @@ typedef union {
        };
 } __RCSTAbits_t;
 
-extern volatile __RCSTAbits_t at 0xfab RCSTAbits;
+extern volatile __RCSTAbits_t __at 0xfab RCSTAbits;
 
-extern sfr at 0xfac TXSTA;
+extern __sfr __at 0xfac TXSTA;
 typedef union {
        struct {
                unsigned TX9D:1;
@@ -499,12 +499,12 @@ typedef union {
        };
 } __TXSTAbits_t;
 
-extern volatile __TXSTAbits_t at 0xfac TXSTAbits;
+extern volatile __TXSTAbits_t __at 0xfac TXSTAbits;
 
-extern sfr at 0xfad TXREG;
-extern sfr at 0xfae RCREG;
-extern sfr at 0xfaf SPBRG;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfad TXREG;
+extern __sfr __at 0xfae RCREG;
+extern __sfr __at 0xfaf SPBRG;
+extern __sfr __at 0xfb1 T3CON;
 typedef union {
        struct {
                unsigned TMR3ON:1;
@@ -518,11 +518,11 @@ typedef union {
        };
 } __T3CONbits_t;
 
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
 
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfba CCP2CON;
 typedef union {
        struct {
                unsigned CCP2M0:1;
@@ -536,11 +536,11 @@ typedef union {
        };
 } __CCP2CONbits_t;
 
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
 
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfbd CCP1CON;
 typedef union {
        struct {
                unsigned CCP1M0:1;
@@ -554,11 +554,11 @@ typedef union {
        };
 } __CCP1CONbits_t;
 
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
 
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc1 ADCON1;
 typedef union {
        struct {
                unsigned PCFG0:1;
@@ -572,9 +572,9 @@ typedef union {
        };
 } __ADCON1bits_t;
 
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
 
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
 typedef union {
        struct {
                unsigned ADON:1;
@@ -588,11 +588,11 @@ typedef union {
        };
 } __ADCON0bits_t;
 
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
 
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
 typedef union {
        struct {
                unsigned SEN:1;
@@ -606,9 +606,9 @@ typedef union {
        };
 } __SSPCON2bits_t;
 
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
 
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
 typedef union {
        struct {
                unsigned SSPM0:1;
@@ -622,9 +622,9 @@ typedef union {
        };
 } __SSPCON1bits_t;
 
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
 
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
 typedef union {
        struct {
                unsigned BF:1;
@@ -638,11 +638,11 @@ typedef union {
        };
 } __SSPSTATbits_t;
 
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
 
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
 typedef union {
        struct {
                unsigned T2CKPS0:1;
@@ -656,11 +656,11 @@ typedef union {
        };
 } __T2CONbits_t;
 
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
 
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
 typedef union {
        struct {
                unsigned TMR1ON:1;
@@ -674,11 +674,11 @@ typedef union {
        };
 } __T1CONbits_t;
 
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
 
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
 typedef union {
        struct {
                unsigned BOR:1;
@@ -692,9 +692,9 @@ typedef union {
        };
 } __RCONbits_t;
 
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
 
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
 typedef union {
        struct {
                unsigned SWDTEN:1;
@@ -719,9 +719,9 @@ typedef union {
        };
 } __WDTCONbits_t;
 
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
 
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
 typedef union {
        struct {
                unsigned LVDL0:1;
@@ -746,9 +746,9 @@ typedef union {
        };
 } __LVDCONbits_t;
 
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
 
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
 typedef union {
        struct {
                unsigned SCS:1;
@@ -762,9 +762,9 @@ typedef union {
        };
 } __OSCCONbits_t;
 
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
 
-extern sfr at 0xfd5 T0CON;
+extern __sfr __at 0xfd5 T0CON;
 typedef union {
        struct {
                unsigned T0PS0:1;
@@ -778,11 +778,11 @@ typedef union {
        };
 } __T0CONbits_t;
 
-extern volatile __T0CONbits_t at 0xfd5 T0CONbits;
+extern volatile __T0CONbits_t __at 0xfd5 T0CONbits;
 
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
 typedef union {
        struct {
                unsigned C:1;
@@ -796,32 +796,32 @@ typedef union {
        };
 } __STATUSbits_t;
 
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
 typedef union {
        struct {
                unsigned INT1F:1;
@@ -846,9 +846,9 @@ typedef union {
        };
 } __INTCON3bits_t;
 
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
 
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
 typedef union {
        struct {
                unsigned RBIP:1;
@@ -862,9 +862,9 @@ typedef union {
        };
 } __INTCON2bits_t;
 
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
 
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
 typedef union {
        struct {
                unsigned RBIF:1;
@@ -878,18 +878,18 @@ typedef union {
        };
 } __INTCONbits_t;
 
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
-
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
+
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
 typedef union {
        struct {
                unsigned STKPTR0:1;
@@ -903,11 +903,11 @@ typedef union {
        };
 } __STKPTRbits_t;
 
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
 
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
 
 
 /* Configuration registers locations */
index 310dbf8e09f6a59a5b349cc4718f8bf990454aa4..18f08761831763aaa975df6184edc8ca947be9f3 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef __PIC18F448_H__
 #define __PIC18F448_H__
 
-extern sfr at 0xf00 RXF0SIDH;
+extern __sfr __at 0xf00 RXF0SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -29,9 +29,9 @@ typedef union {
        };
 } __RXF0SIDHbits_t;
 
-extern volatile __RXF0SIDHbits_t at 0xf00 RXF0SIDHbits;
+extern volatile __RXF0SIDHbits_t __at 0xf00 RXF0SIDHbits;
 
-extern sfr at 0xf01 RXF0SIDL;
+extern __sfr __at 0xf01 RXF0SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -45,9 +45,9 @@ typedef union {
        };
 } __RXF0SIDLbits_t;
 
-extern volatile __RXF0SIDLbits_t at 0xf01 RXF0SIDLbits;
+extern volatile __RXF0SIDLbits_t __at 0xf01 RXF0SIDLbits;
 
-extern sfr at 0xf02 RXF0EIDH;
+extern __sfr __at 0xf02 RXF0EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -61,9 +61,9 @@ typedef union {
        };
 } __RXF0EIDHbits_t;
 
-extern volatile __RXF0EIDHbits_t at 0xf02 RXF0EIDHbits;
+extern volatile __RXF0EIDHbits_t __at 0xf02 RXF0EIDHbits;
 
-extern sfr at 0xf03 RXF0EIDL;
+extern __sfr __at 0xf03 RXF0EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -77,9 +77,9 @@ typedef union {
        };
 } __RXF0EIDLbits_t;
 
-extern volatile __RXF0EIDLbits_t at 0xf03 RXF0EIDLbits;
+extern volatile __RXF0EIDLbits_t __at 0xf03 RXF0EIDLbits;
 
-extern sfr at 0xf04 RXF1SIDH;
+extern __sfr __at 0xf04 RXF1SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -93,9 +93,9 @@ typedef union {
        };
 } __RXF1SIDHbits_t;
 
-extern volatile __RXF1SIDHbits_t at 0xf04 RXF1SIDHbits;
+extern volatile __RXF1SIDHbits_t __at 0xf04 RXF1SIDHbits;
 
-extern sfr at 0xf05 RXF1SIDL;
+extern __sfr __at 0xf05 RXF1SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -109,9 +109,9 @@ typedef union {
        };
 } __RXF1SIDLbits_t;
 
-extern volatile __RXF1SIDLbits_t at 0xf05 RXF1SIDLbits;
+extern volatile __RXF1SIDLbits_t __at 0xf05 RXF1SIDLbits;
 
-extern sfr at 0xf06 RXF1EIDH;
+extern __sfr __at 0xf06 RXF1EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -125,9 +125,9 @@ typedef union {
        };
 } __RXF1EIDHbits_t;
 
-extern volatile __RXF1EIDHbits_t at 0xf06 RXF1EIDHbits;
+extern volatile __RXF1EIDHbits_t __at 0xf06 RXF1EIDHbits;
 
-extern sfr at 0xf07 RXF1EIDL;
+extern __sfr __at 0xf07 RXF1EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -141,9 +141,9 @@ typedef union {
        };
 } __RXF1EIDLbits_t;
 
-extern volatile __RXF1EIDLbits_t at 0xf07 RXF1EIDLbits;
+extern volatile __RXF1EIDLbits_t __at 0xf07 RXF1EIDLbits;
 
-extern sfr at 0xf08 RXF2SIDH;
+extern __sfr __at 0xf08 RXF2SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -157,9 +157,9 @@ typedef union {
        };
 } __RXF2SIDHbits_t;
 
-extern volatile __RXF2SIDHbits_t at 0xf08 RXF2SIDHbits;
+extern volatile __RXF2SIDHbits_t __at 0xf08 RXF2SIDHbits;
 
-extern sfr at 0xf09 RXF2SIDL;
+extern __sfr __at 0xf09 RXF2SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -173,9 +173,9 @@ typedef union {
        };
 } __RXF2SIDLbits_t;
 
-extern volatile __RXF2SIDLbits_t at 0xf09 RXF2SIDLbits;
+extern volatile __RXF2SIDLbits_t __at 0xf09 RXF2SIDLbits;
 
-extern sfr at 0xf0a RXF2EIDH;
+extern __sfr __at 0xf0a RXF2EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -189,9 +189,9 @@ typedef union {
        };
 } __RXF2EIDHbits_t;
 
-extern volatile __RXF2EIDHbits_t at 0xf0a RXF2EIDHbits;
+extern volatile __RXF2EIDHbits_t __at 0xf0a RXF2EIDHbits;
 
-extern sfr at 0xf0b RXF2EIDL;
+extern __sfr __at 0xf0b RXF2EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -205,9 +205,9 @@ typedef union {
        };
 } __RXF2EIDLbits_t;
 
-extern volatile __RXF2EIDLbits_t at 0xf0b RXF2EIDLbits;
+extern volatile __RXF2EIDLbits_t __at 0xf0b RXF2EIDLbits;
 
-extern sfr at 0xf0c RXF3SIDH;
+extern __sfr __at 0xf0c RXF3SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -221,9 +221,9 @@ typedef union {
        };
 } __RXF3SIDHbits_t;
 
-extern volatile __RXF3SIDHbits_t at 0xf0c RXF3SIDHbits;
+extern volatile __RXF3SIDHbits_t __at 0xf0c RXF3SIDHbits;
 
-extern sfr at 0xf0d RXF3SIDL;
+extern __sfr __at 0xf0d RXF3SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -237,9 +237,9 @@ typedef union {
        };
 } __RXF3SIDLbits_t;
 
-extern volatile __RXF3SIDLbits_t at 0xf0d RXF3SIDLbits;
+extern volatile __RXF3SIDLbits_t __at 0xf0d RXF3SIDLbits;
 
-extern sfr at 0xf0e RXF3EIDH;
+extern __sfr __at 0xf0e RXF3EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -253,9 +253,9 @@ typedef union {
        };
 } __RXF3EIDHbits_t;
 
-extern volatile __RXF3EIDHbits_t at 0xf0e RXF3EIDHbits;
+extern volatile __RXF3EIDHbits_t __at 0xf0e RXF3EIDHbits;
 
-extern sfr at 0xf0f RXF3EIDL;
+extern __sfr __at 0xf0f RXF3EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -269,9 +269,9 @@ typedef union {
        };
 } __RXF3EIDLbits_t;
 
-extern volatile __RXF3EIDLbits_t at 0xf0f RXF3EIDLbits;
+extern volatile __RXF3EIDLbits_t __at 0xf0f RXF3EIDLbits;
 
-extern sfr at 0xf10 RXF4SIDH;
+extern __sfr __at 0xf10 RXF4SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -285,9 +285,9 @@ typedef union {
        };
 } __RXF4SIDHbits_t;
 
-extern volatile __RXF4SIDHbits_t at 0xf10 RXF4SIDHbits;
+extern volatile __RXF4SIDHbits_t __at 0xf10 RXF4SIDHbits;
 
-extern sfr at 0xf11 RXF4SIDL;
+extern __sfr __at 0xf11 RXF4SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -301,9 +301,9 @@ typedef union {
        };
 } __RXF4SIDLbits_t;
 
-extern volatile __RXF4SIDLbits_t at 0xf11 RXF4SIDLbits;
+extern volatile __RXF4SIDLbits_t __at 0xf11 RXF4SIDLbits;
 
-extern sfr at 0xf12 RXF4EIDH;
+extern __sfr __at 0xf12 RXF4EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -317,9 +317,9 @@ typedef union {
        };
 } __RXF4EIDHbits_t;
 
-extern volatile __RXF4EIDHbits_t at 0xf12 RXF4EIDHbits;
+extern volatile __RXF4EIDHbits_t __at 0xf12 RXF4EIDHbits;
 
-extern sfr at 0xf13 RXF4EIDL;
+extern __sfr __at 0xf13 RXF4EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -333,9 +333,9 @@ typedef union {
        };
 } __RXF4EIDLbits_t;
 
-extern volatile __RXF4EIDLbits_t at 0xf13 RXF4EIDLbits;
+extern volatile __RXF4EIDLbits_t __at 0xf13 RXF4EIDLbits;
 
-extern sfr at 0xf14 RXF5SIDH;
+extern __sfr __at 0xf14 RXF5SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -349,9 +349,9 @@ typedef union {
        };
 } __RXF5SIDHbits_t;
 
-extern volatile __RXF5SIDHbits_t at 0xf14 RXF5SIDHbits;
+extern volatile __RXF5SIDHbits_t __at 0xf14 RXF5SIDHbits;
 
-extern sfr at 0xf15 RXF5SIDL;
+extern __sfr __at 0xf15 RXF5SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -365,9 +365,9 @@ typedef union {
        };
 } __RXF5SIDLbits_t;
 
-extern volatile __RXF5SIDLbits_t at 0xf15 RXF5SIDLbits;
+extern volatile __RXF5SIDLbits_t __at 0xf15 RXF5SIDLbits;
 
-extern sfr at 0xf16 RXF5EIDH;
+extern __sfr __at 0xf16 RXF5EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -381,9 +381,9 @@ typedef union {
        };
 } __RXF5EIDHbits_t;
 
-extern volatile __RXF5EIDHbits_t at 0xf16 RXF5EIDHbits;
+extern volatile __RXF5EIDHbits_t __at 0xf16 RXF5EIDHbits;
 
-extern sfr at 0xf17 RXF5EIDL;
+extern __sfr __at 0xf17 RXF5EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -397,9 +397,9 @@ typedef union {
        };
 } __RXF5EIDLbits_t;
 
-extern volatile __RXF5EIDLbits_t at 0xf17 RXF5EIDLbits;
+extern volatile __RXF5EIDLbits_t __at 0xf17 RXF5EIDLbits;
 
-extern sfr at 0xf18 RXM0SIDH;
+extern __sfr __at 0xf18 RXM0SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -413,9 +413,9 @@ typedef union {
        };
 } __RXM0SIDHbits_t;
 
-extern volatile __RXM0SIDHbits_t at 0xf18 RXM0SIDHbits;
+extern volatile __RXM0SIDHbits_t __at 0xf18 RXM0SIDHbits;
 
-extern sfr at 0xf19 RXM0SIDL;
+extern __sfr __at 0xf19 RXM0SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -429,9 +429,9 @@ typedef union {
        };
 } __RXM0SIDLbits_t;
 
-extern volatile __RXM0SIDLbits_t at 0xf19 RXM0SIDLbits;
+extern volatile __RXM0SIDLbits_t __at 0xf19 RXM0SIDLbits;
 
-extern sfr at 0xf1a RXM0EIDH;
+extern __sfr __at 0xf1a RXM0EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -445,9 +445,9 @@ typedef union {
        };
 } __RXM0EIDHbits_t;
 
-extern volatile __RXM0EIDHbits_t at 0xf1a RXM0EIDHbits;
+extern volatile __RXM0EIDHbits_t __at 0xf1a RXM0EIDHbits;
 
-extern sfr at 0xf1b RXM0EIDL;
+extern __sfr __at 0xf1b RXM0EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -461,9 +461,9 @@ typedef union {
        };
 } __RXM0EIDLbits_t;
 
-extern volatile __RXM0EIDLbits_t at 0xf1b RXM0EIDLbits;
+extern volatile __RXM0EIDLbits_t __at 0xf1b RXM0EIDLbits;
 
-extern sfr at 0xf1c RXM1SIDH;
+extern __sfr __at 0xf1c RXM1SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -477,9 +477,9 @@ typedef union {
        };
 } __RXM1SIDHbits_t;
 
-extern volatile __RXM1SIDHbits_t at 0xf1c RXM1SIDHbits;
+extern volatile __RXM1SIDHbits_t __at 0xf1c RXM1SIDHbits;
 
-extern sfr at 0xf1d RXM1SIDL;
+extern __sfr __at 0xf1d RXM1SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -493,9 +493,9 @@ typedef union {
        };
 } __RXM1SIDLbits_t;
 
-extern volatile __RXM1SIDLbits_t at 0xf1d RXM1SIDLbits;
+extern volatile __RXM1SIDLbits_t __at 0xf1d RXM1SIDLbits;
 
-extern sfr at 0xf1e RXM1EIDH;
+extern __sfr __at 0xf1e RXM1EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -509,9 +509,9 @@ typedef union {
        };
 } __RXM1EIDHbits_t;
 
-extern volatile __RXM1EIDHbits_t at 0xf1e RXM1EIDHbits;
+extern volatile __RXM1EIDHbits_t __at 0xf1e RXM1EIDHbits;
 
-extern sfr at 0xf1f RXM1EIDL;
+extern __sfr __at 0xf1f RXM1EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -525,9 +525,9 @@ typedef union {
        };
 } __RXM1EIDLbits_t;
 
-extern volatile __RXM1EIDLbits_t at 0xf1f RXM1EIDLbits;
+extern volatile __RXM1EIDLbits_t __at 0xf1f RXM1EIDLbits;
 
-extern sfr at 0xf20 TXB2CON;
+extern __sfr __at 0xf20 TXB2CON;
 typedef union {
        struct {
                unsigned TXPRI0:1;
@@ -541,9 +541,9 @@ typedef union {
        };
 } __TXB2CONbits_t;
 
-extern volatile __TXB2CONbits_t at 0xf20 TXB2CONbits;
+extern volatile __TXB2CONbits_t __at 0xf20 TXB2CONbits;
 
-extern sfr at 0xf21 TXB2SIDH;
+extern __sfr __at 0xf21 TXB2SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -557,9 +557,9 @@ typedef union {
        };
 } __TXB2SIDHbits_t;
 
-extern volatile __TXB2SIDHbits_t at 0xf21 TXB2SIDHbits;
+extern volatile __TXB2SIDHbits_t __at 0xf21 TXB2SIDHbits;
 
-extern sfr at 0xf22 TXB2SIDL;
+extern __sfr __at 0xf22 TXB2SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -573,9 +573,9 @@ typedef union {
        };
 } __TXB2SIDLbits_t;
 
-extern volatile __TXB2SIDLbits_t at 0xf22 TXB2SIDLbits;
+extern volatile __TXB2SIDLbits_t __at 0xf22 TXB2SIDLbits;
 
-extern sfr at 0xf23 TXB2EIDH;
+extern __sfr __at 0xf23 TXB2EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -589,9 +589,9 @@ typedef union {
        };
 } __TXB2EIDHbits_t;
 
-extern volatile __TXB2EIDHbits_t at 0xf23 TXB2EIDHbits;
+extern volatile __TXB2EIDHbits_t __at 0xf23 TXB2EIDHbits;
 
-extern sfr at 0xf24 TXB2EIDL;
+extern __sfr __at 0xf24 TXB2EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -605,9 +605,9 @@ typedef union {
        };
 } __TXB2EIDLbits_t;
 
-extern volatile __TXB2EIDLbits_t at 0xf24 TXB2EIDLbits;
+extern volatile __TXB2EIDLbits_t __at 0xf24 TXB2EIDLbits;
 
-extern sfr at 0xf25 TXB2DLC;
+extern __sfr __at 0xf25 TXB2DLC;
 typedef union {
        struct {
                unsigned TXB2DLC0:1;
@@ -621,9 +621,9 @@ typedef union {
        };
 } __TXB2DLCbits_t;
 
-extern volatile __TXB2DLCbits_t at 0xf25 TXB2DLCbits;
+extern volatile __TXB2DLCbits_t __at 0xf25 TXB2DLCbits;
 
-extern sfr at 0xf26 TXB2D0;
+extern __sfr __at 0xf26 TXB2D0;
 typedef union {
        struct {
                unsigned TXB2D00:1;
@@ -637,9 +637,9 @@ typedef union {
        };
 } __TXB2D0bits_t;
 
-extern volatile __TXB2D0bits_t at 0xf26 TXB2D0bits;
+extern volatile __TXB2D0bits_t __at 0xf26 TXB2D0bits;
 
-extern sfr at 0xf27 TXB2D1;
+extern __sfr __at 0xf27 TXB2D1;
 typedef union {
        struct {
                unsigned TXB2D10:1;
@@ -653,9 +653,9 @@ typedef union {
        };
 } __TXB2D1bits_t;
 
-extern volatile __TXB2D1bits_t at 0xf27 TXB2D1bits;
+extern volatile __TXB2D1bits_t __at 0xf27 TXB2D1bits;
 
-extern sfr at 0xf28 TXB2D2;
+extern __sfr __at 0xf28 TXB2D2;
 typedef union {
        struct {
                unsigned TXB2D20:1;
@@ -669,9 +669,9 @@ typedef union {
        };
 } __TXB2D2bits_t;
 
-extern volatile __TXB2D2bits_t at 0xf28 TXB2D2bits;
+extern volatile __TXB2D2bits_t __at 0xf28 TXB2D2bits;
 
-extern sfr at 0xf29 TXB2D3;
+extern __sfr __at 0xf29 TXB2D3;
 typedef union {
        struct {
                unsigned TXB2D30:1;
@@ -685,9 +685,9 @@ typedef union {
        };
 } __TXB2D3bits_t;
 
-extern volatile __TXB2D3bits_t at 0xf29 TXB2D3bits;
+extern volatile __TXB2D3bits_t __at 0xf29 TXB2D3bits;
 
-extern sfr at 0xf2a TXB2D4;
+extern __sfr __at 0xf2a TXB2D4;
 typedef union {
        struct {
                unsigned TXB2D40:1;
@@ -701,9 +701,9 @@ typedef union {
        };
 } __TXB2D4bits_t;
 
-extern volatile __TXB2D4bits_t at 0xf2a TXB2D4bits;
+extern volatile __TXB2D4bits_t __at 0xf2a TXB2D4bits;
 
-extern sfr at 0xf2b TXB2D5;
+extern __sfr __at 0xf2b TXB2D5;
 typedef union {
        struct {
                unsigned TXB2D50:1;
@@ -717,9 +717,9 @@ typedef union {
        };
 } __TXB2D5bits_t;
 
-extern volatile __TXB2D5bits_t at 0xf2b TXB2D5bits;
+extern volatile __TXB2D5bits_t __at 0xf2b TXB2D5bits;
 
-extern sfr at 0xf2c TXB2D6;
+extern __sfr __at 0xf2c TXB2D6;
 typedef union {
        struct {
                unsigned TXB2D60:1;
@@ -733,9 +733,9 @@ typedef union {
        };
 } __TXB2D6bits_t;
 
-extern volatile __TXB2D6bits_t at 0xf2c TXB2D6bits;
+extern volatile __TXB2D6bits_t __at 0xf2c TXB2D6bits;
 
-extern sfr at 0xf2d TXB2D7;
+extern __sfr __at 0xf2d TXB2D7;
 typedef union {
        struct {
                unsigned TXB2D70:1;
@@ -749,9 +749,9 @@ typedef union {
        };
 } __TXB2D7bits_t;
 
-extern volatile __TXB2D7bits_t at 0xf2d TXB2D7bits;
+extern volatile __TXB2D7bits_t __at 0xf2d TXB2D7bits;
 
-extern sfr at 0xf2e CANSTATRO4;
+extern __sfr __at 0xf2e CANSTATRO4;
 typedef union {
        struct {
                unsigned :1;
@@ -765,9 +765,9 @@ typedef union {
        };
 } __CANSTATRO4bits_t;
 
-extern volatile __CANSTATRO4bits_t at 0xf2e CANSTATRO4bits;
+extern volatile __CANSTATRO4bits_t __at 0xf2e CANSTATRO4bits;
 
-extern sfr at 0xf30 TXB1CON;
+extern __sfr __at 0xf30 TXB1CON;
 typedef union {
        struct {
                unsigned TXPRI0:1;
@@ -781,9 +781,9 @@ typedef union {
        };
 } __TXB1CONbits_t;
 
-extern volatile __TXB1CONbits_t at 0xf30 TXB1CONbits;
+extern volatile __TXB1CONbits_t __at 0xf30 TXB1CONbits;
 
-extern sfr at 0xf31 TXB1SIDH;
+extern __sfr __at 0xf31 TXB1SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -797,9 +797,9 @@ typedef union {
        };
 } __TXB1SIDHbits_t;
 
-extern volatile __TXB1SIDHbits_t at 0xf31 TXB1SIDHbits;
+extern volatile __TXB1SIDHbits_t __at 0xf31 TXB1SIDHbits;
 
-extern sfr at 0xf32 TXB1SIDL;
+extern __sfr __at 0xf32 TXB1SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -813,9 +813,9 @@ typedef union {
        };
 } __TXB1SIDLbits_t;
 
-extern volatile __TXB1SIDLbits_t at 0xf32 TXB1SIDLbits;
+extern volatile __TXB1SIDLbits_t __at 0xf32 TXB1SIDLbits;
 
-extern sfr at 0xf33 TXB1EIDH;
+extern __sfr __at 0xf33 TXB1EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -829,9 +829,9 @@ typedef union {
        };
 } __TXB1EIDHbits_t;
 
-extern volatile __TXB1EIDHbits_t at 0xf33 TXB1EIDHbits;
+extern volatile __TXB1EIDHbits_t __at 0xf33 TXB1EIDHbits;
 
-extern sfr at 0xf34 TXB1EIDL;
+extern __sfr __at 0xf34 TXB1EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -845,9 +845,9 @@ typedef union {
        };
 } __TXB1EIDLbits_t;
 
-extern volatile __TXB1EIDLbits_t at 0xf34 TXB1EIDLbits;
+extern volatile __TXB1EIDLbits_t __at 0xf34 TXB1EIDLbits;
 
-extern sfr at 0xf35 TXB1DLC;
+extern __sfr __at 0xf35 TXB1DLC;
 typedef union {
        struct {
                unsigned DLC0:1;
@@ -861,9 +861,9 @@ typedef union {
        };
 } __TXB1DLCbits_t;
 
-extern volatile __TXB1DLCbits_t at 0xf35 TXB1DLCbits;
+extern volatile __TXB1DLCbits_t __at 0xf35 TXB1DLCbits;
 
-extern sfr at 0xf36 TXB1D0;
+extern __sfr __at 0xf36 TXB1D0;
 typedef union {
        struct {
                unsigned TXB1D00:1;
@@ -877,9 +877,9 @@ typedef union {
        };
 } __TXB1D0bits_t;
 
-extern volatile __TXB1D0bits_t at 0xf36 TXB1D0bits;
+extern volatile __TXB1D0bits_t __at 0xf36 TXB1D0bits;
 
-extern sfr at 0xf37 TXB1D1;
+extern __sfr __at 0xf37 TXB1D1;
 typedef union {
        struct {
                unsigned TXB1D10:1;
@@ -893,9 +893,9 @@ typedef union {
        };
 } __TXB1D1bits_t;
 
-extern volatile __TXB1D1bits_t at 0xf37 TXB1D1bits;
+extern volatile __TXB1D1bits_t __at 0xf37 TXB1D1bits;
 
-extern sfr at 0xf38 TXB1D2;
+extern __sfr __at 0xf38 TXB1D2;
 typedef union {
        struct {
                unsigned TXB1D20:1;
@@ -909,9 +909,9 @@ typedef union {
        };
 } __TXB1D2bits_t;
 
-extern volatile __TXB1D2bits_t at 0xf38 TXB1D2bits;
+extern volatile __TXB1D2bits_t __at 0xf38 TXB1D2bits;
 
-extern sfr at 0xf39 TXB1D3;
+extern __sfr __at 0xf39 TXB1D3;
 typedef union {
        struct {
                unsigned TXB1D30:1;
@@ -925,9 +925,9 @@ typedef union {
        };
 } __TXB1D3bits_t;
 
-extern volatile __TXB1D3bits_t at 0xf39 TXB1D3bits;
+extern volatile __TXB1D3bits_t __at 0xf39 TXB1D3bits;
 
-extern sfr at 0xf3a TXB1D4;
+extern __sfr __at 0xf3a TXB1D4;
 typedef union {
        struct {
                unsigned TXB1D40:1;
@@ -941,9 +941,9 @@ typedef union {
        };
 } __TXB1D4bits_t;
 
-extern volatile __TXB1D4bits_t at 0xf3a TXB1D4bits;
+extern volatile __TXB1D4bits_t __at 0xf3a TXB1D4bits;
 
-extern sfr at 0xf3b TXB1D5;
+extern __sfr __at 0xf3b TXB1D5;
 typedef union {
        struct {
                unsigned TXB1D50:1;
@@ -957,9 +957,9 @@ typedef union {
        };
 } __TXB1D5bits_t;
 
-extern volatile __TXB1D5bits_t at 0xf3b TXB1D5bits;
+extern volatile __TXB1D5bits_t __at 0xf3b TXB1D5bits;
 
-extern sfr at 0xf3c TXB1D6;
+extern __sfr __at 0xf3c TXB1D6;
 typedef union {
        struct {
                unsigned TXB1D60:1;
@@ -973,9 +973,9 @@ typedef union {
        };
 } __TXB1D6bits_t;
 
-extern volatile __TXB1D6bits_t at 0xf3c TXB1D6bits;
+extern volatile __TXB1D6bits_t __at 0xf3c TXB1D6bits;
 
-extern sfr at 0xf3d TXB1D7;
+extern __sfr __at 0xf3d TXB1D7;
 typedef union {
        struct {
                unsigned TXB1D70:1;
@@ -989,9 +989,9 @@ typedef union {
        };
 } __TXB1D7bits_t;
 
-extern volatile __TXB1D7bits_t at 0xf3d TXB1D7bits;
+extern volatile __TXB1D7bits_t __at 0xf3d TXB1D7bits;
 
-extern sfr at 0xf3e CANSTATRO3;
+extern __sfr __at 0xf3e CANSTATRO3;
 typedef union {
        struct {
                unsigned :1;
@@ -1005,9 +1005,9 @@ typedef union {
        };
 } __CANSTATRO3bits_t;
 
-extern volatile __CANSTATRO3bits_t at 0xf3e CANSTATRO3bits;
+extern volatile __CANSTATRO3bits_t __at 0xf3e CANSTATRO3bits;
 
-extern sfr at 0xf40 TXB0CON;
+extern __sfr __at 0xf40 TXB0CON;
 typedef union {
        struct {
                unsigned TXPRI0:1;
@@ -1021,9 +1021,9 @@ typedef union {
        };
 } __TXB0CONbits_t;
 
-extern volatile __TXB0CONbits_t at 0xf40 TXB0CONbits;
+extern volatile __TXB0CONbits_t __at 0xf40 TXB0CONbits;
 
-extern sfr at 0xf41 TXB0SIDH;
+extern __sfr __at 0xf41 TXB0SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -1037,9 +1037,9 @@ typedef union {
        };
 } __TXB0SIDHbits_t;
 
-extern volatile __TXB0SIDHbits_t at 0xf41 TXB0SIDHbits;
+extern volatile __TXB0SIDHbits_t __at 0xf41 TXB0SIDHbits;
 
-extern sfr at 0xf42 TXB0SIDL;
+extern __sfr __at 0xf42 TXB0SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -1053,9 +1053,9 @@ typedef union {
        };
 } __TXB0SIDLbits_t;
 
-extern volatile __TXB0SIDLbits_t at 0xf42 TXB0SIDLbits;
+extern volatile __TXB0SIDLbits_t __at 0xf42 TXB0SIDLbits;
 
-extern sfr at 0xf43 TXB0EIDH;
+extern __sfr __at 0xf43 TXB0EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -1069,9 +1069,9 @@ typedef union {
        };
 } __TXB0EIDHbits_t;
 
-extern volatile __TXB0EIDHbits_t at 0xf43 TXB0EIDHbits;
+extern volatile __TXB0EIDHbits_t __at 0xf43 TXB0EIDHbits;
 
-extern sfr at 0xf44 TXB0EIDL;
+extern __sfr __at 0xf44 TXB0EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -1085,9 +1085,9 @@ typedef union {
        };
 } __TXB0EIDLbits_t;
 
-extern volatile __TXB0EIDLbits_t at 0xf44 TXB0EIDLbits;
+extern volatile __TXB0EIDLbits_t __at 0xf44 TXB0EIDLbits;
 
-extern sfr at 0xf45 TXB0DLC;
+extern __sfr __at 0xf45 TXB0DLC;
 typedef union {
        struct {
                unsigned DLC0:1;
@@ -1101,9 +1101,9 @@ typedef union {
        };
 } __TXB0DLCbits_t;
 
-extern volatile __TXB0DLCbits_t at 0xf45 TXB0DLCbits;
+extern volatile __TXB0DLCbits_t __at 0xf45 TXB0DLCbits;
 
-extern sfr at 0xf46 TXB0D0;
+extern __sfr __at 0xf46 TXB0D0;
 typedef union {
        struct {
                unsigned TXB0D00:1;
@@ -1117,9 +1117,9 @@ typedef union {
        };
 } __TXB0D0bits_t;
 
-extern volatile __TXB0D0bits_t at 0xf46 TXB0D0bits;
+extern volatile __TXB0D0bits_t __at 0xf46 TXB0D0bits;
 
-extern sfr at 0xf47 TXB0D1;
+extern __sfr __at 0xf47 TXB0D1;
 typedef union {
        struct {
                unsigned TXB0D10:1;
@@ -1133,9 +1133,9 @@ typedef union {
        };
 } __TXB0D1bits_t;
 
-extern volatile __TXB0D1bits_t at 0xf47 TXB0D1bits;
+extern volatile __TXB0D1bits_t __at 0xf47 TXB0D1bits;
 
-extern sfr at 0xf48 TXB0D2;
+extern __sfr __at 0xf48 TXB0D2;
 typedef union {
        struct {
                unsigned TXB0D20:1;
@@ -1149,9 +1149,9 @@ typedef union {
        };
 } __TXB0D2bits_t;
 
-extern volatile __TXB0D2bits_t at 0xf48 TXB0D2bits;
+extern volatile __TXB0D2bits_t __at 0xf48 TXB0D2bits;
 
-extern sfr at 0xf49 TXB0D3;
+extern __sfr __at 0xf49 TXB0D3;
 typedef union {
        struct {
                unsigned TXB0D30:1;
@@ -1165,9 +1165,9 @@ typedef union {
        };
 } __TXB0D3bits_t;
 
-extern volatile __TXB0D3bits_t at 0xf49 TXB0D3bits;
+extern volatile __TXB0D3bits_t __at 0xf49 TXB0D3bits;
 
-extern sfr at 0xf4a TXB0D4;
+extern __sfr __at 0xf4a TXB0D4;
 typedef union {
        struct {
                unsigned TXB0D40:1;
@@ -1181,9 +1181,9 @@ typedef union {
        };
 } __TXB0D4bits_t;
 
-extern volatile __TXB0D4bits_t at 0xf4a TXB0D4bits;
+extern volatile __TXB0D4bits_t __at 0xf4a TXB0D4bits;
 
-extern sfr at 0xf4b TXB0D5;
+extern __sfr __at 0xf4b TXB0D5;
 typedef union {
        struct {
                unsigned TXB0D50:1;
@@ -1197,9 +1197,9 @@ typedef union {
        };
 } __TXB0D5bits_t;
 
-extern volatile __TXB0D5bits_t at 0xf4b TXB0D5bits;
+extern volatile __TXB0D5bits_t __at 0xf4b TXB0D5bits;
 
-extern sfr at 0xf4c TXB0D6;
+extern __sfr __at 0xf4c TXB0D6;
 typedef union {
        struct {
                unsigned TXB0D60:1;
@@ -1213,9 +1213,9 @@ typedef union {
        };
 } __TXB0D6bits_t;
 
-extern volatile __TXB0D6bits_t at 0xf4c TXB0D6bits;
+extern volatile __TXB0D6bits_t __at 0xf4c TXB0D6bits;
 
-extern sfr at 0xf4d TXB0D7;
+extern __sfr __at 0xf4d TXB0D7;
 typedef union {
        struct {
                unsigned TXB0D70:1;
@@ -1229,9 +1229,9 @@ typedef union {
        };
 } __TXB0D7bits_t;
 
-extern volatile __TXB0D7bits_t at 0xf4d TXB0D7bits;
+extern volatile __TXB0D7bits_t __at 0xf4d TXB0D7bits;
 
-extern sfr at 0xf4e CANSTATRO2;
+extern __sfr __at 0xf4e CANSTATRO2;
 typedef union {
        struct {
                unsigned :1;
@@ -1245,9 +1245,9 @@ typedef union {
        };
 } __CANSTATRO2bits_t;
 
-extern volatile __CANSTATRO2bits_t at 0xf4e CANSTATRO2bits;
+extern volatile __CANSTATRO2bits_t __at 0xf4e CANSTATRO2bits;
 
-extern sfr at 0xf50 RXB1CON;
+extern __sfr __at 0xf50 RXB1CON;
 typedef union {
        struct {
                unsigned FILHIT0:1;
@@ -1261,9 +1261,9 @@ typedef union {
        };
 } __RXB1CONbits_t;
 
-extern volatile __RXB1CONbits_t at 0xf50 RXB1CONbits;
+extern volatile __RXB1CONbits_t __at 0xf50 RXB1CONbits;
 
-extern sfr at 0xf51 RXB1SIDH;
+extern __sfr __at 0xf51 RXB1SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -1277,9 +1277,9 @@ typedef union {
        };
 } __RXB1SIDHbits_t;
 
-extern volatile __RXB1SIDHbits_t at 0xf51 RXB1SIDHbits;
+extern volatile __RXB1SIDHbits_t __at 0xf51 RXB1SIDHbits;
 
-extern sfr at 0xf52 RXB1SIDL;
+extern __sfr __at 0xf52 RXB1SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -1293,9 +1293,9 @@ typedef union {
        };
 } __RXB1SIDLbits_t;
 
-extern volatile __RXB1SIDLbits_t at 0xf52 RXB1SIDLbits;
+extern volatile __RXB1SIDLbits_t __at 0xf52 RXB1SIDLbits;
 
-extern sfr at 0xf53 RXB1EIDH;
+extern __sfr __at 0xf53 RXB1EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -1309,9 +1309,9 @@ typedef union {
        };
 } __RXB1EIDHbits_t;
 
-extern volatile __RXB1EIDHbits_t at 0xf53 RXB1EIDHbits;
+extern volatile __RXB1EIDHbits_t __at 0xf53 RXB1EIDHbits;
 
-extern sfr at 0xf54 RXB1EIDL;
+extern __sfr __at 0xf54 RXB1EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -1325,9 +1325,9 @@ typedef union {
        };
 } __RXB1EIDLbits_t;
 
-extern volatile __RXB1EIDLbits_t at 0xf54 RXB1EIDLbits;
+extern volatile __RXB1EIDLbits_t __at 0xf54 RXB1EIDLbits;
 
-extern sfr at 0xf55 RXB1DLC;
+extern __sfr __at 0xf55 RXB1DLC;
 typedef union {
        struct {
                unsigned DLC0:1;
@@ -1341,9 +1341,9 @@ typedef union {
        };
 } __RXB1DLCbits_t;
 
-extern volatile __RXB1DLCbits_t at 0xf55 RXB1DLCbits;
+extern volatile __RXB1DLCbits_t __at 0xf55 RXB1DLCbits;
 
-extern sfr at 0xf56 RXB1D0;
+extern __sfr __at 0xf56 RXB1D0;
 typedef union {
        struct {
                unsigned RXB1D00:1;
@@ -1357,9 +1357,9 @@ typedef union {
        };
 } __RXB1D0bits_t;
 
-extern volatile __RXB1D0bits_t at 0xf56 RXB1D0bits;
+extern volatile __RXB1D0bits_t __at 0xf56 RXB1D0bits;
 
-extern sfr at 0xf57 RXB1D1;
+extern __sfr __at 0xf57 RXB1D1;
 typedef union {
        struct {
                unsigned RXB1D10:1;
@@ -1373,9 +1373,9 @@ typedef union {
        };
 } __RXB1D1bits_t;
 
-extern volatile __RXB1D1bits_t at 0xf57 RXB1D1bits;
+extern volatile __RXB1D1bits_t __at 0xf57 RXB1D1bits;
 
-extern sfr at 0xf58 RXB1D2;
+extern __sfr __at 0xf58 RXB1D2;
 typedef union {
        struct {
                unsigned RXB1D20:1;
@@ -1389,9 +1389,9 @@ typedef union {
        };
 } __RXB1D2bits_t;
 
-extern volatile __RXB1D2bits_t at 0xf58 RXB1D2bits;
+extern volatile __RXB1D2bits_t __at 0xf58 RXB1D2bits;
 
-extern sfr at 0xf59 RXB1D3;
+extern __sfr __at 0xf59 RXB1D3;
 typedef union {
        struct {
                unsigned RXB1D30:1;
@@ -1405,9 +1405,9 @@ typedef union {
        };
 } __RXB1D3bits_t;
 
-extern volatile __RXB1D3bits_t at 0xf59 RXB1D3bits;
+extern volatile __RXB1D3bits_t __at 0xf59 RXB1D3bits;
 
-extern sfr at 0xf5a RXB1D4;
+extern __sfr __at 0xf5a RXB1D4;
 typedef union {
        struct {
                unsigned RXB1D40:1;
@@ -1421,9 +1421,9 @@ typedef union {
        };
 } __RXB1D4bits_t;
 
-extern volatile __RXB1D4bits_t at 0xf5a RXB1D4bits;
+extern volatile __RXB1D4bits_t __at 0xf5a RXB1D4bits;
 
-extern sfr at 0xf5b RXB1D5;
+extern __sfr __at 0xf5b RXB1D5;
 typedef union {
        struct {
                unsigned RXB1D50:1;
@@ -1437,9 +1437,9 @@ typedef union {
        };
 } __RXB1D5bits_t;
 
-extern volatile __RXB1D5bits_t at 0xf5b RXB1D5bits;
+extern volatile __RXB1D5bits_t __at 0xf5b RXB1D5bits;
 
-extern sfr at 0xf5c RXB1D6;
+extern __sfr __at 0xf5c RXB1D6;
 typedef union {
        struct {
                unsigned RXB1D60:1;
@@ -1453,9 +1453,9 @@ typedef union {
        };
 } __RXB1D6bits_t;
 
-extern volatile __RXB1D6bits_t at 0xf5c RXB1D6bits;
+extern volatile __RXB1D6bits_t __at 0xf5c RXB1D6bits;
 
-extern sfr at 0xf5d RXB1D7;
+extern __sfr __at 0xf5d RXB1D7;
 typedef union {
        struct {
                unsigned RXB1D70:1;
@@ -1469,9 +1469,9 @@ typedef union {
        };
 } __RXB1D7bits_t;
 
-extern volatile __RXB1D7bits_t at 0xf5d RXB1D7bits;
+extern volatile __RXB1D7bits_t __at 0xf5d RXB1D7bits;
 
-extern sfr at 0xf5e CANSTATRO1;
+extern __sfr __at 0xf5e CANSTATRO1;
 typedef union {
        struct {
                unsigned :1;
@@ -1485,9 +1485,9 @@ typedef union {
        };
 } __CANSTATRO1bits_t;
 
-extern volatile __CANSTATRO1bits_t at 0xf5e CANSTATRO1bits;
+extern volatile __CANSTATRO1bits_t __at 0xf5e CANSTATRO1bits;
 
-extern sfr at 0xf60 RXB0CON;
+extern __sfr __at 0xf60 RXB0CON;
 typedef union {
        struct {
                unsigned FILHIT0:1;
@@ -1501,9 +1501,9 @@ typedef union {
        };
 } __RXB0CONbits_t;
 
-extern volatile __RXB0CONbits_t at 0xf60 RXB0CONbits;
+extern volatile __RXB0CONbits_t __at 0xf60 RXB0CONbits;
 
-extern sfr at 0xf61 RXB0SIDH;
+extern __sfr __at 0xf61 RXB0SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -1517,9 +1517,9 @@ typedef union {
        };
 } __RXB0SIDHbits_t;
 
-extern volatile __RXB0SIDHbits_t at 0xf61 RXB0SIDHbits;
+extern volatile __RXB0SIDHbits_t __at 0xf61 RXB0SIDHbits;
 
-extern sfr at 0xf62 RXB0SIDL;
+extern __sfr __at 0xf62 RXB0SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -1533,9 +1533,9 @@ typedef union {
        };
 } __RXB0SIDLbits_t;
 
-extern volatile __RXB0SIDLbits_t at 0xf62 RXB0SIDLbits;
+extern volatile __RXB0SIDLbits_t __at 0xf62 RXB0SIDLbits;
 
-extern sfr at 0xf63 RXB0EIDH;
+extern __sfr __at 0xf63 RXB0EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -1549,9 +1549,9 @@ typedef union {
        };
 } __RXB0EIDHbits_t;
 
-extern volatile __RXB0EIDHbits_t at 0xf63 RXB0EIDHbits;
+extern volatile __RXB0EIDHbits_t __at 0xf63 RXB0EIDHbits;
 
-extern sfr at 0xf64 RXB0EIDL;
+extern __sfr __at 0xf64 RXB0EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -1565,9 +1565,9 @@ typedef union {
        };
 } __RXB0EIDLbits_t;
 
-extern volatile __RXB0EIDLbits_t at 0xf64 RXB0EIDLbits;
+extern volatile __RXB0EIDLbits_t __at 0xf64 RXB0EIDLbits;
 
-extern sfr at 0xf65 RXB0DLC;
+extern __sfr __at 0xf65 RXB0DLC;
 typedef union {
        struct {
                unsigned DLC0:1;
@@ -1581,17 +1581,17 @@ typedef union {
        };
 } __RXB0DLCbits_t;
 
-extern volatile __RXB0DLCbits_t at 0xf65 RXB0DLCbits;
+extern volatile __RXB0DLCbits_t __at 0xf65 RXB0DLCbits;
 
-extern sfr at 0xf66 RXB0D0;
-extern sfr at 0xf67 RXB0D1;
-extern sfr at 0xf68 RXB0D2;
-extern sfr at 0xf69 RXB0D3;
-extern sfr at 0xf6a RXB0D4;
-extern sfr at 0xf6b RXB0D5;
-extern sfr at 0xf6c RXB0D6;
-extern sfr at 0xf6d RXB0D7;
-extern sfr at 0xf6e CANSTAT;
+extern __sfr __at 0xf66 RXB0D0;
+extern __sfr __at 0xf67 RXB0D1;
+extern __sfr __at 0xf68 RXB0D2;
+extern __sfr __at 0xf69 RXB0D3;
+extern __sfr __at 0xf6a RXB0D4;
+extern __sfr __at 0xf6b RXB0D5;
+extern __sfr __at 0xf6c RXB0D6;
+extern __sfr __at 0xf6d RXB0D7;
+extern __sfr __at 0xf6e CANSTAT;
 typedef union {
        struct {
                unsigned :1;
@@ -1605,9 +1605,9 @@ typedef union {
        };
 } __CANSTATbits_t;
 
-extern volatile __CANSTATbits_t at 0xf6e CANSTATbits;
+extern volatile __CANSTATbits_t __at 0xf6e CANSTATbits;
 
-extern sfr at 0xf6f CANCON;
+extern __sfr __at 0xf6f CANCON;
 typedef union {
        struct {
                unsigned WIN0:1;
@@ -1621,9 +1621,9 @@ typedef union {
        };
 } __CANCONbits_t;
 
-extern volatile __CANCONbits_t at 0xf6f CANCONbits;
+extern volatile __CANCONbits_t __at 0xf6f CANCONbits;
 
-extern sfr at 0xf70 BRGCON1;
+extern __sfr __at 0xf70 BRGCON1;
 typedef union {
        struct {
                unsigned BRP0:1;
@@ -1637,9 +1637,9 @@ typedef union {
        };
 } __BRGCON1bits_t;
 
-extern volatile __BRGCON1bits_t at 0xf70 BRGCON1bits;
+extern volatile __BRGCON1bits_t __at 0xf70 BRGCON1bits;
 
-extern sfr at 0xf71 BRGCON2;
+extern __sfr __at 0xf71 BRGCON2;
 typedef union {
        struct {
                unsigned PRSEG0:1;
@@ -1653,9 +1653,9 @@ typedef union {
        };
 } __BRGCON2bits_t;
 
-extern volatile __BRGCON2bits_t at 0xf71 BRGCON2bits;
+extern volatile __BRGCON2bits_t __at 0xf71 BRGCON2bits;
 
-extern sfr at 0xf72 BRGCON3;
+extern __sfr __at 0xf72 BRGCON3;
 typedef union {
        struct {
                unsigned SEG2PH0:1;
@@ -1669,9 +1669,9 @@ typedef union {
        };
 } __BRGCON3bits_t;
 
-extern volatile __BRGCON3bits_t at 0xf72 BRGCON3bits;
+extern volatile __BRGCON3bits_t __at 0xf72 BRGCON3bits;
 
-extern sfr at 0xf73 CIOCON;
+extern __sfr __at 0xf73 CIOCON;
 typedef union {
        struct {
                unsigned :1;
@@ -1685,9 +1685,9 @@ typedef union {
        };
 } __CIOCONbits_t;
 
-extern volatile __CIOCONbits_t at 0xf73 CIOCONbits;
+extern volatile __CIOCONbits_t __at 0xf73 CIOCONbits;
 
-extern sfr at 0xf74 COMSTAT;
+extern __sfr __at 0xf74 COMSTAT;
 typedef union {
        struct {
                unsigned EWARN:1;
@@ -1701,9 +1701,9 @@ typedef union {
        };
 } __COMSTATbits_t;
 
-extern volatile __COMSTATbits_t at 0xf74 COMSTATbits;
+extern volatile __COMSTATbits_t __at 0xf74 COMSTATbits;
 
-extern sfr at 0xf75 RXERRCNT;
+extern __sfr __at 0xf75 RXERRCNT;
 typedef union {
        struct {
                unsigned REC0:1;
@@ -1717,9 +1717,9 @@ typedef union {
        };
 } __RXERRCNTbits_t;
 
-extern volatile __RXERRCNTbits_t at 0xf75 RXERRCNTbits;
+extern volatile __RXERRCNTbits_t __at 0xf75 RXERRCNTbits;
 
-extern sfr at 0xf76 TXERRCNT;
+extern __sfr __at 0xf76 TXERRCNT;
 typedef union {
        struct {
                unsigned TEC0:1;
@@ -1733,9 +1733,9 @@ typedef union {
        };
 } __TXERRCNTbits_t;
 
-extern volatile __TXERRCNTbits_t at 0xf76 TXERRCNTbits;
+extern volatile __TXERRCNTbits_t __at 0xf76 TXERRCNTbits;
 
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf80 PORTA;
 typedef union {
        struct {
                unsigned RA0:1;
@@ -1782,9 +1782,9 @@ typedef union {
        };
 } __PORTAbits_t;
 
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
 
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
 typedef union {
        struct {
                unsigned RB0:1;
@@ -1809,9 +1809,9 @@ typedef union {
        };
 } __PORTBbits_t;
 
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
 
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
 typedef union {
        struct {
                unsigned RC0:1;
@@ -1847,9 +1847,9 @@ typedef union {
        };
 } __PORTCbits_t;
 
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
 
-extern sfr at 0xf83 PORTD;
+extern __sfr __at 0xf83 PORTD;
 typedef union {
        struct {
                unsigned RD0:1;
@@ -1874,9 +1874,9 @@ typedef union {
        };
 } __PORTDbits_t;
 
-extern volatile __PORTDbits_t at 0xf83 PORTDbits;
+extern volatile __PORTDbits_t __at 0xf83 PORTDbits;
 
-extern sfr at 0xf84 PORTE;
+extern __sfr __at 0xf84 PORTE;
 typedef union {
        struct {
                unsigned RE0:1;
@@ -1912,9 +1912,9 @@ typedef union {
        };
 } __PORTEbits_t;
 
-extern volatile __PORTEbits_t at 0xf84 PORTEbits;
+extern volatile __PORTEbits_t __at 0xf84 PORTEbits;
 
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
 typedef union {
        struct {
                unsigned LATA0:1;
@@ -1928,9 +1928,9 @@ typedef union {
        };
 } __LATAbits_t;
 
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
 
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
 typedef union {
        struct {
                unsigned LATB0:1;
@@ -1944,9 +1944,9 @@ typedef union {
        };
 } __LATBbits_t;
 
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
 
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
 typedef union {
        struct {
                unsigned LATC0:1;
@@ -1960,9 +1960,9 @@ typedef union {
        };
 } __LATCbits_t;
 
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
 
-extern sfr at 0xf8c LATD;
+extern __sfr __at 0xf8c LATD;
 typedef union {
        struct {
                unsigned LATD0:1;
@@ -1976,9 +1976,9 @@ typedef union {
        };
 } __LATDbits_t;
 
-extern volatile __LATDbits_t at 0xf8c LATDbits;
+extern volatile __LATDbits_t __at 0xf8c LATDbits;
 
-extern sfr at 0xf8d LATE;
+extern __sfr __at 0xf8d LATE;
 typedef union {
        struct {
                unsigned LATE0:1;
@@ -1992,9 +1992,9 @@ typedef union {
        };
 } __LATEbits_t;
 
-extern volatile __LATEbits_t at 0xf8d LATEbits;
+extern volatile __LATEbits_t __at 0xf8d LATEbits;
 
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
 typedef union {
        struct {
                unsigned TRISA0:1;
@@ -2008,9 +2008,9 @@ typedef union {
        };
 } __TRISAbits_t;
 
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
 
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
 typedef union {
        struct {
                unsigned TRISB0:1;
@@ -2024,9 +2024,9 @@ typedef union {
        };
 } __TRISBbits_t;
 
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
 
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
 typedef union {
        struct {
                unsigned TRISC0:1;
@@ -2040,9 +2040,9 @@ typedef union {
        };
 } __TRISCbits_t;
 
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
 
-extern sfr at 0xf95 TRISD;
+extern __sfr __at 0xf95 TRISD;
 typedef union {
        struct {
                unsigned TRISD0:1;
@@ -2056,9 +2056,9 @@ typedef union {
        };
 } __TRISDbits_t;
 
-extern volatile __TRISDbits_t at 0xf95 TRISDbits;
+extern volatile __TRISDbits_t __at 0xf95 TRISDbits;
 
-extern sfr at 0xf96 TRISE;
+extern __sfr __at 0xf96 TRISE;
 typedef union {
        struct {
                unsigned :1;
@@ -2072,9 +2072,9 @@ typedef union {
        };
 } __TRISEbits_t;
 
-extern volatile __TRISEbits_t at 0xf96 TRISEbits;
+extern volatile __TRISEbits_t __at 0xf96 TRISEbits;
 
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
 typedef union {
        struct {
                unsigned TMR1IE:1;
@@ -2088,9 +2088,9 @@ typedef union {
        };
 } __PIE1bits_t;
 
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
 
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
 typedef union {
        struct {
                unsigned TMR1IF:1;
@@ -2104,9 +2104,9 @@ typedef union {
        };
 } __PIR1bits_t;
 
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
 
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
 typedef union {
        struct {
                unsigned TMR1IP:1;
@@ -2120,9 +2120,9 @@ typedef union {
        };
 } __IPR1bits_t;
 
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
 
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
 typedef union {
        struct {
                unsigned CCP2IE:1;
@@ -2136,9 +2136,9 @@ typedef union {
        };
 } __PIE2bits_t;
 
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
 
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
 typedef union {
        struct {
                unsigned CCP2IF:1;
@@ -2152,9 +2152,9 @@ typedef union {
        };
 } __PIR2bits_t;
 
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
 
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
 typedef union {
        struct {
                unsigned CCP2IP:1;
@@ -2168,9 +2168,9 @@ typedef union {
        };
 } __IPR2bits_t;
 
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
 
-extern sfr at 0xfa3 PIE3;
+extern __sfr __at 0xfa3 PIE3;
 typedef union {
        struct {
                unsigned RX0IE:1;
@@ -2184,9 +2184,9 @@ typedef union {
        };
 } __PIE3bits_t;
 
-extern volatile __PIE3bits_t at 0xfa3 PIE3bits;
+extern volatile __PIE3bits_t __at 0xfa3 PIE3bits;
 
-extern sfr at 0xfa4 PIR3;
+extern __sfr __at 0xfa4 PIR3;
 typedef union {
        struct {
                unsigned RX0IF:1;
@@ -2200,9 +2200,9 @@ typedef union {
        };
 } __PIR3bits_t;
 
-extern volatile __PIR3bits_t at 0xfa4 PIR3bits;
+extern volatile __PIR3bits_t __at 0xfa4 PIR3bits;
 
-extern sfr at 0xfa5 IPR3;
+extern __sfr __at 0xfa5 IPR3;
 typedef union {
        struct {
                unsigned RX0IP:1;
@@ -2216,9 +2216,9 @@ typedef union {
        };
 } __IPR3bits_t;
 
-extern volatile __IPR3bits_t at 0xfa5 IPR3bits;
+extern volatile __IPR3bits_t __at 0xfa5 IPR3bits;
 
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
 typedef union {
        struct {
                unsigned RD:1;
@@ -2232,12 +2232,12 @@ typedef union {
        };
 } __EECON1bits_t;
 
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
 
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfab RCSTA;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfab RCSTA;
 typedef union {
        struct {
                unsigned RX9D:1;
@@ -2251,9 +2251,9 @@ typedef union {
        };
 } __RCSTAbits_t;
 
-extern volatile __RCSTAbits_t at 0xfab RCSTAbits;
+extern volatile __RCSTAbits_t __at 0xfab RCSTAbits;
 
-extern sfr at 0xfac TXSTA;
+extern __sfr __at 0xfac TXSTA;
 typedef union {
        struct {
                unsigned TX9D:1;
@@ -2267,12 +2267,12 @@ typedef union {
        };
 } __TXSTAbits_t;
 
-extern volatile __TXSTAbits_t at 0xfac TXSTAbits;
+extern volatile __TXSTAbits_t __at 0xfac TXSTAbits;
 
-extern sfr at 0xfad TXREG;
-extern sfr at 0xfae RCREG;
-extern sfr at 0xfaf SPBRG;
-extern sfr at 0xfb0 PSPCON;
+extern __sfr __at 0xfad TXREG;
+extern __sfr __at 0xfae RCREG;
+extern __sfr __at 0xfaf SPBRG;
+extern __sfr __at 0xfb0 PSPCON;
 typedef union {
        struct {
                unsigned :1;
@@ -2286,9 +2286,9 @@ typedef union {
        };
 } __PSPCONbits_t;
 
-extern volatile __PSPCONbits_t at 0xfb0 PSPCONbits;
+extern volatile __PSPCONbits_t __at 0xfb0 PSPCONbits;
 
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfb1 T3CON;
 typedef union {
        struct {
                unsigned TMR3ON:1;
@@ -2302,11 +2302,11 @@ typedef union {
        };
 } __T3CONbits_t;
 
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
 
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfb4 CMCON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfb4 CMCON;
 typedef union {
        struct {
                unsigned CM0:1;
@@ -2320,9 +2320,9 @@ typedef union {
        };
 } __CMCONbits_t;
 
-extern volatile __CMCONbits_t at 0xfb4 CMCONbits;
+extern volatile __CMCONbits_t __at 0xfb4 CMCONbits;
 
-extern sfr at 0xfb5 CVRCON;
+extern __sfr __at 0xfb5 CVRCON;
 typedef union {
        struct {
                unsigned CVR0:1;
@@ -2336,9 +2336,9 @@ typedef union {
        };
 } __CVRCONbits_t;
 
-extern volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
+extern volatile __CVRCONbits_t __at 0xfb5 CVRCONbits;
 
-extern sfr at 0xfb6 ECCPAS;
+extern __sfr __at 0xfb6 ECCPAS;
 typedef union {
        struct {
                unsigned PSSBD0:1;
@@ -2352,9 +2352,9 @@ typedef union {
        };
 } __ECCPASbits_t;
 
-extern volatile __ECCPASbits_t at 0xfb6 ECCPASbits;
+extern volatile __ECCPASbits_t __at 0xfb6 ECCPASbits;
 
-extern sfr at 0xfb7 ECCP1DEL;
+extern __sfr __at 0xfb7 ECCP1DEL;
 typedef union {
        struct {
                unsigned EPDC0:1;
@@ -2368,9 +2368,9 @@ typedef union {
        };
 } __ECCP1DELbits_t;
 
-extern volatile __ECCP1DELbits_t at 0xfb7 ECCP1DELbits;
+extern volatile __ECCP1DELbits_t __at 0xfb7 ECCP1DELbits;
 
-extern sfr at 0xfba ECCP1CON;
+extern __sfr __at 0xfba ECCP1CON;
 typedef union {
        struct {
                unsigned ECCP1M0:1;
@@ -2384,11 +2384,11 @@ typedef union {
        };
 } __ECCP1CONbits_t;
 
-extern volatile __ECCP1CONbits_t at 0xfba ECCP1CONbits;
+extern volatile __ECCP1CONbits_t __at 0xfba ECCP1CONbits;
 
-extern sfr at 0xfbb ECCPR1L;
-extern sfr at 0xfbc ECCPR1H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb ECCPR1L;
+extern __sfr __at 0xfbc ECCPR1H;
+extern __sfr __at 0xfbd CCP1CON;
 typedef union {
        struct {
                unsigned CCP1M0:1;
@@ -2402,11 +2402,11 @@ typedef union {
        };
 } __CCP1CONbits_t;
 
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
 
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc1 ADCON1;
 typedef union {
        struct {
                unsigned PCFG0:1;
@@ -2420,9 +2420,9 @@ typedef union {
        };
 } __ADCON1bits_t;
 
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
 
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
 typedef union {
        struct {
                unsigned ADON:1;
@@ -2436,11 +2436,11 @@ typedef union {
        };
 } __ADCON0bits_t;
 
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
 
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
 typedef union {
        struct {
                unsigned SEN:1;
@@ -2454,9 +2454,9 @@ typedef union {
        };
 } __SSPCON2bits_t;
 
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
 
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
 typedef union {
        struct {
                unsigned SSPM0:1;
@@ -2470,9 +2470,9 @@ typedef union {
        };
 } __SSPCON1bits_t;
 
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
 
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
 typedef union {
        struct {
                unsigned BF:1;
@@ -2486,11 +2486,11 @@ typedef union {
        };
 } __SSPSTATbits_t;
 
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
 
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
 typedef union {
        struct {
                unsigned T2CKPS0:1;
@@ -2504,11 +2504,11 @@ typedef union {
        };
 } __T2CONbits_t;
 
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
 
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
 typedef union {
        struct {
                unsigned TMR1ON:1;
@@ -2522,11 +2522,11 @@ typedef union {
        };
 } __T1CONbits_t;
 
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
 
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
 typedef union {
        struct {
                unsigned BOR:1;
@@ -2540,9 +2540,9 @@ typedef union {
        };
 } __RCONbits_t;
 
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
 
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
 typedef union {
        struct {
                unsigned SWDTEN:1;
@@ -2567,9 +2567,9 @@ typedef union {
        };
 } __WDTCONbits_t;
 
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
 
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
 typedef union {
        struct {
                unsigned LVDL0:1;
@@ -2594,9 +2594,9 @@ typedef union {
        };
 } __LVDCONbits_t;
 
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
 
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
 typedef union {
        struct {
                unsigned SCS:1;
@@ -2610,12 +2610,12 @@ typedef union {
        };
 } __OSCCONbits_t;
 
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
 
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
 typedef union {
        struct {
                unsigned C:1;
@@ -2629,32 +2629,32 @@ typedef union {
        };
 } __STATUSbits_t;
 
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
 typedef union {
        struct {
                unsigned INT1F:1;
@@ -2679,9 +2679,9 @@ typedef union {
        };
 } __INTCON3bits_t;
 
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
 
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
 typedef union {
        struct {
                unsigned RBIP:1;
@@ -2695,9 +2695,9 @@ typedef union {
        };
 } __INTCON2bits_t;
 
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
 
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
 typedef union {
        struct {
                unsigned RBIF:1;
@@ -2711,18 +2711,18 @@ typedef union {
        };
 } __INTCONbits_t;
 
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
 
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
 typedef union {
        struct {
                unsigned STKPTR0:1;
@@ -2736,11 +2736,11 @@ typedef union {
        };
 } __STKPTRbits_t;
 
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
 
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
 
 
 /* Configuration registers locations */
index ea7d53a092ccd9c76461fb5d630bcf0ffbee13f8..6d0329aaf08dd474baba8e01fb12de2525e78416 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef __PIC18F452_H__
 #define __PIC18F452_H__
 
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf80 PORTA;
 typedef union {
        struct {
                unsigned RA0:1;
@@ -62,9 +62,9 @@ typedef union {
        };
 } __PORTAbits_t;
 
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
 
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
 typedef union {
        struct {
                unsigned RB0:1;
@@ -89,9 +89,9 @@ typedef union {
        };
 } __PORTBbits_t;
 
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
 
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
 typedef union {
        struct {
                unsigned RC0:1;
@@ -127,9 +127,9 @@ typedef union {
        };
 } __PORTCbits_t;
 
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
 
-extern sfr at 0xf83 PORTD;
+extern __sfr __at 0xf83 PORTD;
 typedef union {
        struct {
                unsigned RD0:1;
@@ -154,9 +154,9 @@ typedef union {
        };
 } __PORTDbits_t;
 
-extern volatile __PORTDbits_t at 0xf83 PORTDbits;
+extern volatile __PORTDbits_t __at 0xf83 PORTDbits;
 
-extern sfr at 0xf84 PORTE;
+extern __sfr __at 0xf84 PORTE;
 typedef union {
        struct {
                unsigned RE0:1;
@@ -192,9 +192,9 @@ typedef union {
        };
 } __PORTEbits_t;
 
-extern volatile __PORTEbits_t at 0xf84 PORTEbits;
+extern volatile __PORTEbits_t __at 0xf84 PORTEbits;
 
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
 typedef union {
        struct {
                unsigned LATA0:1;
@@ -208,9 +208,9 @@ typedef union {
        };
 } __LATAbits_t;
 
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
 
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
 typedef union {
        struct {
                unsigned LATB0:1;
@@ -224,9 +224,9 @@ typedef union {
        };
 } __LATBbits_t;
 
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
 
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
 typedef union {
        struct {
                unsigned LATC0:1;
@@ -240,9 +240,9 @@ typedef union {
        };
 } __LATCbits_t;
 
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
 
-extern sfr at 0xf8c LATD;
+extern __sfr __at 0xf8c LATD;
 typedef union {
        struct {
                unsigned LATD0:1;
@@ -256,9 +256,9 @@ typedef union {
        };
 } __LATDbits_t;
 
-extern volatile __LATDbits_t at 0xf8c LATDbits;
+extern volatile __LATDbits_t __at 0xf8c LATDbits;
 
-extern sfr at 0xf8d LATE;
+extern __sfr __at 0xf8d LATE;
 typedef union {
        struct {
                unsigned LATE0:1;
@@ -272,9 +272,9 @@ typedef union {
        };
 } __LATEbits_t;
 
-extern volatile __LATEbits_t at 0xf8d LATEbits;
+extern volatile __LATEbits_t __at 0xf8d LATEbits;
 
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
 typedef union {
        struct {
                unsigned TRISA0:1;
@@ -288,9 +288,9 @@ typedef union {
        };
 } __TRISAbits_t;
 
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
 
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
 typedef union {
        struct {
                unsigned TRISB0:1;
@@ -304,9 +304,9 @@ typedef union {
        };
 } __TRISBbits_t;
 
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
 
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
 typedef union {
        struct {
                unsigned TRISC0:1;
@@ -320,9 +320,9 @@ typedef union {
        };
 } __TRISCbits_t;
 
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
 
-extern sfr at 0xf95 TRISD;
+extern __sfr __at 0xf95 TRISD;
 typedef union {
        struct {
                unsigned TRISD0:1;
@@ -336,9 +336,9 @@ typedef union {
        };
 } __TRISDbits_t;
 
-extern volatile __TRISDbits_t at 0xf95 TRISDbits;
+extern volatile __TRISDbits_t __at 0xf95 TRISDbits;
 
-extern sfr at 0xf96 TRISE;
+extern __sfr __at 0xf96 TRISE;
 typedef union {
        struct {
                unsigned :1;
@@ -352,9 +352,9 @@ typedef union {
        };
 } __TRISEbits_t;
 
-extern volatile __TRISEbits_t at 0xf96 TRISEbits;
+extern volatile __TRISEbits_t __at 0xf96 TRISEbits;
 
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
 typedef union {
        struct {
                unsigned TMR1IE:1;
@@ -368,9 +368,9 @@ typedef union {
        };
 } __PIE1bits_t;
 
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
 
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
 typedef union {
        struct {
                unsigned TMR1IF:1;
@@ -384,9 +384,9 @@ typedef union {
        };
 } __PIR1bits_t;
 
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
 
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
 typedef union {
        struct {
                unsigned TMR1IP:1;
@@ -400,9 +400,9 @@ typedef union {
        };
 } __IPR1bits_t;
 
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
 
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
 typedef union {
        struct {
                unsigned CCP2IE:1;
@@ -416,9 +416,9 @@ typedef union {
        };
 } __PIE2bits_t;
 
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
 
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
 typedef union {
        struct {
                unsigned CCP2IF:1;
@@ -432,9 +432,9 @@ typedef union {
        };
 } __PIR2bits_t;
 
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
 
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
 typedef union {
        struct {
                unsigned CCP2IP:1;
@@ -448,9 +448,9 @@ typedef union {
        };
 } __IPR2bits_t;
 
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
 
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
 typedef union {
        struct {
                unsigned RD:1;
@@ -464,12 +464,12 @@ typedef union {
        };
 } __EECON1bits_t;
 
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
 
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfab RCSTA;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfab RCSTA;
 typedef union {
        struct {
                unsigned RX9D:1;
@@ -483,9 +483,9 @@ typedef union {
        };
 } __RCSTAbits_t;
 
-extern volatile __RCSTAbits_t at 0xfab RCSTAbits;
+extern volatile __RCSTAbits_t __at 0xfab RCSTAbits;
 
-extern sfr at 0xfac TXSTA;
+extern __sfr __at 0xfac TXSTA;
 typedef union {
        struct {
                unsigned TX9D:1;
@@ -499,12 +499,12 @@ typedef union {
        };
 } __TXSTAbits_t;
 
-extern volatile __TXSTAbits_t at 0xfac TXSTAbits;
+extern volatile __TXSTAbits_t __at 0xfac TXSTAbits;
 
-extern sfr at 0xfad TXREG;
-extern sfr at 0xfae RCREG;
-extern sfr at 0xfaf SPBRG;
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfad TXREG;
+extern __sfr __at 0xfae RCREG;
+extern __sfr __at 0xfaf SPBRG;
+extern __sfr __at 0xfb1 T3CON;
 typedef union {
        struct {
                unsigned TMR3ON:1;
@@ -518,11 +518,11 @@ typedef union {
        };
 } __T3CONbits_t;
 
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
 
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfba CCP2CON;
 typedef union {
        struct {
                unsigned CCP2M0:1;
@@ -536,11 +536,11 @@ typedef union {
        };
 } __CCP2CONbits_t;
 
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
 
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfbd CCP1CON;
 typedef union {
        struct {
                unsigned CCP1M0:1;
@@ -554,11 +554,11 @@ typedef union {
        };
 } __CCP1CONbits_t;
 
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
 
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc1 ADCON1;
 typedef union {
        struct {
                unsigned PCFG0:1;
@@ -572,9 +572,9 @@ typedef union {
        };
 } __ADCON1bits_t;
 
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
 
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
 typedef union {
        struct {
                unsigned ADON:1;
@@ -588,11 +588,11 @@ typedef union {
        };
 } __ADCON0bits_t;
 
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
 
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
 typedef union {
        struct {
                unsigned SEN:1;
@@ -606,9 +606,9 @@ typedef union {
        };
 } __SSPCON2bits_t;
 
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
 
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
 typedef union {
        struct {
                unsigned SSPM0:1;
@@ -622,9 +622,9 @@ typedef union {
        };
 } __SSPCON1bits_t;
 
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
 
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
 typedef union {
        struct {
                unsigned BF:1;
@@ -638,11 +638,11 @@ typedef union {
        };
 } __SSPSTATbits_t;
 
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
 
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
 typedef union {
        struct {
                unsigned T2CKPS0:1;
@@ -656,11 +656,11 @@ typedef union {
        };
 } __T2CONbits_t;
 
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
 
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
 typedef union {
        struct {
                unsigned TMR1ON:1;
@@ -674,11 +674,11 @@ typedef union {
        };
 } __T1CONbits_t;
 
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
 
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
 typedef union {
        struct {
                unsigned BOR:1;
@@ -692,9 +692,9 @@ typedef union {
        };
 } __RCONbits_t;
 
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
 
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
 typedef union {
        struct {
                unsigned SWDTEN:1;
@@ -719,9 +719,9 @@ typedef union {
        };
 } __WDTCONbits_t;
 
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
 
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
 typedef union {
        struct {
                unsigned LVDL0:1;
@@ -746,9 +746,9 @@ typedef union {
        };
 } __LVDCONbits_t;
 
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
 
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
 typedef union {
        struct {
                unsigned SCS:1;
@@ -762,9 +762,9 @@ typedef union {
        };
 } __OSCCONbits_t;
 
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
 
-extern sfr at 0xfd5 T0CON;
+extern __sfr __at 0xfd5 T0CON;
 typedef union {
        struct {
                unsigned T0PS0:1;
@@ -778,11 +778,11 @@ typedef union {
        };
 } __T0CONbits_t;
 
-extern volatile __T0CONbits_t at 0xfd5 T0CONbits;
+extern volatile __T0CONbits_t __at 0xfd5 T0CONbits;
 
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
 typedef union {
        struct {
                unsigned C:1;
@@ -796,32 +796,32 @@ typedef union {
        };
 } __STATUSbits_t;
 
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
 typedef union {
        struct {
                unsigned INT1F:1;
@@ -846,9 +846,9 @@ typedef union {
        };
 } __INTCON3bits_t;
 
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
 
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
 typedef union {
        struct {
                unsigned RBIP:1;
@@ -862,9 +862,9 @@ typedef union {
        };
 } __INTCON2bits_t;
 
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
 
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
 typedef union {
        struct {
                unsigned RBIF:1;
@@ -878,18 +878,18 @@ typedef union {
        };
 } __INTCONbits_t;
 
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
-
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
+
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
 typedef union {
        struct {
                unsigned STKPTR0:1;
@@ -903,11 +903,11 @@ typedef union {
        };
 } __STKPTRbits_t;
 
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
 
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
 
 
 /* Configuration registers locations */
index 3af1d0c91383cd9c5233b0c456543924ac92bbda..307f3d1264cd0d3f106f976c5abeb0b1e1ed4e41 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef __PIC18F458_H__
 #define __PIC18F458_H__
 
-extern sfr at 0xf00 RXF0SIDH;
+extern __sfr __at 0xf00 RXF0SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -29,9 +29,9 @@ typedef union {
        };
 } __RXF0SIDHbits_t;
 
-extern volatile __RXF0SIDHbits_t at 0xf00 RXF0SIDHbits;
+extern volatile __RXF0SIDHbits_t __at 0xf00 RXF0SIDHbits;
 
-extern sfr at 0xf01 RXF0SIDL;
+extern __sfr __at 0xf01 RXF0SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -45,9 +45,9 @@ typedef union {
        };
 } __RXF0SIDLbits_t;
 
-extern volatile __RXF0SIDLbits_t at 0xf01 RXF0SIDLbits;
+extern volatile __RXF0SIDLbits_t __at 0xf01 RXF0SIDLbits;
 
-extern sfr at 0xf02 RXF0EIDH;
+extern __sfr __at 0xf02 RXF0EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -61,9 +61,9 @@ typedef union {
        };
 } __RXF0EIDHbits_t;
 
-extern volatile __RXF0EIDHbits_t at 0xf02 RXF0EIDHbits;
+extern volatile __RXF0EIDHbits_t __at 0xf02 RXF0EIDHbits;
 
-extern sfr at 0xf03 RXF0EIDL;
+extern __sfr __at 0xf03 RXF0EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -77,9 +77,9 @@ typedef union {
        };
 } __RXF0EIDLbits_t;
 
-extern volatile __RXF0EIDLbits_t at 0xf03 RXF0EIDLbits;
+extern volatile __RXF0EIDLbits_t __at 0xf03 RXF0EIDLbits;
 
-extern sfr at 0xf04 RXF1SIDH;
+extern __sfr __at 0xf04 RXF1SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -93,9 +93,9 @@ typedef union {
        };
 } __RXF1SIDHbits_t;
 
-extern volatile __RXF1SIDHbits_t at 0xf04 RXF1SIDHbits;
+extern volatile __RXF1SIDHbits_t __at 0xf04 RXF1SIDHbits;
 
-extern sfr at 0xf05 RXF1SIDL;
+extern __sfr __at 0xf05 RXF1SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -109,9 +109,9 @@ typedef union {
        };
 } __RXF1SIDLbits_t;
 
-extern volatile __RXF1SIDLbits_t at 0xf05 RXF1SIDLbits;
+extern volatile __RXF1SIDLbits_t __at 0xf05 RXF1SIDLbits;
 
-extern sfr at 0xf06 RXF1EIDH;
+extern __sfr __at 0xf06 RXF1EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -125,9 +125,9 @@ typedef union {
        };
 } __RXF1EIDHbits_t;
 
-extern volatile __RXF1EIDHbits_t at 0xf06 RXF1EIDHbits;
+extern volatile __RXF1EIDHbits_t __at 0xf06 RXF1EIDHbits;
 
-extern sfr at 0xf07 RXF1EIDL;
+extern __sfr __at 0xf07 RXF1EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -141,9 +141,9 @@ typedef union {
        };
 } __RXF1EIDLbits_t;
 
-extern volatile __RXF1EIDLbits_t at 0xf07 RXF1EIDLbits;
+extern volatile __RXF1EIDLbits_t __at 0xf07 RXF1EIDLbits;
 
-extern sfr at 0xf08 RXF2SIDH;
+extern __sfr __at 0xf08 RXF2SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -157,9 +157,9 @@ typedef union {
        };
 } __RXF2SIDHbits_t;
 
-extern volatile __RXF2SIDHbits_t at 0xf08 RXF2SIDHbits;
+extern volatile __RXF2SIDHbits_t __at 0xf08 RXF2SIDHbits;
 
-extern sfr at 0xf09 RXF2SIDL;
+extern __sfr __at 0xf09 RXF2SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -173,9 +173,9 @@ typedef union {
        };
 } __RXF2SIDLbits_t;
 
-extern volatile __RXF2SIDLbits_t at 0xf09 RXF2SIDLbits;
+extern volatile __RXF2SIDLbits_t __at 0xf09 RXF2SIDLbits;
 
-extern sfr at 0xf0a RXF2EIDH;
+extern __sfr __at 0xf0a RXF2EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -189,9 +189,9 @@ typedef union {
        };
 } __RXF2EIDHbits_t;
 
-extern volatile __RXF2EIDHbits_t at 0xf0a RXF2EIDHbits;
+extern volatile __RXF2EIDHbits_t __at 0xf0a RXF2EIDHbits;
 
-extern sfr at 0xf0b RXF2EIDL;
+extern __sfr __at 0xf0b RXF2EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -205,9 +205,9 @@ typedef union {
        };
 } __RXF2EIDLbits_t;
 
-extern volatile __RXF2EIDLbits_t at 0xf0b RXF2EIDLbits;
+extern volatile __RXF2EIDLbits_t __at 0xf0b RXF2EIDLbits;
 
-extern sfr at 0xf0c RXF3SIDH;
+extern __sfr __at 0xf0c RXF3SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -221,9 +221,9 @@ typedef union {
        };
 } __RXF3SIDHbits_t;
 
-extern volatile __RXF3SIDHbits_t at 0xf0c RXF3SIDHbits;
+extern volatile __RXF3SIDHbits_t __at 0xf0c RXF3SIDHbits;
 
-extern sfr at 0xf0d RXF3SIDL;
+extern __sfr __at 0xf0d RXF3SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -237,9 +237,9 @@ typedef union {
        };
 } __RXF3SIDLbits_t;
 
-extern volatile __RXF3SIDLbits_t at 0xf0d RXF3SIDLbits;
+extern volatile __RXF3SIDLbits_t __at 0xf0d RXF3SIDLbits;
 
-extern sfr at 0xf0e RXF3EIDH;
+extern __sfr __at 0xf0e RXF3EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -253,9 +253,9 @@ typedef union {
        };
 } __RXF3EIDHbits_t;
 
-extern volatile __RXF3EIDHbits_t at 0xf0e RXF3EIDHbits;
+extern volatile __RXF3EIDHbits_t __at 0xf0e RXF3EIDHbits;
 
-extern sfr at 0xf0f RXF3EIDL;
+extern __sfr __at 0xf0f RXF3EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -269,9 +269,9 @@ typedef union {
        };
 } __RXF3EIDLbits_t;
 
-extern volatile __RXF3EIDLbits_t at 0xf0f RXF3EIDLbits;
+extern volatile __RXF3EIDLbits_t __at 0xf0f RXF3EIDLbits;
 
-extern sfr at 0xf10 RXF4SIDH;
+extern __sfr __at 0xf10 RXF4SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -285,9 +285,9 @@ typedef union {
        };
 } __RXF4SIDHbits_t;
 
-extern volatile __RXF4SIDHbits_t at 0xf10 RXF4SIDHbits;
+extern volatile __RXF4SIDHbits_t __at 0xf10 RXF4SIDHbits;
 
-extern sfr at 0xf11 RXF4SIDL;
+extern __sfr __at 0xf11 RXF4SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -301,9 +301,9 @@ typedef union {
        };
 } __RXF4SIDLbits_t;
 
-extern volatile __RXF4SIDLbits_t at 0xf11 RXF4SIDLbits;
+extern volatile __RXF4SIDLbits_t __at 0xf11 RXF4SIDLbits;
 
-extern sfr at 0xf12 RXF4EIDH;
+extern __sfr __at 0xf12 RXF4EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -317,9 +317,9 @@ typedef union {
        };
 } __RXF4EIDHbits_t;
 
-extern volatile __RXF4EIDHbits_t at 0xf12 RXF4EIDHbits;
+extern volatile __RXF4EIDHbits_t __at 0xf12 RXF4EIDHbits;
 
-extern sfr at 0xf13 RXF4EIDL;
+extern __sfr __at 0xf13 RXF4EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -333,9 +333,9 @@ typedef union {
        };
 } __RXF4EIDLbits_t;
 
-extern volatile __RXF4EIDLbits_t at 0xf13 RXF4EIDLbits;
+extern volatile __RXF4EIDLbits_t __at 0xf13 RXF4EIDLbits;
 
-extern sfr at 0xf14 RXF5SIDH;
+extern __sfr __at 0xf14 RXF5SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -349,9 +349,9 @@ typedef union {
        };
 } __RXF5SIDHbits_t;
 
-extern volatile __RXF5SIDHbits_t at 0xf14 RXF5SIDHbits;
+extern volatile __RXF5SIDHbits_t __at 0xf14 RXF5SIDHbits;
 
-extern sfr at 0xf15 RXF5SIDL;
+extern __sfr __at 0xf15 RXF5SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -365,9 +365,9 @@ typedef union {
        };
 } __RXF5SIDLbits_t;
 
-extern volatile __RXF5SIDLbits_t at 0xf15 RXF5SIDLbits;
+extern volatile __RXF5SIDLbits_t __at 0xf15 RXF5SIDLbits;
 
-extern sfr at 0xf16 RXF5EIDH;
+extern __sfr __at 0xf16 RXF5EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -381,9 +381,9 @@ typedef union {
        };
 } __RXF5EIDHbits_t;
 
-extern volatile __RXF5EIDHbits_t at 0xf16 RXF5EIDHbits;
+extern volatile __RXF5EIDHbits_t __at 0xf16 RXF5EIDHbits;
 
-extern sfr at 0xf17 RXF5EIDL;
+extern __sfr __at 0xf17 RXF5EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -397,9 +397,9 @@ typedef union {
        };
 } __RXF5EIDLbits_t;
 
-extern volatile __RXF5EIDLbits_t at 0xf17 RXF5EIDLbits;
+extern volatile __RXF5EIDLbits_t __at 0xf17 RXF5EIDLbits;
 
-extern sfr at 0xf18 RXM0SIDH;
+extern __sfr __at 0xf18 RXM0SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -413,9 +413,9 @@ typedef union {
        };
 } __RXM0SIDHbits_t;
 
-extern volatile __RXM0SIDHbits_t at 0xf18 RXM0SIDHbits;
+extern volatile __RXM0SIDHbits_t __at 0xf18 RXM0SIDHbits;
 
-extern sfr at 0xf19 RXM0SIDL;
+extern __sfr __at 0xf19 RXM0SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -429,9 +429,9 @@ typedef union {
        };
 } __RXM0SIDLbits_t;
 
-extern volatile __RXM0SIDLbits_t at 0xf19 RXM0SIDLbits;
+extern volatile __RXM0SIDLbits_t __at 0xf19 RXM0SIDLbits;
 
-extern sfr at 0xf1a RXM0EIDH;
+extern __sfr __at 0xf1a RXM0EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -445,9 +445,9 @@ typedef union {
        };
 } __RXM0EIDHbits_t;
 
-extern volatile __RXM0EIDHbits_t at 0xf1a RXM0EIDHbits;
+extern volatile __RXM0EIDHbits_t __at 0xf1a RXM0EIDHbits;
 
-extern sfr at 0xf1b RXM0EIDL;
+extern __sfr __at 0xf1b RXM0EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -461,9 +461,9 @@ typedef union {
        };
 } __RXM0EIDLbits_t;
 
-extern volatile __RXM0EIDLbits_t at 0xf1b RXM0EIDLbits;
+extern volatile __RXM0EIDLbits_t __at 0xf1b RXM0EIDLbits;
 
-extern sfr at 0xf1c RXM1SIDH;
+extern __sfr __at 0xf1c RXM1SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -477,9 +477,9 @@ typedef union {
        };
 } __RXM1SIDHbits_t;
 
-extern volatile __RXM1SIDHbits_t at 0xf1c RXM1SIDHbits;
+extern volatile __RXM1SIDHbits_t __at 0xf1c RXM1SIDHbits;
 
-extern sfr at 0xf1d RXM1SIDL;
+extern __sfr __at 0xf1d RXM1SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -493,9 +493,9 @@ typedef union {
        };
 } __RXM1SIDLbits_t;
 
-extern volatile __RXM1SIDLbits_t at 0xf1d RXM1SIDLbits;
+extern volatile __RXM1SIDLbits_t __at 0xf1d RXM1SIDLbits;
 
-extern sfr at 0xf1e RXM1EIDH;
+extern __sfr __at 0xf1e RXM1EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -509,9 +509,9 @@ typedef union {
        };
 } __RXM1EIDHbits_t;
 
-extern volatile __RXM1EIDHbits_t at 0xf1e RXM1EIDHbits;
+extern volatile __RXM1EIDHbits_t __at 0xf1e RXM1EIDHbits;
 
-extern sfr at 0xf1f RXM1EIDL;
+extern __sfr __at 0xf1f RXM1EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -525,9 +525,9 @@ typedef union {
        };
 } __RXM1EIDLbits_t;
 
-extern volatile __RXM1EIDLbits_t at 0xf1f RXM1EIDLbits;
+extern volatile __RXM1EIDLbits_t __at 0xf1f RXM1EIDLbits;
 
-extern sfr at 0xf20 TXB2CON;
+extern __sfr __at 0xf20 TXB2CON;
 typedef union {
        struct {
                unsigned TXPRI0:1;
@@ -541,9 +541,9 @@ typedef union {
        };
 } __TXB2CONbits_t;
 
-extern volatile __TXB2CONbits_t at 0xf20 TXB2CONbits;
+extern volatile __TXB2CONbits_t __at 0xf20 TXB2CONbits;
 
-extern sfr at 0xf21 TXB2SIDH;
+extern __sfr __at 0xf21 TXB2SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -557,9 +557,9 @@ typedef union {
        };
 } __TXB2SIDHbits_t;
 
-extern volatile __TXB2SIDHbits_t at 0xf21 TXB2SIDHbits;
+extern volatile __TXB2SIDHbits_t __at 0xf21 TXB2SIDHbits;
 
-extern sfr at 0xf22 TXB2SIDL;
+extern __sfr __at 0xf22 TXB2SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -573,9 +573,9 @@ typedef union {
        };
 } __TXB2SIDLbits_t;
 
-extern volatile __TXB2SIDLbits_t at 0xf22 TXB2SIDLbits;
+extern volatile __TXB2SIDLbits_t __at 0xf22 TXB2SIDLbits;
 
-extern sfr at 0xf23 TXB2EIDH;
+extern __sfr __at 0xf23 TXB2EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -589,9 +589,9 @@ typedef union {
        };
 } __TXB2EIDHbits_t;
 
-extern volatile __TXB2EIDHbits_t at 0xf23 TXB2EIDHbits;
+extern volatile __TXB2EIDHbits_t __at 0xf23 TXB2EIDHbits;
 
-extern sfr at 0xf24 TXB2EIDL;
+extern __sfr __at 0xf24 TXB2EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -605,9 +605,9 @@ typedef union {
        };
 } __TXB2EIDLbits_t;
 
-extern volatile __TXB2EIDLbits_t at 0xf24 TXB2EIDLbits;
+extern volatile __TXB2EIDLbits_t __at 0xf24 TXB2EIDLbits;
 
-extern sfr at 0xf25 TXB2DLC;
+extern __sfr __at 0xf25 TXB2DLC;
 typedef union {
        struct {
                unsigned TXB2DLC0:1;
@@ -621,9 +621,9 @@ typedef union {
        };
 } __TXB2DLCbits_t;
 
-extern volatile __TXB2DLCbits_t at 0xf25 TXB2DLCbits;
+extern volatile __TXB2DLCbits_t __at 0xf25 TXB2DLCbits;
 
-extern sfr at 0xf26 TXB2D0;
+extern __sfr __at 0xf26 TXB2D0;
 typedef union {
        struct {
                unsigned TXB2D00:1;
@@ -637,9 +637,9 @@ typedef union {
        };
 } __TXB2D0bits_t;
 
-extern volatile __TXB2D0bits_t at 0xf26 TXB2D0bits;
+extern volatile __TXB2D0bits_t __at 0xf26 TXB2D0bits;
 
-extern sfr at 0xf27 TXB2D1;
+extern __sfr __at 0xf27 TXB2D1;
 typedef union {
        struct {
                unsigned TXB2D10:1;
@@ -653,9 +653,9 @@ typedef union {
        };
 } __TXB2D1bits_t;
 
-extern volatile __TXB2D1bits_t at 0xf27 TXB2D1bits;
+extern volatile __TXB2D1bits_t __at 0xf27 TXB2D1bits;
 
-extern sfr at 0xf28 TXB2D2;
+extern __sfr __at 0xf28 TXB2D2;
 typedef union {
        struct {
                unsigned TXB2D20:1;
@@ -669,9 +669,9 @@ typedef union {
        };
 } __TXB2D2bits_t;
 
-extern volatile __TXB2D2bits_t at 0xf28 TXB2D2bits;
+extern volatile __TXB2D2bits_t __at 0xf28 TXB2D2bits;
 
-extern sfr at 0xf29 TXB2D3;
+extern __sfr __at 0xf29 TXB2D3;
 typedef union {
        struct {
                unsigned TXB2D30:1;
@@ -685,9 +685,9 @@ typedef union {
        };
 } __TXB2D3bits_t;
 
-extern volatile __TXB2D3bits_t at 0xf29 TXB2D3bits;
+extern volatile __TXB2D3bits_t __at 0xf29 TXB2D3bits;
 
-extern sfr at 0xf2a TXB2D4;
+extern __sfr __at 0xf2a TXB2D4;
 typedef union {
        struct {
                unsigned TXB2D40:1;
@@ -701,9 +701,9 @@ typedef union {
        };
 } __TXB2D4bits_t;
 
-extern volatile __TXB2D4bits_t at 0xf2a TXB2D4bits;
+extern volatile __TXB2D4bits_t __at 0xf2a TXB2D4bits;
 
-extern sfr at 0xf2b TXB2D5;
+extern __sfr __at 0xf2b TXB2D5;
 typedef union {
        struct {
                unsigned TXB2D50:1;
@@ -717,9 +717,9 @@ typedef union {
        };
 } __TXB2D5bits_t;
 
-extern volatile __TXB2D5bits_t at 0xf2b TXB2D5bits;
+extern volatile __TXB2D5bits_t __at 0xf2b TXB2D5bits;
 
-extern sfr at 0xf2c TXB2D6;
+extern __sfr __at 0xf2c TXB2D6;
 typedef union {
        struct {
                unsigned TXB2D60:1;
@@ -733,9 +733,9 @@ typedef union {
        };
 } __TXB2D6bits_t;
 
-extern volatile __TXB2D6bits_t at 0xf2c TXB2D6bits;
+extern volatile __TXB2D6bits_t __at 0xf2c TXB2D6bits;
 
-extern sfr at 0xf2d TXB2D7;
+extern __sfr __at 0xf2d TXB2D7;
 typedef union {
        struct {
                unsigned TXB2D70:1;
@@ -749,9 +749,9 @@ typedef union {
        };
 } __TXB2D7bits_t;
 
-extern volatile __TXB2D7bits_t at 0xf2d TXB2D7bits;
+extern volatile __TXB2D7bits_t __at 0xf2d TXB2D7bits;
 
-extern sfr at 0xf2e CANSTATRO4;
+extern __sfr __at 0xf2e CANSTATRO4;
 typedef union {
        struct {
                unsigned :1;
@@ -765,9 +765,9 @@ typedef union {
        };
 } __CANSTATRO4bits_t;
 
-extern volatile __CANSTATRO4bits_t at 0xf2e CANSTATRO4bits;
+extern volatile __CANSTATRO4bits_t __at 0xf2e CANSTATRO4bits;
 
-extern sfr at 0xf30 TXB1CON;
+extern __sfr __at 0xf30 TXB1CON;
 typedef union {
        struct {
                unsigned TXPRI0:1;
@@ -781,9 +781,9 @@ typedef union {
        };
 } __TXB1CONbits_t;
 
-extern volatile __TXB1CONbits_t at 0xf30 TXB1CONbits;
+extern volatile __TXB1CONbits_t __at 0xf30 TXB1CONbits;
 
-extern sfr at 0xf31 TXB1SIDH;
+extern __sfr __at 0xf31 TXB1SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -797,9 +797,9 @@ typedef union {
        };
 } __TXB1SIDHbits_t;
 
-extern volatile __TXB1SIDHbits_t at 0xf31 TXB1SIDHbits;
+extern volatile __TXB1SIDHbits_t __at 0xf31 TXB1SIDHbits;
 
-extern sfr at 0xf32 TXB1SIDL;
+extern __sfr __at 0xf32 TXB1SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -813,9 +813,9 @@ typedef union {
        };
 } __TXB1SIDLbits_t;
 
-extern volatile __TXB1SIDLbits_t at 0xf32 TXB1SIDLbits;
+extern volatile __TXB1SIDLbits_t __at 0xf32 TXB1SIDLbits;
 
-extern sfr at 0xf33 TXB1EIDH;
+extern __sfr __at 0xf33 TXB1EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -829,9 +829,9 @@ typedef union {
        };
 } __TXB1EIDHbits_t;
 
-extern volatile __TXB1EIDHbits_t at 0xf33 TXB1EIDHbits;
+extern volatile __TXB1EIDHbits_t __at 0xf33 TXB1EIDHbits;
 
-extern sfr at 0xf34 TXB1EIDL;
+extern __sfr __at 0xf34 TXB1EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -845,9 +845,9 @@ typedef union {
        };
 } __TXB1EIDLbits_t;
 
-extern volatile __TXB1EIDLbits_t at 0xf34 TXB1EIDLbits;
+extern volatile __TXB1EIDLbits_t __at 0xf34 TXB1EIDLbits;
 
-extern sfr at 0xf35 TXB1DLC;
+extern __sfr __at 0xf35 TXB1DLC;
 typedef union {
        struct {
                unsigned DLC0:1;
@@ -861,9 +861,9 @@ typedef union {
        };
 } __TXB1DLCbits_t;
 
-extern volatile __TXB1DLCbits_t at 0xf35 TXB1DLCbits;
+extern volatile __TXB1DLCbits_t __at 0xf35 TXB1DLCbits;
 
-extern sfr at 0xf36 TXB1D0;
+extern __sfr __at 0xf36 TXB1D0;
 typedef union {
        struct {
                unsigned TXB1D00:1;
@@ -877,9 +877,9 @@ typedef union {
        };
 } __TXB1D0bits_t;
 
-extern volatile __TXB1D0bits_t at 0xf36 TXB1D0bits;
+extern volatile __TXB1D0bits_t __at 0xf36 TXB1D0bits;
 
-extern sfr at 0xf37 TXB1D1;
+extern __sfr __at 0xf37 TXB1D1;
 typedef union {
        struct {
                unsigned TXB1D10:1;
@@ -893,9 +893,9 @@ typedef union {
        };
 } __TXB1D1bits_t;
 
-extern volatile __TXB1D1bits_t at 0xf37 TXB1D1bits;
+extern volatile __TXB1D1bits_t __at 0xf37 TXB1D1bits;
 
-extern sfr at 0xf38 TXB1D2;
+extern __sfr __at 0xf38 TXB1D2;
 typedef union {
        struct {
                unsigned TXB1D20:1;
@@ -909,9 +909,9 @@ typedef union {
        };
 } __TXB1D2bits_t;
 
-extern volatile __TXB1D2bits_t at 0xf38 TXB1D2bits;
+extern volatile __TXB1D2bits_t __at 0xf38 TXB1D2bits;
 
-extern sfr at 0xf39 TXB1D3;
+extern __sfr __at 0xf39 TXB1D3;
 typedef union {
        struct {
                unsigned TXB1D30:1;
@@ -925,9 +925,9 @@ typedef union {
        };
 } __TXB1D3bits_t;
 
-extern volatile __TXB1D3bits_t at 0xf39 TXB1D3bits;
+extern volatile __TXB1D3bits_t __at 0xf39 TXB1D3bits;
 
-extern sfr at 0xf3a TXB1D4;
+extern __sfr __at 0xf3a TXB1D4;
 typedef union {
        struct {
                unsigned TXB1D40:1;
@@ -941,9 +941,9 @@ typedef union {
        };
 } __TXB1D4bits_t;
 
-extern volatile __TXB1D4bits_t at 0xf3a TXB1D4bits;
+extern volatile __TXB1D4bits_t __at 0xf3a TXB1D4bits;
 
-extern sfr at 0xf3b TXB1D5;
+extern __sfr __at 0xf3b TXB1D5;
 typedef union {
        struct {
                unsigned TXB1D50:1;
@@ -957,9 +957,9 @@ typedef union {
        };
 } __TXB1D5bits_t;
 
-extern volatile __TXB1D5bits_t at 0xf3b TXB1D5bits;
+extern volatile __TXB1D5bits_t __at 0xf3b TXB1D5bits;
 
-extern sfr at 0xf3c TXB1D6;
+extern __sfr __at 0xf3c TXB1D6;
 typedef union {
        struct {
                unsigned TXB1D60:1;
@@ -973,9 +973,9 @@ typedef union {
        };
 } __TXB1D6bits_t;
 
-extern volatile __TXB1D6bits_t at 0xf3c TXB1D6bits;
+extern volatile __TXB1D6bits_t __at 0xf3c TXB1D6bits;
 
-extern sfr at 0xf3d TXB1D7;
+extern __sfr __at 0xf3d TXB1D7;
 typedef union {
        struct {
                unsigned TXB1D70:1;
@@ -989,9 +989,9 @@ typedef union {
        };
 } __TXB1D7bits_t;
 
-extern volatile __TXB1D7bits_t at 0xf3d TXB1D7bits;
+extern volatile __TXB1D7bits_t __at 0xf3d TXB1D7bits;
 
-extern sfr at 0xf3e CANSTATRO3;
+extern __sfr __at 0xf3e CANSTATRO3;
 typedef union {
        struct {
                unsigned :1;
@@ -1005,9 +1005,9 @@ typedef union {
        };
 } __CANSTATRO3bits_t;
 
-extern volatile __CANSTATRO3bits_t at 0xf3e CANSTATRO3bits;
+extern volatile __CANSTATRO3bits_t __at 0xf3e CANSTATRO3bits;
 
-extern sfr at 0xf40 TXB0CON;
+extern __sfr __at 0xf40 TXB0CON;
 typedef union {
        struct {
                unsigned TXPRI0:1;
@@ -1021,9 +1021,9 @@ typedef union {
        };
 } __TXB0CONbits_t;
 
-extern volatile __TXB0CONbits_t at 0xf40 TXB0CONbits;
+extern volatile __TXB0CONbits_t __at 0xf40 TXB0CONbits;
 
-extern sfr at 0xf41 TXB0SIDH;
+extern __sfr __at 0xf41 TXB0SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -1037,9 +1037,9 @@ typedef union {
        };
 } __TXB0SIDHbits_t;
 
-extern volatile __TXB0SIDHbits_t at 0xf41 TXB0SIDHbits;
+extern volatile __TXB0SIDHbits_t __at 0xf41 TXB0SIDHbits;
 
-extern sfr at 0xf42 TXB0SIDL;
+extern __sfr __at 0xf42 TXB0SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -1053,9 +1053,9 @@ typedef union {
        };
 } __TXB0SIDLbits_t;
 
-extern volatile __TXB0SIDLbits_t at 0xf42 TXB0SIDLbits;
+extern volatile __TXB0SIDLbits_t __at 0xf42 TXB0SIDLbits;
 
-extern sfr at 0xf43 TXB0EIDH;
+extern __sfr __at 0xf43 TXB0EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -1069,9 +1069,9 @@ typedef union {
        };
 } __TXB0EIDHbits_t;
 
-extern volatile __TXB0EIDHbits_t at 0xf43 TXB0EIDHbits;
+extern volatile __TXB0EIDHbits_t __at 0xf43 TXB0EIDHbits;
 
-extern sfr at 0xf44 TXB0EIDL;
+extern __sfr __at 0xf44 TXB0EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -1085,9 +1085,9 @@ typedef union {
        };
 } __TXB0EIDLbits_t;
 
-extern volatile __TXB0EIDLbits_t at 0xf44 TXB0EIDLbits;
+extern volatile __TXB0EIDLbits_t __at 0xf44 TXB0EIDLbits;
 
-extern sfr at 0xf45 TXB0DLC;
+extern __sfr __at 0xf45 TXB0DLC;
 typedef union {
        struct {
                unsigned DLC0:1;
@@ -1101,9 +1101,9 @@ typedef union {
        };
 } __TXB0DLCbits_t;
 
-extern volatile __TXB0DLCbits_t at 0xf45 TXB0DLCbits;
+extern volatile __TXB0DLCbits_t __at 0xf45 TXB0DLCbits;
 
-extern sfr at 0xf46 TXB0D0;
+extern __sfr __at 0xf46 TXB0D0;
 typedef union {
        struct {
                unsigned TXB0D00:1;
@@ -1117,9 +1117,9 @@ typedef union {
        };
 } __TXB0D0bits_t;
 
-extern volatile __TXB0D0bits_t at 0xf46 TXB0D0bits;
+extern volatile __TXB0D0bits_t __at 0xf46 TXB0D0bits;
 
-extern sfr at 0xf47 TXB0D1;
+extern __sfr __at 0xf47 TXB0D1;
 typedef union {
        struct {
                unsigned TXB0D10:1;
@@ -1133,9 +1133,9 @@ typedef union {
        };
 } __TXB0D1bits_t;
 
-extern volatile __TXB0D1bits_t at 0xf47 TXB0D1bits;
+extern volatile __TXB0D1bits_t __at 0xf47 TXB0D1bits;
 
-extern sfr at 0xf48 TXB0D2;
+extern __sfr __at 0xf48 TXB0D2;
 typedef union {
        struct {
                unsigned TXB0D20:1;
@@ -1149,9 +1149,9 @@ typedef union {
        };
 } __TXB0D2bits_t;
 
-extern volatile __TXB0D2bits_t at 0xf48 TXB0D2bits;
+extern volatile __TXB0D2bits_t __at 0xf48 TXB0D2bits;
 
-extern sfr at 0xf49 TXB0D3;
+extern __sfr __at 0xf49 TXB0D3;
 typedef union {
        struct {
                unsigned TXB0D30:1;
@@ -1165,9 +1165,9 @@ typedef union {
        };
 } __TXB0D3bits_t;
 
-extern volatile __TXB0D3bits_t at 0xf49 TXB0D3bits;
+extern volatile __TXB0D3bits_t __at 0xf49 TXB0D3bits;
 
-extern sfr at 0xf4a TXB0D4;
+extern __sfr __at 0xf4a TXB0D4;
 typedef union {
        struct {
                unsigned TXB0D40:1;
@@ -1181,9 +1181,9 @@ typedef union {
        };
 } __TXB0D4bits_t;
 
-extern volatile __TXB0D4bits_t at 0xf4a TXB0D4bits;
+extern volatile __TXB0D4bits_t __at 0xf4a TXB0D4bits;
 
-extern sfr at 0xf4b TXB0D5;
+extern __sfr __at 0xf4b TXB0D5;
 typedef union {
        struct {
                unsigned TXB0D50:1;
@@ -1197,9 +1197,9 @@ typedef union {
        };
 } __TXB0D5bits_t;
 
-extern volatile __TXB0D5bits_t at 0xf4b TXB0D5bits;
+extern volatile __TXB0D5bits_t __at 0xf4b TXB0D5bits;
 
-extern sfr at 0xf4c TXB0D6;
+extern __sfr __at 0xf4c TXB0D6;
 typedef union {
        struct {
                unsigned TXB0D60:1;
@@ -1213,9 +1213,9 @@ typedef union {
        };
 } __TXB0D6bits_t;
 
-extern volatile __TXB0D6bits_t at 0xf4c TXB0D6bits;
+extern volatile __TXB0D6bits_t __at 0xf4c TXB0D6bits;
 
-extern sfr at 0xf4d TXB0D7;
+extern __sfr __at 0xf4d TXB0D7;
 typedef union {
        struct {
                unsigned TXB0D70:1;
@@ -1229,9 +1229,9 @@ typedef union {
        };
 } __TXB0D7bits_t;
 
-extern volatile __TXB0D7bits_t at 0xf4d TXB0D7bits;
+extern volatile __TXB0D7bits_t __at 0xf4d TXB0D7bits;
 
-extern sfr at 0xf4e CANSTATRO2;
+extern __sfr __at 0xf4e CANSTATRO2;
 typedef union {
        struct {
                unsigned :1;
@@ -1245,9 +1245,9 @@ typedef union {
        };
 } __CANSTATRO2bits_t;
 
-extern volatile __CANSTATRO2bits_t at 0xf4e CANSTATRO2bits;
+extern volatile __CANSTATRO2bits_t __at 0xf4e CANSTATRO2bits;
 
-extern sfr at 0xf50 RXB1CON;
+extern __sfr __at 0xf50 RXB1CON;
 typedef union {
        struct {
                unsigned FILHIT0:1;
@@ -1261,9 +1261,9 @@ typedef union {
        };
 } __RXB1CONbits_t;
 
-extern volatile __RXB1CONbits_t at 0xf50 RXB1CONbits;
+extern volatile __RXB1CONbits_t __at 0xf50 RXB1CONbits;
 
-extern sfr at 0xf51 RXB1SIDH;
+extern __sfr __at 0xf51 RXB1SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -1277,9 +1277,9 @@ typedef union {
        };
 } __RXB1SIDHbits_t;
 
-extern volatile __RXB1SIDHbits_t at 0xf51 RXB1SIDHbits;
+extern volatile __RXB1SIDHbits_t __at 0xf51 RXB1SIDHbits;
 
-extern sfr at 0xf52 RXB1SIDL;
+extern __sfr __at 0xf52 RXB1SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -1293,9 +1293,9 @@ typedef union {
        };
 } __RXB1SIDLbits_t;
 
-extern volatile __RXB1SIDLbits_t at 0xf52 RXB1SIDLbits;
+extern volatile __RXB1SIDLbits_t __at 0xf52 RXB1SIDLbits;
 
-extern sfr at 0xf53 RXB1EIDH;
+extern __sfr __at 0xf53 RXB1EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -1309,9 +1309,9 @@ typedef union {
        };
 } __RXB1EIDHbits_t;
 
-extern volatile __RXB1EIDHbits_t at 0xf53 RXB1EIDHbits;
+extern volatile __RXB1EIDHbits_t __at 0xf53 RXB1EIDHbits;
 
-extern sfr at 0xf54 RXB1EIDL;
+extern __sfr __at 0xf54 RXB1EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -1325,9 +1325,9 @@ typedef union {
        };
 } __RXB1EIDLbits_t;
 
-extern volatile __RXB1EIDLbits_t at 0xf54 RXB1EIDLbits;
+extern volatile __RXB1EIDLbits_t __at 0xf54 RXB1EIDLbits;
 
-extern sfr at 0xf55 RXB1DLC;
+extern __sfr __at 0xf55 RXB1DLC;
 typedef union {
        struct {
                unsigned DLC0:1;
@@ -1341,9 +1341,9 @@ typedef union {
        };
 } __RXB1DLCbits_t;
 
-extern volatile __RXB1DLCbits_t at 0xf55 RXB1DLCbits;
+extern volatile __RXB1DLCbits_t __at 0xf55 RXB1DLCbits;
 
-extern sfr at 0xf56 RXB1D0;
+extern __sfr __at 0xf56 RXB1D0;
 typedef union {
        struct {
                unsigned RXB1D00:1;
@@ -1357,9 +1357,9 @@ typedef union {
        };
 } __RXB1D0bits_t;
 
-extern volatile __RXB1D0bits_t at 0xf56 RXB1D0bits;
+extern volatile __RXB1D0bits_t __at 0xf56 RXB1D0bits;
 
-extern sfr at 0xf57 RXB1D1;
+extern __sfr __at 0xf57 RXB1D1;
 typedef union {
        struct {
                unsigned RXB1D10:1;
@@ -1373,9 +1373,9 @@ typedef union {
        };
 } __RXB1D1bits_t;
 
-extern volatile __RXB1D1bits_t at 0xf57 RXB1D1bits;
+extern volatile __RXB1D1bits_t __at 0xf57 RXB1D1bits;
 
-extern sfr at 0xf58 RXB1D2;
+extern __sfr __at 0xf58 RXB1D2;
 typedef union {
        struct {
                unsigned RXB1D20:1;
@@ -1389,9 +1389,9 @@ typedef union {
        };
 } __RXB1D2bits_t;
 
-extern volatile __RXB1D2bits_t at 0xf58 RXB1D2bits;
+extern volatile __RXB1D2bits_t __at 0xf58 RXB1D2bits;
 
-extern sfr at 0xf59 RXB1D3;
+extern __sfr __at 0xf59 RXB1D3;
 typedef union {
        struct {
                unsigned RXB1D30:1;
@@ -1405,9 +1405,9 @@ typedef union {
        };
 } __RXB1D3bits_t;
 
-extern volatile __RXB1D3bits_t at 0xf59 RXB1D3bits;
+extern volatile __RXB1D3bits_t __at 0xf59 RXB1D3bits;
 
-extern sfr at 0xf5a RXB1D4;
+extern __sfr __at 0xf5a RXB1D4;
 typedef union {
        struct {
                unsigned RXB1D40:1;
@@ -1421,9 +1421,9 @@ typedef union {
        };
 } __RXB1D4bits_t;
 
-extern volatile __RXB1D4bits_t at 0xf5a RXB1D4bits;
+extern volatile __RXB1D4bits_t __at 0xf5a RXB1D4bits;
 
-extern sfr at 0xf5b RXB1D5;
+extern __sfr __at 0xf5b RXB1D5;
 typedef union {
        struct {
                unsigned RXB1D50:1;
@@ -1437,9 +1437,9 @@ typedef union {
        };
 } __RXB1D5bits_t;
 
-extern volatile __RXB1D5bits_t at 0xf5b RXB1D5bits;
+extern volatile __RXB1D5bits_t __at 0xf5b RXB1D5bits;
 
-extern sfr at 0xf5c RXB1D6;
+extern __sfr __at 0xf5c RXB1D6;
 typedef union {
        struct {
                unsigned RXB1D60:1;
@@ -1453,9 +1453,9 @@ typedef union {
        };
 } __RXB1D6bits_t;
 
-extern volatile __RXB1D6bits_t at 0xf5c RXB1D6bits;
+extern volatile __RXB1D6bits_t __at 0xf5c RXB1D6bits;
 
-extern sfr at 0xf5d RXB1D7;
+extern __sfr __at 0xf5d RXB1D7;
 typedef union {
        struct {
                unsigned RXB1D70:1;
@@ -1469,9 +1469,9 @@ typedef union {
        };
 } __RXB1D7bits_t;
 
-extern volatile __RXB1D7bits_t at 0xf5d RXB1D7bits;
+extern volatile __RXB1D7bits_t __at 0xf5d RXB1D7bits;
 
-extern sfr at 0xf5e CANSTATRO1;
+extern __sfr __at 0xf5e CANSTATRO1;
 typedef union {
        struct {
                unsigned :1;
@@ -1485,9 +1485,9 @@ typedef union {
        };
 } __CANSTATRO1bits_t;
 
-extern volatile __CANSTATRO1bits_t at 0xf5e CANSTATRO1bits;
+extern volatile __CANSTATRO1bits_t __at 0xf5e CANSTATRO1bits;
 
-extern sfr at 0xf60 RXB0CON;
+extern __sfr __at 0xf60 RXB0CON;
 typedef union {
        struct {
                unsigned FILHIT0:1;
@@ -1501,9 +1501,9 @@ typedef union {
        };
 } __RXB0CONbits_t;
 
-extern volatile __RXB0CONbits_t at 0xf60 RXB0CONbits;
+extern volatile __RXB0CONbits_t __at 0xf60 RXB0CONbits;
 
-extern sfr at 0xf61 RXB0SIDH;
+extern __sfr __at 0xf61 RXB0SIDH;
 typedef union {
        struct {
                unsigned SID3:1;
@@ -1517,9 +1517,9 @@ typedef union {
        };
 } __RXB0SIDHbits_t;
 
-extern volatile __RXB0SIDHbits_t at 0xf61 RXB0SIDHbits;
+extern volatile __RXB0SIDHbits_t __at 0xf61 RXB0SIDHbits;
 
-extern sfr at 0xf62 RXB0SIDL;
+extern __sfr __at 0xf62 RXB0SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -1533,9 +1533,9 @@ typedef union {
        };
 } __RXB0SIDLbits_t;
 
-extern volatile __RXB0SIDLbits_t at 0xf62 RXB0SIDLbits;
+extern volatile __RXB0SIDLbits_t __at 0xf62 RXB0SIDLbits;
 
-extern sfr at 0xf63 RXB0EIDH;
+extern __sfr __at 0xf63 RXB0EIDH;
 typedef union {
        struct {
                unsigned EID8:1;
@@ -1549,9 +1549,9 @@ typedef union {
        };
 } __RXB0EIDHbits_t;
 
-extern volatile __RXB0EIDHbits_t at 0xf63 RXB0EIDHbits;
+extern volatile __RXB0EIDHbits_t __at 0xf63 RXB0EIDHbits;
 
-extern sfr at 0xf64 RXB0EIDL;
+extern __sfr __at 0xf64 RXB0EIDL;
 typedef union {
        struct {
                unsigned EID0:1;
@@ -1565,9 +1565,9 @@ typedef union {
        };
 } __RXB0EIDLbits_t;
 
-extern volatile __RXB0EIDLbits_t at 0xf64 RXB0EIDLbits;
+extern volatile __RXB0EIDLbits_t __at 0xf64 RXB0EIDLbits;
 
-extern sfr at 0xf65 RXB0DLC;
+extern __sfr __at 0xf65 RXB0DLC;
 typedef union {
        struct {
                unsigned DLC0:1;
@@ -1581,17 +1581,17 @@ typedef union {
        };
 } __RXB0DLCbits_t;
 
-extern volatile __RXB0DLCbits_t at 0xf65 RXB0DLCbits;
+extern volatile __RXB0DLCbits_t __at 0xf65 RXB0DLCbits;
 
-extern sfr at 0xf66 RXB0D0;
-extern sfr at 0xf67 RXB0D1;
-extern sfr at 0xf68 RXB0D2;
-extern sfr at 0xf69 RXB0D3;
-extern sfr at 0xf6a RXB0D4;
-extern sfr at 0xf6b RXB0D5;
-extern sfr at 0xf6c RXB0D6;
-extern sfr at 0xf6d RXB0D7;
-extern sfr at 0xf6e CANSTAT;
+extern __sfr __at 0xf66 RXB0D0;
+extern __sfr __at 0xf67 RXB0D1;
+extern __sfr __at 0xf68 RXB0D2;
+extern __sfr __at 0xf69 RXB0D3;
+extern __sfr __at 0xf6a RXB0D4;
+extern __sfr __at 0xf6b RXB0D5;
+extern __sfr __at 0xf6c RXB0D6;
+extern __sfr __at 0xf6d RXB0D7;
+extern __sfr __at 0xf6e CANSTAT;
 typedef union {
        struct {
                unsigned :1;
@@ -1605,9 +1605,9 @@ typedef union {
        };
 } __CANSTATbits_t;
 
-extern volatile __CANSTATbits_t at 0xf6e CANSTATbits;
+extern volatile __CANSTATbits_t __at 0xf6e CANSTATbits;
 
-extern sfr at 0xf6f CANCON;
+extern __sfr __at 0xf6f CANCON;
 typedef union {
        struct {
                unsigned WIN0:1;
@@ -1621,9 +1621,9 @@ typedef union {
        };
 } __CANCONbits_t;
 
-extern volatile __CANCONbits_t at 0xf6f CANCONbits;
+extern volatile __CANCONbits_t __at 0xf6f CANCONbits;
 
-extern sfr at 0xf70 BRGCON1;
+extern __sfr __at 0xf70 BRGCON1;
 typedef union {
        struct {
                unsigned BRP0:1;
@@ -1637,9 +1637,9 @@ typedef union {
        };
 } __BRGCON1bits_t;
 
-extern volatile __BRGCON1bits_t at 0xf70 BRGCON1bits;
+extern volatile __BRGCON1bits_t __at 0xf70 BRGCON1bits;
 
-extern sfr at 0xf71 BRGCON2;
+extern __sfr __at 0xf71 BRGCON2;
 typedef union {
        struct {
                unsigned PRSEG0:1;
@@ -1653,9 +1653,9 @@ typedef union {
        };
 } __BRGCON2bits_t;
 
-extern volatile __BRGCON2bits_t at 0xf71 BRGCON2bits;
+extern volatile __BRGCON2bits_t __at 0xf71 BRGCON2bits;
 
-extern sfr at 0xf72 BRGCON3;
+extern __sfr __at 0xf72 BRGCON3;
 typedef union {
        struct {
                unsigned SEG2PH0:1;
@@ -1669,9 +1669,9 @@ typedef union {
        };
 } __BRGCON3bits_t;
 
-extern volatile __BRGCON3bits_t at 0xf72 BRGCON3bits;
+extern volatile __BRGCON3bits_t __at 0xf72 BRGCON3bits;
 
-extern sfr at 0xf73 CIOCON;
+extern __sfr __at 0xf73 CIOCON;
 typedef union {
        struct {
                unsigned :1;
@@ -1685,9 +1685,9 @@ typedef union {
        };
 } __CIOCONbits_t;
 
-extern volatile __CIOCONbits_t at 0xf73 CIOCONbits;
+extern volatile __CIOCONbits_t __at 0xf73 CIOCONbits;
 
-extern sfr at 0xf74 COMSTAT;
+extern __sfr __at 0xf74 COMSTAT;
 typedef union {
        struct {
                unsigned EWARN:1;
@@ -1701,9 +1701,9 @@ typedef union {
        };
 } __COMSTATbits_t;
 
-extern volatile __COMSTATbits_t at 0xf74 COMSTATbits;
+extern volatile __COMSTATbits_t __at 0xf74 COMSTATbits;
 
-extern sfr at 0xf75 RXERRCNT;
+extern __sfr __at 0xf75 RXERRCNT;
 typedef union {
        struct {
                unsigned REC0:1;
@@ -1717,9 +1717,9 @@ typedef union {
        };
 } __RXERRCNTbits_t;
 
-extern volatile __RXERRCNTbits_t at 0xf75 RXERRCNTbits;
+extern volatile __RXERRCNTbits_t __at 0xf75 RXERRCNTbits;
 
-extern sfr at 0xf76 TXERRCNT;
+extern __sfr __at 0xf76 TXERRCNT;
 typedef union {
        struct {
                unsigned TEC0:1;
@@ -1733,9 +1733,9 @@ typedef union {
        };
 } __TXERRCNTbits_t;
 
-extern volatile __TXERRCNTbits_t at 0xf76 TXERRCNTbits;
+extern volatile __TXERRCNTbits_t __at 0xf76 TXERRCNTbits;
 
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf80 PORTA;
 typedef union {
        struct {
                unsigned RA0:1;
@@ -1782,9 +1782,9 @@ typedef union {
        };
 } __PORTAbits_t;
 
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
 
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
 typedef union {
        struct {
                unsigned RB0:1;
@@ -1809,9 +1809,9 @@ typedef union {
        };
 } __PORTBbits_t;
 
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
 
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
 typedef union {
        struct {
                unsigned RC0:1;
@@ -1847,9 +1847,9 @@ typedef union {
        };
 } __PORTCbits_t;
 
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
 
-extern sfr at 0xf83 PORTD;
+extern __sfr __at 0xf83 PORTD;
 typedef union {
        struct {
                unsigned RD0:1;
@@ -1874,9 +1874,9 @@ typedef union {
        };
 } __PORTDbits_t;
 
-extern volatile __PORTDbits_t at 0xf83 PORTDbits;
+extern volatile __PORTDbits_t __at 0xf83 PORTDbits;
 
-extern sfr at 0xf84 PORTE;
+extern __sfr __at 0xf84 PORTE;
 typedef union {
        struct {
                unsigned RE0:1;
@@ -1912,9 +1912,9 @@ typedef union {
        };
 } __PORTEbits_t;
 
-extern volatile __PORTEbits_t at 0xf84 PORTEbits;
+extern volatile __PORTEbits_t __at 0xf84 PORTEbits;
 
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
 typedef union {
        struct {
                unsigned LATA0:1;
@@ -1928,9 +1928,9 @@ typedef union {
        };
 } __LATAbits_t;
 
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
 
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
 typedef union {
        struct {
                unsigned LATB0:1;
@@ -1944,9 +1944,9 @@ typedef union {
        };
 } __LATBbits_t;
 
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
 
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
 typedef union {
        struct {
                unsigned LATC0:1;
@@ -1960,9 +1960,9 @@ typedef union {
        };
 } __LATCbits_t;
 
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
 
-extern sfr at 0xf8c LATD;
+extern __sfr __at 0xf8c LATD;
 typedef union {
        struct {
                unsigned LATD0:1;
@@ -1976,9 +1976,9 @@ typedef union {
        };
 } __LATDbits_t;
 
-extern volatile __LATDbits_t at 0xf8c LATDbits;
+extern volatile __LATDbits_t __at 0xf8c LATDbits;
 
-extern sfr at 0xf8d LATE;
+extern __sfr __at 0xf8d LATE;
 typedef union {
        struct {
                unsigned LATE0:1;
@@ -1992,9 +1992,9 @@ typedef union {
        };
 } __LATEbits_t;
 
-extern volatile __LATEbits_t at 0xf8d LATEbits;
+extern volatile __LATEbits_t __at 0xf8d LATEbits;
 
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
 typedef union {
        struct {
                unsigned TRISA0:1;
@@ -2008,9 +2008,9 @@ typedef union {
        };
 } __TRISAbits_t;
 
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
 
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
 typedef union {
        struct {
                unsigned TRISB0:1;
@@ -2024,9 +2024,9 @@ typedef union {
        };
 } __TRISBbits_t;
 
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
 
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
 typedef union {
        struct {
                unsigned TRISC0:1;
@@ -2040,9 +2040,9 @@ typedef union {
        };
 } __TRISCbits_t;
 
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
 
-extern sfr at 0xf95 TRISD;
+extern __sfr __at 0xf95 TRISD;
 typedef union {
        struct {
                unsigned TRISD0:1;
@@ -2056,9 +2056,9 @@ typedef union {
        };
 } __TRISDbits_t;
 
-extern volatile __TRISDbits_t at 0xf95 TRISDbits;
+extern volatile __TRISDbits_t __at 0xf95 TRISDbits;
 
-extern sfr at 0xf96 TRISE;
+extern __sfr __at 0xf96 TRISE;
 typedef union {
        struct {
                unsigned :1;
@@ -2072,9 +2072,9 @@ typedef union {
        };
 } __TRISEbits_t;
 
-extern volatile __TRISEbits_t at 0xf96 TRISEbits;
+extern volatile __TRISEbits_t __at 0xf96 TRISEbits;
 
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
 typedef union {
        struct {
                unsigned TMR1IE:1;
@@ -2088,9 +2088,9 @@ typedef union {
        };
 } __PIE1bits_t;
 
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
 
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
 typedef union {
        struct {
                unsigned TMR1IF:1;
@@ -2104,9 +2104,9 @@ typedef union {
        };
 } __PIR1bits_t;
 
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
 
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
 typedef union {
        struct {
                unsigned TMR1IP:1;
@@ -2120,9 +2120,9 @@ typedef union {
        };
 } __IPR1bits_t;
 
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
 
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
 typedef union {
        struct {
                unsigned CCP2IE:1;
@@ -2136,9 +2136,9 @@ typedef union {
        };
 } __PIE2bits_t;
 
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
 
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
 typedef union {
        struct {
                unsigned CCP2IF:1;
@@ -2152,9 +2152,9 @@ typedef union {
        };
 } __PIR2bits_t;
 
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
 
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
 typedef union {
        struct {
                unsigned CCP2IP:1;
@@ -2168,9 +2168,9 @@ typedef union {
        };
 } __IPR2bits_t;
 
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
 
-extern sfr at 0xfa3 PIE3;
+extern __sfr __at 0xfa3 PIE3;
 typedef union {
        struct {
                unsigned RX0IE:1;
@@ -2184,9 +2184,9 @@ typedef union {
        };
 } __PIE3bits_t;
 
-extern volatile __PIE3bits_t at 0xfa3 PIE3bits;
+extern volatile __PIE3bits_t __at 0xfa3 PIE3bits;
 
-extern sfr at 0xfa4 PIR3;
+extern __sfr __at 0xfa4 PIR3;
 typedef union {
        struct {
                unsigned RX0IF:1;
@@ -2200,9 +2200,9 @@ typedef union {
        };
 } __PIR3bits_t;
 
-extern volatile __PIR3bits_t at 0xfa4 PIR3bits;
+extern volatile __PIR3bits_t __at 0xfa4 PIR3bits;
 
-extern sfr at 0xfa5 IPR3;
+extern __sfr __at 0xfa5 IPR3;
 typedef union {
        struct {
                unsigned RX0IP:1;
@@ -2216,9 +2216,9 @@ typedef union {
        };
 } __IPR3bits_t;
 
-extern volatile __IPR3bits_t at 0xfa5 IPR3bits;
+extern volatile __IPR3bits_t __at 0xfa5 IPR3bits;
 
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
 typedef union {
        struct {
                unsigned RD:1;
@@ -2232,12 +2232,12 @@ typedef union {
        };
 } __EECON1bits_t;
 
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
 
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfab RCSTA;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfab RCSTA;
 typedef union {
        struct {
                unsigned RX9D:1;
@@ -2251,9 +2251,9 @@ typedef union {
        };
 } __RCSTAbits_t;
 
-extern volatile __RCSTAbits_t at 0xfab RCSTAbits;
+extern volatile __RCSTAbits_t __at 0xfab RCSTAbits;
 
-extern sfr at 0xfac TXSTA;
+extern __sfr __at 0xfac TXSTA;
 typedef union {
        struct {
                unsigned TX9D:1;
@@ -2267,12 +2267,12 @@ typedef union {
        };
 } __TXSTAbits_t;
 
-extern volatile __TXSTAbits_t at 0xfac TXSTAbits;
+extern volatile __TXSTAbits_t __at 0xfac TXSTAbits;
 
-extern sfr at 0xfad TXREG;
-extern sfr at 0xfae RCREG;
-extern sfr at 0xfaf SPBRG;
-extern sfr at 0xfb0 PSPCON;
+extern __sfr __at 0xfad TXREG;
+extern __sfr __at 0xfae RCREG;
+extern __sfr __at 0xfaf SPBRG;
+extern __sfr __at 0xfb0 PSPCON;
 typedef union {
        struct {
                unsigned :1;
@@ -2286,9 +2286,9 @@ typedef union {
        };
 } __PSPCONbits_t;
 
-extern volatile __PSPCONbits_t at 0xfb0 PSPCONbits;
+extern volatile __PSPCONbits_t __at 0xfb0 PSPCONbits;
 
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfb1 T3CON;
 typedef union {
        struct {
                unsigned TMR3ON:1;
@@ -2302,11 +2302,11 @@ typedef union {
        };
 } __T3CONbits_t;
 
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
 
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfb4 CMCON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfb4 CMCON;
 typedef union {
        struct {
                unsigned CM0:1;
@@ -2320,9 +2320,9 @@ typedef union {
        };
 } __CMCONbits_t;
 
-extern volatile __CMCONbits_t at 0xfb4 CMCONbits;
+extern volatile __CMCONbits_t __at 0xfb4 CMCONbits;
 
-extern sfr at 0xfb5 CVRCON;
+extern __sfr __at 0xfb5 CVRCON;
 typedef union {
        struct {
                unsigned CVR0:1;
@@ -2336,9 +2336,9 @@ typedef union {
        };
 } __CVRCONbits_t;
 
-extern volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
+extern volatile __CVRCONbits_t __at 0xfb5 CVRCONbits;
 
-extern sfr at 0xfb6 ECCPAS;
+extern __sfr __at 0xfb6 ECCPAS;
 typedef union {
        struct {
                unsigned PSSBD0:1;
@@ -2352,9 +2352,9 @@ typedef union {
        };
 } __ECCPASbits_t;
 
-extern volatile __ECCPASbits_t at 0xfb6 ECCPASbits;
+extern volatile __ECCPASbits_t __at 0xfb6 ECCPASbits;
 
-extern sfr at 0xfb7 ECCP1DEL;
+extern __sfr __at 0xfb7 ECCP1DEL;
 typedef union {
        struct {
                unsigned EPDC0:1;
@@ -2368,9 +2368,9 @@ typedef union {
        };
 } __ECCP1DELbits_t;
 
-extern volatile __ECCP1DELbits_t at 0xfb7 ECCP1DELbits;
+extern volatile __ECCP1DELbits_t __at 0xfb7 ECCP1DELbits;
 
-extern sfr at 0xfba ECCP1CON;
+extern __sfr __at 0xfba ECCP1CON;
 typedef union {
        struct {
                unsigned ECCP1M0:1;
@@ -2384,11 +2384,11 @@ typedef union {
        };
 } __ECCP1CONbits_t;
 
-extern volatile __ECCP1CONbits_t at 0xfba ECCP1CONbits;
+extern volatile __ECCP1CONbits_t __at 0xfba ECCP1CONbits;
 
-extern sfr at 0xfbb ECCPR1L;
-extern sfr at 0xfbc ECCPR1H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb ECCPR1L;
+extern __sfr __at 0xfbc ECCPR1H;
+extern __sfr __at 0xfbd CCP1CON;
 typedef union {
        struct {
                unsigned CCP1M0:1;
@@ -2402,11 +2402,11 @@ typedef union {
        };
 } __CCP1CONbits_t;
 
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
 
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc1 ADCON1;
 typedef union {
        struct {
                unsigned PCFG0:1;
@@ -2420,9 +2420,9 @@ typedef union {
        };
 } __ADCON1bits_t;
 
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
 
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
 typedef union {
        struct {
                unsigned ADON:1;
@@ -2436,11 +2436,11 @@ typedef union {
        };
 } __ADCON0bits_t;
 
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
 
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
 typedef union {
        struct {
                unsigned SEN:1;
@@ -2454,9 +2454,9 @@ typedef union {
        };
 } __SSPCON2bits_t;
 
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
 
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
 typedef union {
        struct {
                unsigned SSPM0:1;
@@ -2470,9 +2470,9 @@ typedef union {
        };
 } __SSPCON1bits_t;
 
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
 
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
 typedef union {
        struct {
                unsigned BF:1;
@@ -2486,11 +2486,11 @@ typedef union {
        };
 } __SSPSTATbits_t;
 
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
 
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
 typedef union {
        struct {
                unsigned T2CKPS0:1;
@@ -2504,11 +2504,11 @@ typedef union {
        };
 } __T2CONbits_t;
 
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
 
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
 typedef union {
        struct {
                unsigned TMR1ON:1;
@@ -2522,11 +2522,11 @@ typedef union {
        };
 } __T1CONbits_t;
 
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
 
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
 typedef union {
        struct {
                unsigned BOR:1;
@@ -2540,9 +2540,9 @@ typedef union {
        };
 } __RCONbits_t;
 
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
 
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
 typedef union {
        struct {
                unsigned SWDTEN:1;
@@ -2567,9 +2567,9 @@ typedef union {
        };
 } __WDTCONbits_t;
 
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
 
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
 typedef union {
        struct {
                unsigned LVDL0:1;
@@ -2594,9 +2594,9 @@ typedef union {
        };
 } __LVDCONbits_t;
 
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
 
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
 typedef union {
        struct {
                unsigned SCS:1;
@@ -2610,12 +2610,12 @@ typedef union {
        };
 } __OSCCONbits_t;
 
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
 
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
 typedef union {
        struct {
                unsigned C:1;
@@ -2629,32 +2629,32 @@ typedef union {
        };
 } __STATUSbits_t;
 
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
 typedef union {
        struct {
                unsigned INT1F:1;
@@ -2679,9 +2679,9 @@ typedef union {
        };
 } __INTCON3bits_t;
 
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
 
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
 typedef union {
        struct {
                unsigned RBIP:1;
@@ -2695,9 +2695,9 @@ typedef union {
        };
 } __INTCON2bits_t;
 
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
 
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
 typedef union {
        struct {
                unsigned RBIF:1;
@@ -2711,18 +2711,18 @@ typedef union {
        };
 } __INTCONbits_t;
 
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
 
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
 typedef union {
        struct {
                unsigned STKPTR0:1;
@@ -2736,11 +2736,11 @@ typedef union {
        };
 } __STKPTRbits_t;
 
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
 
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
 
 
 /* Configuration registers locations */
index 7e03f800a20e29fd410b54ba450ac3745890cbc5..7888498e778c60852d0e3599fea421f29cdb9d01 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef __PIC18F6520_H__
 #define __PIC18F6520_H__
 
-extern sfr at 0xf6b RCSTA2;
+extern __sfr __at 0xf6b RCSTA2;
 typedef union {
        struct {
                unsigned RX9D:1;
@@ -29,9 +29,9 @@ typedef union {
        };
 } __RCSTA2bits_t;
 
-extern volatile __RCSTA2bits_t at 0xf6b RCSTA2bits;
+extern volatile __RCSTA2bits_t __at 0xf6b RCSTA2bits;
 
-extern sfr at 0xf6c TXSTA2;
+extern __sfr __at 0xf6c TXSTA2;
 typedef union {
        struct {
                unsigned TX9D:1;
@@ -45,12 +45,12 @@ typedef union {
        };
 } __TXSTA2bits_t;
 
-extern volatile __TXSTA2bits_t at 0xf6c TXSTA2bits;
+extern volatile __TXSTA2bits_t __at 0xf6c TXSTA2bits;
 
-extern sfr at 0xf6d TXREG2;
-extern sfr at 0xf6e RCREG2;
-extern sfr at 0xf6f SPBRG2;
-extern sfr at 0xf70 CCP5CON;
+extern __sfr __at 0xf6d TXREG2;
+extern __sfr __at 0xf6e RCREG2;
+extern __sfr __at 0xf6f SPBRG2;
+extern __sfr __at 0xf70 CCP5CON;
 typedef union {
        struct {
                unsigned CCP5M0:1;
@@ -64,11 +64,11 @@ typedef union {
        };
 } __CCP5CONbits_t;
 
-extern volatile __CCP5CONbits_t at 0xf70 CCP5CONbits;
+extern volatile __CCP5CONbits_t __at 0xf70 CCP5CONbits;
 
-extern sfr at 0xf71 CCPR5L;
-extern sfr at 0xf72 CCPR5H;
-extern sfr at 0xf73 CCP4CON;
+extern __sfr __at 0xf71 CCPR5L;
+extern __sfr __at 0xf72 CCPR5H;
+extern __sfr __at 0xf73 CCP4CON;
 typedef union {
        struct {
                unsigned CCP4M0:1;
@@ -82,11 +82,11 @@ typedef union {
        };
 } __CCP4CONbits_t;
 
-extern volatile __CCP4CONbits_t at 0xf73 CCP4CONbits;
+extern volatile __CCP4CONbits_t __at 0xf73 CCP4CONbits;
 
-extern sfr at 0xf74 CCPR4L;
-extern sfr at 0xf75 CCPR4H;
-extern sfr at 0xf76 T4CON;
+extern __sfr __at 0xf74 CCPR4L;
+extern __sfr __at 0xf75 CCPR4H;
+extern __sfr __at 0xf76 T4CON;
 typedef union {
        struct {
                unsigned T2CKPS0:1;
@@ -100,11 +100,11 @@ typedef union {
        };
 } __T4CONbits_t;
 
-extern volatile __T4CONbits_t at 0xf76 T4CONbits;
+extern volatile __T4CONbits_t __at 0xf76 T4CONbits;
 
-extern sfr at 0xf77 PR4;
-extern sfr at 0xf78 TMR4;
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf77 PR4;
+extern __sfr __at 0xf78 TMR4;
+extern __sfr __at 0xf80 PORTA;
 typedef union {
        struct {
                unsigned RA0:1;
@@ -151,9 +151,9 @@ typedef union {
        };
 } __PORTAbits_t;
 
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
 
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
 typedef union {
        struct {
                unsigned RB0:1;
@@ -178,9 +178,9 @@ typedef union {
        };
 } __PORTBbits_t;
 
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
 
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
 typedef union {
        struct {
                unsigned RC0:1;
@@ -216,9 +216,9 @@ typedef union {
        };
 } __PORTCbits_t;
 
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
 
-extern sfr at 0xf83 PORTD;
+extern __sfr __at 0xf83 PORTD;
 typedef union {
        struct {
                unsigned RD0:1;
@@ -243,9 +243,9 @@ typedef union {
        };
 } __PORTDbits_t;
 
-extern volatile __PORTDbits_t at 0xf83 PORTDbits;
+extern volatile __PORTDbits_t __at 0xf83 PORTDbits;
 
-extern sfr at 0xf84 PORTE;
+extern __sfr __at 0xf84 PORTE;
 typedef union {
        struct {
                unsigned RE0:1;
@@ -281,9 +281,9 @@ typedef union {
        };
 } __PORTEbits_t;
 
-extern volatile __PORTEbits_t at 0xf84 PORTEbits;
+extern volatile __PORTEbits_t __at 0xf84 PORTEbits;
 
-extern sfr at 0xf85 PORTF;
+extern __sfr __at 0xf85 PORTF;
 typedef union {
        struct {
                unsigned RF0:1;
@@ -297,9 +297,9 @@ typedef union {
        };
 } __PORTFbits_t;
 
-extern volatile __PORTFbits_t at 0xf85 PORTFbits;
+extern volatile __PORTFbits_t __at 0xf85 PORTFbits;
 
-extern sfr at 0xf86 PORTG;
+extern __sfr __at 0xf86 PORTG;
 typedef union {
        struct {
                unsigned RG0:1;
@@ -313,9 +313,9 @@ typedef union {
        };
 } __PORTGbits_t;
 
-extern volatile __PORTGbits_t at 0xf86 PORTGbits;
+extern volatile __PORTGbits_t __at 0xf86 PORTGbits;
 
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
 typedef union {
        struct {
                unsigned LATA0:1;
@@ -329,9 +329,9 @@ typedef union {
        };
 } __LATAbits_t;
 
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
 
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
 typedef union {
        struct {
                unsigned LATB0:1;
@@ -345,9 +345,9 @@ typedef union {
        };
 } __LATBbits_t;
 
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
 
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
 typedef union {
        struct {
                unsigned LATC0:1;
@@ -361,9 +361,9 @@ typedef union {
        };
 } __LATCbits_t;
 
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
 
-extern sfr at 0xf8c LATD;
+extern __sfr __at 0xf8c LATD;
 typedef union {
        struct {
                unsigned LATD0:1;
@@ -377,9 +377,9 @@ typedef union {
        };
 } __LATDbits_t;
 
-extern volatile __LATDbits_t at 0xf8c LATDbits;
+extern volatile __LATDbits_t __at 0xf8c LATDbits;
 
-extern sfr at 0xf8d LATE;
+extern __sfr __at 0xf8d LATE;
 typedef union {
        struct {
                unsigned LATE0:1;
@@ -393,9 +393,9 @@ typedef union {
        };
 } __LATEbits_t;
 
-extern volatile __LATEbits_t at 0xf8d LATEbits;
+extern volatile __LATEbits_t __at 0xf8d LATEbits;
 
-extern sfr at 0xf8e LATF;
+extern __sfr __at 0xf8e LATF;
 typedef union {
        struct {
                unsigned LATF0:1;
@@ -409,9 +409,9 @@ typedef union {
        };
 } __LATFbits_t;
 
-extern volatile __LATFbits_t at 0xf8e LATFbits;
+extern volatile __LATFbits_t __at 0xf8e LATFbits;
 
-extern sfr at 0xf8f LATG;
+extern __sfr __at 0xf8f LATG;
 typedef union {
        struct {
                unsigned LATG0:1;
@@ -425,9 +425,9 @@ typedef union {
        };
 } __LATGbits_t;
 
-extern volatile __LATGbits_t at 0xf8f LATGbits;
+extern volatile __LATGbits_t __at 0xf8f LATGbits;
 
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
 typedef union {
        struct {
                unsigned TRISA0:1;
@@ -441,9 +441,9 @@ typedef union {
        };
 } __TRISAbits_t;
 
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
 
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
 typedef union {
        struct {
                unsigned TRISB0:1;
@@ -457,9 +457,9 @@ typedef union {
        };
 } __TRISBbits_t;
 
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
 
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
 typedef union {
        struct {
                unsigned TRISC0:1;
@@ -473,9 +473,9 @@ typedef union {
        };
 } __TRISCbits_t;
 
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
 
-extern sfr at 0xf95 TRISD;
+extern __sfr __at 0xf95 TRISD;
 typedef union {
        struct {
                unsigned TRISD0:1;
@@ -489,9 +489,9 @@ typedef union {
        };
 } __TRISDbits_t;
 
-extern volatile __TRISDbits_t at 0xf95 TRISDbits;
+extern volatile __TRISDbits_t __at 0xf95 TRISDbits;
 
-extern sfr at 0xf96 TRISE;
+extern __sfr __at 0xf96 TRISE;
 typedef union {
        struct {
                unsigned TRISE0:1;
@@ -505,9 +505,9 @@ typedef union {
        };
 } __TRISEbits_t;
 
-extern volatile __TRISEbits_t at 0xf96 TRISEbits;
+extern volatile __TRISEbits_t __at 0xf96 TRISEbits;
 
-extern sfr at 0xf97 TRISF;
+extern __sfr __at 0xf97 TRISF;
 typedef union {
        struct {
                unsigned TRISF0:1;
@@ -521,9 +521,9 @@ typedef union {
        };
 } __TRISFbits_t;
 
-extern volatile __TRISFbits_t at 0xf97 TRISFbits;
+extern volatile __TRISFbits_t __at 0xf97 TRISFbits;
 
-extern sfr at 0xf98 TRISG;
+extern __sfr __at 0xf98 TRISG;
 typedef union {
        struct {
                unsigned TRISG0:1;
@@ -537,9 +537,9 @@ typedef union {
        };
 } __TRISGbits_t;
 
-extern volatile __TRISGbits_t at 0xf98 TRISGbits;
+extern volatile __TRISGbits_t __at 0xf98 TRISGbits;
 
-extern sfr at 0xf9c MEMCON;
+extern __sfr __at 0xf9c MEMCON;
 typedef union {
        struct {
                unsigned WM0:1;
@@ -553,9 +553,9 @@ typedef union {
        };
 } __MEMCONbits_t;
 
-extern volatile __MEMCONbits_t at 0xf9c MEMCONbits;
+extern volatile __MEMCONbits_t __at 0xf9c MEMCONbits;
 
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
 typedef union {
        struct {
                unsigned TMR1IE:1;
@@ -569,9 +569,9 @@ typedef union {
        };
 } __PIE1bits_t;
 
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
 
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
 typedef union {
        struct {
                unsigned TMR1IF:1;
@@ -585,9 +585,9 @@ typedef union {
        };
 } __PIR1bits_t;
 
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
 
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
 typedef union {
        struct {
                unsigned TMR1IP:1;
@@ -601,9 +601,9 @@ typedef union {
        };
 } __IPR1bits_t;
 
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
 
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
 typedef union {
        struct {
                unsigned CCP2IE:1;
@@ -617,9 +617,9 @@ typedef union {
        };
 } __PIE2bits_t;
 
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
 
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
 typedef union {
        struct {
                unsigned CCP2IF:1;
@@ -633,9 +633,9 @@ typedef union {
        };
 } __PIR2bits_t;
 
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
 
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
 typedef union {
        struct {
                unsigned CCP2IP:1;
@@ -649,9 +649,9 @@ typedef union {
        };
 } __IPR2bits_t;
 
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
 
-extern sfr at 0xfa3 PIE3;
+extern __sfr __at 0xfa3 PIE3;
 typedef union {
        struct {
                unsigned CCP3IE:1;
@@ -665,9 +665,9 @@ typedef union {
        };
 } __PIE3bits_t;
 
-extern volatile __PIE3bits_t at 0xfa3 PIE3bits;
+extern volatile __PIE3bits_t __at 0xfa3 PIE3bits;
 
-extern sfr at 0xfa4 PIR3;
+extern __sfr __at 0xfa4 PIR3;
 typedef union {
        struct {
                unsigned CCP3IF:1;
@@ -681,9 +681,9 @@ typedef union {
        };
 } __PIR3bits_t;
 
-extern volatile __PIR3bits_t at 0xfa4 PIR3bits;
+extern volatile __PIR3bits_t __at 0xfa4 PIR3bits;
 
-extern sfr at 0xfa5 IPR3;
+extern __sfr __at 0xfa5 IPR3;
 typedef union {
        struct {
                unsigned CCP3IP:1;
@@ -697,9 +697,9 @@ typedef union {
        };
 } __IPR3bits_t;
 
-extern volatile __IPR3bits_t at 0xfa5 IPR3bits;
+extern volatile __IPR3bits_t __at 0xfa5 IPR3bits;
 
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
 typedef union {
        struct {
                unsigned RD:1;
@@ -713,13 +713,13 @@ typedef union {
        };
 } __EECON1bits_t;
 
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
 
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfaa EEADRH;
-extern sfr at 0xfab RCSTA1;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfaa EEADRH;
+extern __sfr __at 0xfab RCSTA1;
 typedef union {
        struct {
                unsigned RX9D:1;
@@ -733,9 +733,9 @@ typedef union {
        };
 } __RCSTA1bits_t;
 
-extern volatile __RCSTA1bits_t at 0xfab RCSTA1bits;
+extern volatile __RCSTA1bits_t __at 0xfab RCSTA1bits;
 
-extern sfr at 0xfac TXSTA1;
+extern __sfr __at 0xfac TXSTA1;
 typedef union {
        struct {
                unsigned TX9D:1;
@@ -749,12 +749,12 @@ typedef union {
        };
 } __TXSTA1bits_t;
 
-extern volatile __TXSTA1bits_t at 0xfac TXSTA1bits;
+extern volatile __TXSTA1bits_t __at 0xfac TXSTA1bits;
 
-extern sfr at 0xfad TXREG1;
-extern sfr at 0xfae RCREG1;
-extern sfr at 0xfaf SPBRG1;
-extern sfr at 0xfb0 PSPCON;
+extern __sfr __at 0xfad TXREG1;
+extern __sfr __at 0xfae RCREG1;
+extern __sfr __at 0xfaf SPBRG1;
+extern __sfr __at 0xfb0 PSPCON;
 typedef union {
        struct {
                unsigned :1;
@@ -768,9 +768,9 @@ typedef union {
        };
 } __PSPCONbits_t;
 
-extern volatile __PSPCONbits_t at 0xfb0 PSPCONbits;
+extern volatile __PSPCONbits_t __at 0xfb0 PSPCONbits;
 
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfb1 T3CON;
 typedef union {
        struct {
                unsigned TMR3ON:1;
@@ -784,11 +784,11 @@ typedef union {
        };
 } __T3CONbits_t;
 
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
 
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfb4 CMCON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfb4 CMCON;
 typedef union {
        struct {
                unsigned CM0:1;
@@ -802,9 +802,9 @@ typedef union {
        };
 } __CMCONbits_t;
 
-extern volatile __CMCONbits_t at 0xfb4 CMCONbits;
+extern volatile __CMCONbits_t __at 0xfb4 CMCONbits;
 
-extern sfr at 0xfb5 CVRCON;
+extern __sfr __at 0xfb5 CVRCON;
 typedef union {
        struct {
                unsigned CVR0:1;
@@ -818,9 +818,9 @@ typedef union {
        };
 } __CVRCONbits_t;
 
-extern volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
+extern volatile __CVRCONbits_t __at 0xfb5 CVRCONbits;
 
-extern sfr at 0xfb7 CCP3CON;
+extern __sfr __at 0xfb7 CCP3CON;
 typedef union {
        struct {
                unsigned CCP3M0:1;
@@ -834,11 +834,11 @@ typedef union {
        };
 } __CCP3CONbits_t;
 
-extern volatile __CCP3CONbits_t at 0xfb7 CCP3CONbits;
+extern volatile __CCP3CONbits_t __at 0xfb7 CCP3CONbits;
 
-extern sfr at 0xfb8 CCPR3L;
-extern sfr at 0xfb9 CCPR3H;
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfb8 CCPR3L;
+extern __sfr __at 0xfb9 CCPR3H;
+extern __sfr __at 0xfba CCP2CON;
 typedef union {
        struct {
                unsigned CCP2M0:1;
@@ -852,11 +852,11 @@ typedef union {
        };
 } __CCP2CONbits_t;
 
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
 
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfbd CCP1CON;
 typedef union {
        struct {
                unsigned CCP1M0:1;
@@ -870,11 +870,11 @@ typedef union {
        };
 } __CCP1CONbits_t;
 
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
 
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc0 ADCON2;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc0 ADCON2;
 typedef union {
        struct {
                unsigned ADCS0:1;
@@ -888,9 +888,9 @@ typedef union {
        };
 } __ADCON2bits_t;
 
-extern volatile __ADCON2bits_t at 0xfc0 ADCON2bits;
+extern volatile __ADCON2bits_t __at 0xfc0 ADCON2bits;
 
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfc1 ADCON1;
 typedef union {
        struct {
                unsigned PCFG0:1;
@@ -904,9 +904,9 @@ typedef union {
        };
 } __ADCON1bits_t;
 
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
 
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
 typedef union {
        struct {
                unsigned ADON:1;
@@ -920,11 +920,11 @@ typedef union {
        };
 } __ADCON0bits_t;
 
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
 
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
 typedef union {
        struct {
                unsigned SEN:1;
@@ -938,9 +938,9 @@ typedef union {
        };
 } __SSPCON2bits_t;
 
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
 
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
 typedef union {
        struct {
                unsigned SSPM0:1;
@@ -954,9 +954,9 @@ typedef union {
        };
 } __SSPCON1bits_t;
 
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
 
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
 typedef union {
        struct {
                unsigned BF:1;
@@ -970,11 +970,11 @@ typedef union {
        };
 } __SSPSTATbits_t;
 
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
 
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
 typedef union {
        struct {
                unsigned T2CKPS0:1;
@@ -988,11 +988,11 @@ typedef union {
        };
 } __T2CONbits_t;
 
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
 
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
 typedef union {
        struct {
                unsigned TMR1ON:1;
@@ -1006,11 +1006,11 @@ typedef union {
        };
 } __T1CONbits_t;
 
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
 
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
 typedef union {
        struct {
                unsigned BOR:1;
@@ -1024,9 +1024,9 @@ typedef union {
        };
 } __RCONbits_t;
 
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
 
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
 typedef union {
        struct {
                unsigned SWDTEN:1;
@@ -1051,9 +1051,9 @@ typedef union {
        };
 } __WDTCONbits_t;
 
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
 
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
 typedef union {
        struct {
                unsigned LVDL0:1;
@@ -1078,9 +1078,9 @@ typedef union {
        };
 } __LVDCONbits_t;
 
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
 
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
 typedef union {
        struct {
                unsigned SCS:1;
@@ -1094,12 +1094,12 @@ typedef union {
        };
 } __OSCCONbits_t;
 
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
 
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
 typedef union {
        struct {
                unsigned C:1;
@@ -1113,32 +1113,32 @@ typedef union {
        };
 } __STATUSbits_t;
 
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
 typedef union {
        struct {
                unsigned INT1F:1;
@@ -1163,9 +1163,9 @@ typedef union {
        };
 } __INTCON3bits_t;
 
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
 
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
 typedef union {
        struct {
                unsigned RBIP:1;
@@ -1179,9 +1179,9 @@ typedef union {
        };
 } __INTCON2bits_t;
 
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
 
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
 typedef union {
        struct {
                unsigned RBIF:1;
@@ -1195,18 +1195,18 @@ typedef union {
        };
 } __INTCONbits_t;
 
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
-
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
+
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
 typedef union {
        struct {
                unsigned STKPTR0:1;
@@ -1220,11 +1220,11 @@ typedef union {
        };
 } __STKPTRbits_t;
 
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
 
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
 
 
 /* Configuration registers locations */
index ad55e4a06125849cfa34fa9a6adf9a815fdebc79..b519002145a49107574bde387fe3b1b492705150 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef __PIC18F6620_H__
 #define __PIC18F6620_H__
 
-extern sfr at 0xf6b RCSTA2;
+extern __sfr __at 0xf6b RCSTA2;
 typedef union {
        struct {
                unsigned RX9D:1;
@@ -29,9 +29,9 @@ typedef union {
        };
 } __RCSTA2bits_t;
 
-extern volatile __RCSTA2bits_t at 0xf6b RCSTA2bits;
+extern volatile __RCSTA2bits_t __at 0xf6b RCSTA2bits;
 
-extern sfr at 0xf6c TXSTA2;
+extern __sfr __at 0xf6c TXSTA2;
 typedef union {
        struct {
                unsigned TX9D:1;
@@ -45,12 +45,12 @@ typedef union {
        };
 } __TXSTA2bits_t;
 
-extern volatile __TXSTA2bits_t at 0xf6c TXSTA2bits;
+extern volatile __TXSTA2bits_t __at 0xf6c TXSTA2bits;
 
-extern sfr at 0xf6d TXREG2;
-extern sfr at 0xf6e RCREG2;
-extern sfr at 0xf6f SPBRG2;
-extern sfr at 0xf70 CCP5CON;
+extern __sfr __at 0xf6d TXREG2;
+extern __sfr __at 0xf6e RCREG2;
+extern __sfr __at 0xf6f SPBRG2;
+extern __sfr __at 0xf70 CCP5CON;
 typedef union {
        struct {
                unsigned CCP5M0:1;
@@ -64,11 +64,11 @@ typedef union {
        };
 } __CCP5CONbits_t;
 
-extern volatile __CCP5CONbits_t at 0xf70 CCP5CONbits;
+extern volatile __CCP5CONbits_t __at 0xf70 CCP5CONbits;
 
-extern sfr at 0xf71 CCPR5L;
-extern sfr at 0xf72 CCPR5H;
-extern sfr at 0xf73 CCP4CON;
+extern __sfr __at 0xf71 CCPR5L;
+extern __sfr __at 0xf72 CCPR5H;
+extern __sfr __at 0xf73 CCP4CON;
 typedef union {
        struct {
                unsigned CCP4M0:1;
@@ -82,11 +82,11 @@ typedef union {
        };
 } __CCP4CONbits_t;
 
-extern volatile __CCP4CONbits_t at 0xf73 CCP4CONbits;
+extern volatile __CCP4CONbits_t __at 0xf73 CCP4CONbits;
 
-extern sfr at 0xf74 CCPR4L;
-extern sfr at 0xf75 CCPR4H;
-extern sfr at 0xf76 T4CON;
+extern __sfr __at 0xf74 CCPR4L;
+extern __sfr __at 0xf75 CCPR4H;
+extern __sfr __at 0xf76 T4CON;
 typedef union {
        struct {
                unsigned T2CKPS0:1;
@@ -100,11 +100,11 @@ typedef union {
        };
 } __T4CONbits_t;
 
-extern volatile __T4CONbits_t at 0xf76 T4CONbits;
+extern volatile __T4CONbits_t __at 0xf76 T4CONbits;
 
-extern sfr at 0xf77 PR4;
-extern sfr at 0xf78 TMR4;
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf77 PR4;
+extern __sfr __at 0xf78 TMR4;
+extern __sfr __at 0xf80 PORTA;
 typedef union {
        struct {
                unsigned RA0:1;
@@ -151,9 +151,9 @@ typedef union {
        };
 } __PORTAbits_t;
 
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
 
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
 typedef union {
        struct {
                unsigned RB0:1;
@@ -178,9 +178,9 @@ typedef union {
        };
 } __PORTBbits_t;
 
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
 
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
 typedef union {
        struct {
                unsigned RC0:1;
@@ -216,9 +216,9 @@ typedef union {
        };
 } __PORTCbits_t;
 
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
 
-extern sfr at 0xf83 PORTD;
+extern __sfr __at 0xf83 PORTD;
 typedef union {
        struct {
                unsigned RD0:1;
@@ -243,9 +243,9 @@ typedef union {
        };
 } __PORTDbits_t;
 
-extern volatile __PORTDbits_t at 0xf83 PORTDbits;
+extern volatile __PORTDbits_t __at 0xf83 PORTDbits;
 
-extern sfr at 0xf84 PORTE;
+extern __sfr __at 0xf84 PORTE;
 typedef union {
        struct {
                unsigned RE0:1;
@@ -281,9 +281,9 @@ typedef union {
        };
 } __PORTEbits_t;
 
-extern volatile __PORTEbits_t at 0xf84 PORTEbits;
+extern volatile __PORTEbits_t __at 0xf84 PORTEbits;
 
-extern sfr at 0xf85 PORTF;
+extern __sfr __at 0xf85 PORTF;
 typedef union {
        struct {
                unsigned RF0:1;
@@ -297,9 +297,9 @@ typedef union {
        };
 } __PORTFbits_t;
 
-extern volatile __PORTFbits_t at 0xf85 PORTFbits;
+extern volatile __PORTFbits_t __at 0xf85 PORTFbits;
 
-extern sfr at 0xf86 PORTG;
+extern __sfr __at 0xf86 PORTG;
 typedef union {
        struct {
                unsigned RG0:1;
@@ -313,9 +313,9 @@ typedef union {
        };
 } __PORTGbits_t;
 
-extern volatile __PORTGbits_t at 0xf86 PORTGbits;
+extern volatile __PORTGbits_t __at 0xf86 PORTGbits;
 
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
 typedef union {
        struct {
                unsigned LATA0:1;
@@ -329,9 +329,9 @@ typedef union {
        };
 } __LATAbits_t;
 
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
 
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
 typedef union {
        struct {
                unsigned LATB0:1;
@@ -345,9 +345,9 @@ typedef union {
        };
 } __LATBbits_t;
 
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
 
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
 typedef union {
        struct {
                unsigned LATC0:1;
@@ -361,9 +361,9 @@ typedef union {
        };
 } __LATCbits_t;
 
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
 
-extern sfr at 0xf8c LATD;
+extern __sfr __at 0xf8c LATD;
 typedef union {
        struct {
                unsigned LATD0:1;
@@ -377,9 +377,9 @@ typedef union {
        };
 } __LATDbits_t;
 
-extern volatile __LATDbits_t at 0xf8c LATDbits;
+extern volatile __LATDbits_t __at 0xf8c LATDbits;
 
-extern sfr at 0xf8d LATE;
+extern __sfr __at 0xf8d LATE;
 typedef union {
        struct {
                unsigned LATE0:1;
@@ -393,9 +393,9 @@ typedef union {
        };
 } __LATEbits_t;
 
-extern volatile __LATEbits_t at 0xf8d LATEbits;
+extern volatile __LATEbits_t __at 0xf8d LATEbits;
 
-extern sfr at 0xf8e LATF;
+extern __sfr __at 0xf8e LATF;
 typedef union {
        struct {
                unsigned LATF0:1;
@@ -409,9 +409,9 @@ typedef union {
        };
 } __LATFbits_t;
 
-extern volatile __LATFbits_t at 0xf8e LATFbits;
+extern volatile __LATFbits_t __at 0xf8e LATFbits;
 
-extern sfr at 0xf8f LATG;
+extern __sfr __at 0xf8f LATG;
 typedef union {
        struct {
                unsigned LATG0:1;
@@ -425,9 +425,9 @@ typedef union {
        };
 } __LATGbits_t;
 
-extern volatile __LATGbits_t at 0xf8f LATGbits;
+extern volatile __LATGbits_t __at 0xf8f LATGbits;
 
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
 typedef union {
        struct {
                unsigned TRISA0:1;
@@ -441,9 +441,9 @@ typedef union {
        };
 } __TRISAbits_t;
 
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
 
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
 typedef union {
        struct {
                unsigned TRISB0:1;
@@ -457,9 +457,9 @@ typedef union {
        };
 } __TRISBbits_t;
 
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
 
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
 typedef union {
        struct {
                unsigned TRISC0:1;
@@ -473,9 +473,9 @@ typedef union {
        };
 } __TRISCbits_t;
 
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
 
-extern sfr at 0xf95 TRISD;
+extern __sfr __at 0xf95 TRISD;
 typedef union {
        struct {
                unsigned TRISD0:1;
@@ -489,9 +489,9 @@ typedef union {
        };
 } __TRISDbits_t;
 
-extern volatile __TRISDbits_t at 0xf95 TRISDbits;
+extern volatile __TRISDbits_t __at 0xf95 TRISDbits;
 
-extern sfr at 0xf96 TRISE;
+extern __sfr __at 0xf96 TRISE;
 typedef union {
        struct {
                unsigned TRISE0:1;
@@ -505,9 +505,9 @@ typedef union {
        };
 } __TRISEbits_t;
 
-extern volatile __TRISEbits_t at 0xf96 TRISEbits;
+extern volatile __TRISEbits_t __at 0xf96 TRISEbits;
 
-extern sfr at 0xf97 TRISF;
+extern __sfr __at 0xf97 TRISF;
 typedef union {
        struct {
                unsigned TRISF0:1;
@@ -521,9 +521,9 @@ typedef union {
        };
 } __TRISFbits_t;
 
-extern volatile __TRISFbits_t at 0xf97 TRISFbits;
+extern volatile __TRISFbits_t __at 0xf97 TRISFbits;
 
-extern sfr at 0xf98 TRISG;
+extern __sfr __at 0xf98 TRISG;
 typedef union {
        struct {
                unsigned TRISG0:1;
@@ -537,9 +537,9 @@ typedef union {
        };
 } __TRISGbits_t;
 
-extern volatile __TRISGbits_t at 0xf98 TRISGbits;
+extern volatile __TRISGbits_t __at 0xf98 TRISGbits;
 
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
 typedef union {
        struct {
                unsigned TMR1IE:1;
@@ -553,9 +553,9 @@ typedef union {
        };
 } __PIE1bits_t;
 
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
 
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
 typedef union {
        struct {
                unsigned TMR1IF:1;
@@ -569,9 +569,9 @@ typedef union {
        };
 } __PIR1bits_t;
 
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
 
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
 typedef union {
        struct {
                unsigned TMR1IP:1;
@@ -585,9 +585,9 @@ typedef union {
        };
 } __IPR1bits_t;
 
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
 
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
 typedef union {
        struct {
                unsigned CCP2IE:1;
@@ -601,9 +601,9 @@ typedef union {
        };
 } __PIE2bits_t;
 
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
 
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
 typedef union {
        struct {
                unsigned CCP2IF:1;
@@ -617,9 +617,9 @@ typedef union {
        };
 } __PIR2bits_t;
 
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
 
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
 typedef union {
        struct {
                unsigned CCP2IP:1;
@@ -633,9 +633,9 @@ typedef union {
        };
 } __IPR2bits_t;
 
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
 
-extern sfr at 0xfa3 PIE3;
+extern __sfr __at 0xfa3 PIE3;
 typedef union {
        struct {
                unsigned CCP3IE:1;
@@ -649,9 +649,9 @@ typedef union {
        };
 } __PIE3bits_t;
 
-extern volatile __PIE3bits_t at 0xfa3 PIE3bits;
+extern volatile __PIE3bits_t __at 0xfa3 PIE3bits;
 
-extern sfr at 0xfa4 PIR3;
+extern __sfr __at 0xfa4 PIR3;
 typedef union {
        struct {
                unsigned CCP3IF:1;
@@ -665,9 +665,9 @@ typedef union {
        };
 } __PIR3bits_t;
 
-extern volatile __PIR3bits_t at 0xfa4 PIR3bits;
+extern volatile __PIR3bits_t __at 0xfa4 PIR3bits;
 
-extern sfr at 0xfa5 IPR3;
+extern __sfr __at 0xfa5 IPR3;
 typedef union {
        struct {
                unsigned CCP3IP:1;
@@ -681,9 +681,9 @@ typedef union {
        };
 } __IPR3bits_t;
 
-extern volatile __IPR3bits_t at 0xfa5 IPR3bits;
+extern volatile __IPR3bits_t __at 0xfa5 IPR3bits;
 
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
 typedef union {
        struct {
                unsigned RD:1;
@@ -697,13 +697,13 @@ typedef union {
        };
 } __EECON1bits_t;
 
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
 
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfaa EEADRH;
-extern sfr at 0xfab RCSTA1;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfaa EEADRH;
+extern __sfr __at 0xfab RCSTA1;
 typedef union {
        struct {
                unsigned RX9D:1;
@@ -717,9 +717,9 @@ typedef union {
        };
 } __RCSTA1bits_t;
 
-extern volatile __RCSTA1bits_t at 0xfab RCSTA1bits;
+extern volatile __RCSTA1bits_t __at 0xfab RCSTA1bits;
 
-extern sfr at 0xfac TXSTA1;
+extern __sfr __at 0xfac TXSTA1;
 typedef union {
        struct {
                unsigned TX9D:1;
@@ -733,12 +733,12 @@ typedef union {
        };
 } __TXSTA1bits_t;
 
-extern volatile __TXSTA1bits_t at 0xfac TXSTA1bits;
+extern volatile __TXSTA1bits_t __at 0xfac TXSTA1bits;
 
-extern sfr at 0xfad TXREG1;
-extern sfr at 0xfae RCREG1;
-extern sfr at 0xfaf SPBRG1;
-extern sfr at 0xfb0 PSPCON;
+extern __sfr __at 0xfad TXREG1;
+extern __sfr __at 0xfae RCREG1;
+extern __sfr __at 0xfaf SPBRG1;
+extern __sfr __at 0xfb0 PSPCON;
 typedef union {
        struct {
                unsigned :1;
@@ -752,9 +752,9 @@ typedef union {
        };
 } __PSPCONbits_t;
 
-extern volatile __PSPCONbits_t at 0xfb0 PSPCONbits;
+extern volatile __PSPCONbits_t __at 0xfb0 PSPCONbits;
 
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfb1 T3CON;
 typedef union {
        struct {
                unsigned TMR3ON:1;
@@ -768,11 +768,11 @@ typedef union {
        };
 } __T3CONbits_t;
 
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
 
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfb4 CMCON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfb4 CMCON;
 typedef union {
        struct {
                unsigned CM0:1;
@@ -786,9 +786,9 @@ typedef union {
        };
 } __CMCONbits_t;
 
-extern volatile __CMCONbits_t at 0xfb4 CMCONbits;
+extern volatile __CMCONbits_t __at 0xfb4 CMCONbits;
 
-extern sfr at 0xfb5 CVRCON;
+extern __sfr __at 0xfb5 CVRCON;
 typedef union {
        struct {
                unsigned CVR0:1;
@@ -802,9 +802,9 @@ typedef union {
        };
 } __CVRCONbits_t;
 
-extern volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
+extern volatile __CVRCONbits_t __at 0xfb5 CVRCONbits;
 
-extern sfr at 0xfb7 CCP3CON;
+extern __sfr __at 0xfb7 CCP3CON;
 typedef union {
        struct {
                unsigned CCP3M0:1;
@@ -818,11 +818,11 @@ typedef union {
        };
 } __CCP3CONbits_t;
 
-extern volatile __CCP3CONbits_t at 0xfb7 CCP3CONbits;
+extern volatile __CCP3CONbits_t __at 0xfb7 CCP3CONbits;
 
-extern sfr at 0xfb8 CCPR3L;
-extern sfr at 0xfb9 CCPR3H;
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfb8 CCPR3L;
+extern __sfr __at 0xfb9 CCPR3H;
+extern __sfr __at 0xfba CCP2CON;
 typedef union {
        struct {
                unsigned CCP2M0:1;
@@ -836,11 +836,11 @@ typedef union {
        };
 } __CCP2CONbits_t;
 
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
 
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfbd CCP1CON;
 typedef union {
        struct {
                unsigned CCP1M0:1;
@@ -854,11 +854,11 @@ typedef union {
        };
 } __CCP1CONbits_t;
 
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
 
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc0 ADCON2;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc0 ADCON2;
 typedef union {
        struct {
                unsigned ADCS0:1;
@@ -872,9 +872,9 @@ typedef union {
        };
 } __ADCON2bits_t;
 
-extern volatile __ADCON2bits_t at 0xfc0 ADCON2bits;
+extern volatile __ADCON2bits_t __at 0xfc0 ADCON2bits;
 
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfc1 ADCON1;
 typedef union {
        struct {
                unsigned PCFG0:1;
@@ -888,9 +888,9 @@ typedef union {
        };
 } __ADCON1bits_t;
 
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
 
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
 typedef union {
        struct {
                unsigned ADON:1;
@@ -904,11 +904,11 @@ typedef union {
        };
 } __ADCON0bits_t;
 
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
 
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
 typedef union {
        struct {
                unsigned SEN:1;
@@ -922,9 +922,9 @@ typedef union {
        };
 } __SSPCON2bits_t;
 
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
 
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
 typedef union {
        struct {
                unsigned SSPM0:1;
@@ -938,9 +938,9 @@ typedef union {
        };
 } __SSPCON1bits_t;
 
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
 
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
 typedef union {
        struct {
                unsigned BF:1;
@@ -954,11 +954,11 @@ typedef union {
        };
 } __SSPSTATbits_t;
 
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
 
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
 typedef union {
        struct {
                unsigned T2CKPS0:1;
@@ -972,11 +972,11 @@ typedef union {
        };
 } __T2CONbits_t;
 
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
 
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
 typedef union {
        struct {
                unsigned TMR1ON:1;
@@ -990,11 +990,11 @@ typedef union {
        };
 } __T1CONbits_t;
 
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
 
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
 typedef union {
        struct {
                unsigned BOR:1;
@@ -1008,9 +1008,9 @@ typedef union {
        };
 } __RCONbits_t;
 
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
 
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
 typedef union {
        struct {
                unsigned SWDTEN:1;
@@ -1035,9 +1035,9 @@ typedef union {
        };
 } __WDTCONbits_t;
 
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
 
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
 typedef union {
        struct {
                unsigned LVDL0:1;
@@ -1062,9 +1062,9 @@ typedef union {
        };
 } __LVDCONbits_t;
 
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
 
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
 typedef union {
        struct {
                unsigned SCS:1;
@@ -1078,12 +1078,12 @@ typedef union {
        };
 } __OSCCONbits_t;
 
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
 
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
 typedef union {
        struct {
                unsigned C:1;
@@ -1097,32 +1097,32 @@ typedef union {
        };
 } __STATUSbits_t;
 
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
 typedef union {
        struct {
                unsigned INT1F:1;
@@ -1147,9 +1147,9 @@ typedef union {
        };
 } __INTCON3bits_t;
 
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
 
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
 typedef union {
        struct {
                unsigned RBIP:1;
@@ -1163,9 +1163,9 @@ typedef union {
        };
 } __INTCON2bits_t;
 
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
 
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
 typedef union {
        struct {
                unsigned RBIF:1;
@@ -1179,18 +1179,18 @@ typedef union {
        };
 } __INTCONbits_t;
 
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
-
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
+
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
 typedef union {
        struct {
                unsigned STKPTR0:1;
@@ -1204,11 +1204,11 @@ typedef union {
        };
 } __STKPTRbits_t;
 
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
 
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
 
 
 /* Configuration registers locations */
index b8f0d0751657c6971c5a3eae29fdbc503366f887..c28873dc05aafe53bbae8adedacfc424d5e99c98 100644 (file)
@@ -15,8 +15,8 @@
 #ifndef __PIC18F6680_H__
 #define __PIC18F6680_H__
 
-extern sfr at 0xf00 RXF0SIDH;
-extern sfr at 0xf01 RXF0SIDL;
+extern __sfr __at 0xf00 RXF0SIDH;
+extern __sfr __at 0xf01 RXF0SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -30,12 +30,12 @@ typedef union {
        };
 } __RXF0SIDLbits_t;
 
-extern volatile __RXF0SIDLbits_t at 0xf01 RXF0SIDLbits;
+extern volatile __RXF0SIDLbits_t __at 0xf01 RXF0SIDLbits;
 
-extern sfr at 0xf02 RXF0EIDH;
-extern sfr at 0xf03 RXF0EIDL;
-extern sfr at 0xf04 RXF1SIDH;
-extern sfr at 0xf05 RXF1SIDL;
+extern __sfr __at 0xf02 RXF0EIDH;
+extern __sfr __at 0xf03 RXF0EIDL;
+extern __sfr __at 0xf04 RXF1SIDH;
+extern __sfr __at 0xf05 RXF1SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -49,14 +49,14 @@ typedef union {
        };
 } __RXF1SIDLbits_t;
 
-extern volatile __RXF1SIDLbits_t at 0xf05 RXF1SIDLbits;
+extern volatile __RXF1SIDLbits_t __at 0xf05 RXF1SIDLbits;
 
-extern sfr at 0xf06 RXF1EIDH;
-extern sfr at 0xf07 RXF1EIDL;
-extern sfr at 0xf08 RXF2SIDH;
-extern sfr at 0xf09 RXF2SIDL;
-extern sfr at 0xf0a RXF2EIDH;
-extern sfr at 0xf0b RXF2EIDL;
+extern __sfr __at 0xf06 RXF1EIDH;
+extern __sfr __at 0xf07 RXF1EIDL;
+extern __sfr __at 0xf08 RXF2SIDH;
+extern __sfr __at 0xf09 RXF2SIDL;
+extern __sfr __at 0xf0a RXF2EIDH;
+extern __sfr __at 0xf0b RXF2EIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -70,10 +70,10 @@ typedef union {
        };
 } __RXF2EIDLbits_t;
 
-extern volatile __RXF2EIDLbits_t at 0xf0b RXF2EIDLbits;
+extern volatile __RXF2EIDLbits_t __at 0xf0b RXF2EIDLbits;
 
-extern sfr at 0xf0c RXF3SIDH;
-extern sfr at 0xf0d RXF3SIDL;
+extern __sfr __at 0xf0c RXF3SIDH;
+extern __sfr __at 0xf0d RXF3SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -87,12 +87,12 @@ typedef union {
        };
 } __RXF3SIDLbits_t;
 
-extern volatile __RXF3SIDLbits_t at 0xf0d RXF3SIDLbits;
+extern volatile __RXF3SIDLbits_t __at 0xf0d RXF3SIDLbits;
 
-extern sfr at 0xf0e RXF3EIDH;
-extern sfr at 0xf0f RXF3EIDL;
-extern sfr at 0xf10 RXF4SIDH;
-extern sfr at 0xf11 RXF4SIDL;
+extern __sfr __at 0xf0e RXF3EIDH;
+extern __sfr __at 0xf0f RXF3EIDL;
+extern __sfr __at 0xf10 RXF4SIDH;
+extern __sfr __at 0xf11 RXF4SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -106,12 +106,12 @@ typedef union {
        };
 } __RXF4SIDLbits_t;
 
-extern volatile __RXF4SIDLbits_t at 0xf11 RXF4SIDLbits;
+extern volatile __RXF4SIDLbits_t __at 0xf11 RXF4SIDLbits;
 
-extern sfr at 0xf12 RXF4EIDH;
-extern sfr at 0xf13 RXF4EIDL;
-extern sfr at 0xf14 RXF5SIDH;
-extern sfr at 0xf15 RXF5SIDL;
+extern __sfr __at 0xf12 RXF4EIDH;
+extern __sfr __at 0xf13 RXF4EIDL;
+extern __sfr __at 0xf14 RXF5SIDH;
+extern __sfr __at 0xf15 RXF5SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -125,12 +125,12 @@ typedef union {
        };
 } __RXF5SIDLbits_t;
 
-extern volatile __RXF5SIDLbits_t at 0xf15 RXF5SIDLbits;
+extern volatile __RXF5SIDLbits_t __at 0xf15 RXF5SIDLbits;
 
-extern sfr at 0xf16 RXF5EIDH;
-extern sfr at 0xf17 RXF5EIDL;
-extern sfr at 0xf18 RXM0SIDH;
-extern sfr at 0xf19 RXM0SIDL;
+extern __sfr __at 0xf16 RXF5EIDH;
+extern __sfr __at 0xf17 RXF5EIDL;
+extern __sfr __at 0xf18 RXM0SIDH;
+extern __sfr __at 0xf19 RXM0SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -144,12 +144,12 @@ typedef union {
        };
 } __RXM0SIDLbits_t;
 
-extern volatile __RXM0SIDLbits_t at 0xf19 RXM0SIDLbits;
+extern volatile __RXM0SIDLbits_t __at 0xf19 RXM0SIDLbits;
 
-extern sfr at 0xf1a RXM0EIDH;
-extern sfr at 0xf1b RXM0EIDL;
-extern sfr at 0xf1c RXM1SIDH;
-extern sfr at 0xf1d RXM1SIDL;
+extern __sfr __at 0xf1a RXM0EIDH;
+extern __sfr __at 0xf1b RXM0EIDL;
+extern __sfr __at 0xf1c RXM1SIDH;
+extern __sfr __at 0xf1d RXM1SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -163,11 +163,11 @@ typedef union {
        };
 } __RXM1SIDLbits_t;
 
-extern volatile __RXM1SIDLbits_t at 0xf1d RXM1SIDLbits;
+extern volatile __RXM1SIDLbits_t __at 0xf1d RXM1SIDLbits;
 
-extern sfr at 0xf1e RXM1EIDH;
-extern sfr at 0xf1f RXM1EIDL;
-extern sfr at 0xf20 TXB2CON;
+extern __sfr __at 0xf1e RXM1EIDH;
+extern __sfr __at 0xf1f RXM1EIDL;
+extern __sfr __at 0xf20 TXB2CON;
 typedef union {
        struct {
                unsigned TXPRI0:1;
@@ -181,10 +181,10 @@ typedef union {
        };
 } __TXB2CONbits_t;
 
-extern volatile __TXB2CONbits_t at 0xf20 TXB2CONbits;
+extern volatile __TXB2CONbits_t __at 0xf20 TXB2CONbits;
 
-extern sfr at 0xf21 TXB2SIDH;
-extern sfr at 0xf22 TXB2SIDL;
+extern __sfr __at 0xf21 TXB2SIDH;
+extern __sfr __at 0xf22 TXB2SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -198,11 +198,11 @@ typedef union {
        };
 } __TXB2SIDLbits_t;
 
-extern volatile __TXB2SIDLbits_t at 0xf22 TXB2SIDLbits;
+extern volatile __TXB2SIDLbits_t __at 0xf22 TXB2SIDLbits;
 
-extern sfr at 0xf23 TXB2EIDH;
-extern sfr at 0xf24 TXB2EIDL;
-extern sfr at 0xf25 TXB2DLC;
+extern __sfr __at 0xf23 TXB2EIDH;
+extern __sfr __at 0xf24 TXB2EIDL;
+extern __sfr __at 0xf25 TXB2DLC;
 typedef union {
        struct {
                unsigned DLC0:1;
@@ -216,18 +216,18 @@ typedef union {
        };
 } __TXB2DLCbits_t;
 
-extern volatile __TXB2DLCbits_t at 0xf25 TXB2DLCbits;
+extern volatile __TXB2DLCbits_t __at 0xf25 TXB2DLCbits;
 
-extern sfr at 0xf26 TXB2D0;
-extern sfr at 0xf27 TXB2D1;
-extern sfr at 0xf28 TXB2D2;
-extern sfr at 0xf29 TXB2D3;
-extern sfr at 0xf2a TXB2D4;
-extern sfr at 0xf2b TXB2D5;
-extern sfr at 0xf2c TXB2D6;
-extern sfr at 0xf2d TXB2D7;
-extern sfr at 0xf2e CANSTATRO3;
-extern sfr at 0xf30 TXB1CON;
+extern __sfr __at 0xf26 TXB2D0;
+extern __sfr __at 0xf27 TXB2D1;
+extern __sfr __at 0xf28 TXB2D2;
+extern __sfr __at 0xf29 TXB2D3;
+extern __sfr __at 0xf2a TXB2D4;
+extern __sfr __at 0xf2b TXB2D5;
+extern __sfr __at 0xf2c TXB2D6;
+extern __sfr __at 0xf2d TXB2D7;
+extern __sfr __at 0xf2e CANSTATRO3;
+extern __sfr __at 0xf30 TXB1CON;
 typedef union {
        struct {
                unsigned TXPRI0:1;
@@ -241,10 +241,10 @@ typedef union {
        };
 } __TXB1CONbits_t;
 
-extern volatile __TXB1CONbits_t at 0xf30 TXB1CONbits;
+extern volatile __TXB1CONbits_t __at 0xf30 TXB1CONbits;
 
-extern sfr at 0xf31 TXB1SIDH;
-extern sfr at 0xf32 TXB1SIDL;
+extern __sfr __at 0xf31 TXB1SIDH;
+extern __sfr __at 0xf32 TXB1SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -258,11 +258,11 @@ typedef union {
        };
 } __TXB1SIDLbits_t;
 
-extern volatile __TXB1SIDLbits_t at 0xf32 TXB1SIDLbits;
+extern volatile __TXB1SIDLbits_t __at 0xf32 TXB1SIDLbits;
 
-extern sfr at 0xf33 TXB1EIDH;
-extern sfr at 0xf34 TXB1EIDL;
-extern sfr at 0xf35 TXB1DLC;
+extern __sfr __at 0xf33 TXB1EIDH;
+extern __sfr __at 0xf34 TXB1EIDL;
+extern __sfr __at 0xf35 TXB1DLC;
 typedef union {
        struct {
                unsigned DLC0:1;
@@ -276,18 +276,18 @@ typedef union {
        };
 } __TXB1DLCbits_t;
 
-extern volatile __TXB1DLCbits_t at 0xf35 TXB1DLCbits;
+extern volatile __TXB1DLCbits_t __at 0xf35 TXB1DLCbits;
 
-extern sfr at 0xf36 TXB1D0;
-extern sfr at 0xf37 TXB1D1;
-extern sfr at 0xf38 TXB1D2;
-extern sfr at 0xf39 TXB1D3;
-extern sfr at 0xf3a TXB1D4;
-extern sfr at 0xf3b TXB1D5;
-extern sfr at 0xf3c TXB1D6;
-extern sfr at 0xf3d TXB1D7;
-extern sfr at 0xf3e CANSTATRO2;
-extern sfr at 0xf40 TXB0CON;
+extern __sfr __at 0xf36 TXB1D0;
+extern __sfr __at 0xf37 TXB1D1;
+extern __sfr __at 0xf38 TXB1D2;
+extern __sfr __at 0xf39 TXB1D3;
+extern __sfr __at 0xf3a TXB1D4;
+extern __sfr __at 0xf3b TXB1D5;
+extern __sfr __at 0xf3c TXB1D6;
+extern __sfr __at 0xf3d TXB1D7;
+extern __sfr __at 0xf3e CANSTATRO2;
+extern __sfr __at 0xf40 TXB0CON;
 typedef union {
        struct {
                unsigned TXPRI0:1;
@@ -301,13 +301,13 @@ typedef union {
        };
 } __TXB0CONbits_t;
 
-extern volatile __TXB0CONbits_t at 0xf40 TXB0CONbits;
+extern volatile __TXB0CONbits_t __at 0xf40 TXB0CONbits;
 
-extern sfr at 0xf41 TXB0SIDH;
-extern sfr at 0xf42 TXB0SIDL;
-extern sfr at 0xf43 TXB0EIDH;
-extern sfr at 0xf44 TXB0EIDL;
-extern sfr at 0xf45 TXB0DLC;
+extern __sfr __at 0xf41 TXB0SIDH;
+extern __sfr __at 0xf42 TXB0SIDL;
+extern __sfr __at 0xf43 TXB0EIDH;
+extern __sfr __at 0xf44 TXB0EIDL;
+extern __sfr __at 0xf45 TXB0DLC;
 typedef union {
        struct {
                unsigned DLC0:1;
@@ -321,18 +321,18 @@ typedef union {
        };
 } __TXB0DLCbits_t;
 
-extern volatile __TXB0DLCbits_t at 0xf45 TXB0DLCbits;
+extern volatile __TXB0DLCbits_t __at 0xf45 TXB0DLCbits;
 
-extern sfr at 0xf46 TXB0D0;
-extern sfr at 0xf47 TXB0D1;
-extern sfr at 0xf48 TXB0D2;
-extern sfr at 0xf49 TXB0D3;
-extern sfr at 0xf4a TXB0D4;
-extern sfr at 0xf4b TXB0D5;
-extern sfr at 0xf4c TXB0D6;
-extern sfr at 0xf4d TXB0D7;
-extern sfr at 0xf4e CANSTATRO1;
-extern sfr at 0xf50 RXB1CON;
+extern __sfr __at 0xf46 TXB0D0;
+extern __sfr __at 0xf47 TXB0D1;
+extern __sfr __at 0xf48 TXB0D2;
+extern __sfr __at 0xf49 TXB0D3;
+extern __sfr __at 0xf4a TXB0D4;
+extern __sfr __at 0xf4b TXB0D5;
+extern __sfr __at 0xf4c TXB0D6;
+extern __sfr __at 0xf4d TXB0D7;
+extern __sfr __at 0xf4e CANSTATRO1;
+extern __sfr __at 0xf50 RXB1CON;
 typedef union {
        struct {
                unsigned :1;
@@ -346,10 +346,10 @@ typedef union {
        };
 } __RXB1CONbits_t;
 
-extern volatile __RXB1CONbits_t at 0xf50 RXB1CONbits;
+extern volatile __RXB1CONbits_t __at 0xf50 RXB1CONbits;
 
-extern sfr at 0xf51 RXB1SIDH;
-extern sfr at 0xf52 RXB1SIDL;
+extern __sfr __at 0xf51 RXB1SIDH;
+extern __sfr __at 0xf52 RXB1SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -363,11 +363,11 @@ typedef union {
        };
 } __RXB1SIDLbits_t;
 
-extern volatile __RXB1SIDLbits_t at 0xf52 RXB1SIDLbits;
+extern volatile __RXB1SIDLbits_t __at 0xf52 RXB1SIDLbits;
 
-extern sfr at 0xf53 RXB1EIDH;
-extern sfr at 0xf54 RXB1EIDL;
-extern sfr at 0xf55 RXB1DLC;
+extern __sfr __at 0xf53 RXB1EIDH;
+extern __sfr __at 0xf54 RXB1EIDL;
+extern __sfr __at 0xf55 RXB1DLC;
 typedef union {
        struct {
                unsigned DLC0:1;
@@ -381,18 +381,18 @@ typedef union {
        };
 } __RXB1DLCbits_t;
 
-extern volatile __RXB1DLCbits_t at 0xf55 RXB1DLCbits;
+extern volatile __RXB1DLCbits_t __at 0xf55 RXB1DLCbits;
 
-extern sfr at 0xf56 RXB1D0;
-extern sfr at 0xf57 RXB1D1;
-extern sfr at 0xf58 RXB1D2;
-extern sfr at 0xf59 RXB1D3;
-extern sfr at 0xf5a RXB1D4;
-extern sfr at 0xf5b RXB1D5;
-extern sfr at 0xf5c RXB1D6;
-extern sfr at 0xf5d RXB1D7;
-extern sfr at 0xf5e CANSTATRO0;
-extern sfr at 0xf60 RXB0CON;
+extern __sfr __at 0xf56 RXB1D0;
+extern __sfr __at 0xf57 RXB1D1;
+extern __sfr __at 0xf58 RXB1D2;
+extern __sfr __at 0xf59 RXB1D3;
+extern __sfr __at 0xf5a RXB1D4;
+extern __sfr __at 0xf5b RXB1D5;
+extern __sfr __at 0xf5c RXB1D6;
+extern __sfr __at 0xf5d RXB1D7;
+extern __sfr __at 0xf5e CANSTATRO0;
+extern __sfr __at 0xf60 RXB0CON;
 typedef union {
        struct {
                unsigned FILHIT0:1;
@@ -406,10 +406,10 @@ typedef union {
        };
 } __RXB0CONbits_t;
 
-extern volatile __RXB0CONbits_t at 0xf60 RXB0CONbits;
+extern volatile __RXB0CONbits_t __at 0xf60 RXB0CONbits;
 
-extern sfr at 0xf61 RXB0SIDH;
-extern sfr at 0xf62 RXB0SIDL;
+extern __sfr __at 0xf61 RXB0SIDH;
+extern __sfr __at 0xf62 RXB0SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -423,20 +423,20 @@ typedef union {
        };
 } __RXB0SIDLbits_t;
 
-extern volatile __RXB0SIDLbits_t at 0xf62 RXB0SIDLbits;
+extern volatile __RXB0SIDLbits_t __at 0xf62 RXB0SIDLbits;
 
-extern sfr at 0xf63 RXB0EIDH;
-extern sfr at 0xf64 RXB0EIDL;
-extern sfr at 0xf65 RXB0DLC;
-extern sfr at 0xf66 RXB0D0;
-extern sfr at 0xf67 RXB0D1;
-extern sfr at 0xf68 RXB0D2;
-extern sfr at 0xf69 RXB0D3;
-extern sfr at 0xf6a RXB0D4;
-extern sfr at 0xf6b RXB0D5;
-extern sfr at 0xf6c RXB0D6;
-extern sfr at 0xf6d RXB0D7;
-extern sfr at 0xf6e CANSTAT;
+extern __sfr __at 0xf63 RXB0EIDH;
+extern __sfr __at 0xf64 RXB0EIDL;
+extern __sfr __at 0xf65 RXB0DLC;
+extern __sfr __at 0xf66 RXB0D0;
+extern __sfr __at 0xf67 RXB0D1;
+extern __sfr __at 0xf68 RXB0D2;
+extern __sfr __at 0xf69 RXB0D3;
+extern __sfr __at 0xf6a RXB0D4;
+extern __sfr __at 0xf6b RXB0D5;
+extern __sfr __at 0xf6c RXB0D6;
+extern __sfr __at 0xf6d RXB0D7;
+extern __sfr __at 0xf6e CANSTAT;
 typedef union {
        struct {
                unsigned :1;
@@ -450,9 +450,9 @@ typedef union {
        };
 } __CANSTATbits_t;
 
-extern volatile __CANSTATbits_t at 0xf6e CANSTATbits;
+extern volatile __CANSTATbits_t __at 0xf6e CANSTATbits;
 
-extern sfr at 0xf6f CANCON;
+extern __sfr __at 0xf6f CANCON;
 typedef union {
        struct {
                unsigned :1;
@@ -466,9 +466,9 @@ typedef union {
        };
 } __CANCONbits_t;
 
-extern volatile __CANCONbits_t at 0xf6f CANCONbits;
+extern volatile __CANCONbits_t __at 0xf6f CANCONbits;
 
-extern sfr at 0xf70 BRGCON1;
+extern __sfr __at 0xf70 BRGCON1;
 typedef union {
        struct {
                unsigned BRP0:1;
@@ -482,9 +482,9 @@ typedef union {
        };
 } __BRGCON1bits_t;
 
-extern volatile __BRGCON1bits_t at 0xf70 BRGCON1bits;
+extern volatile __BRGCON1bits_t __at 0xf70 BRGCON1bits;
 
-extern sfr at 0xf71 BRGCON2;
+extern __sfr __at 0xf71 BRGCON2;
 typedef union {
        struct {
                unsigned PRSEG0:1;
@@ -498,9 +498,9 @@ typedef union {
        };
 } __BRGCON2bits_t;
 
-extern volatile __BRGCON2bits_t at 0xf71 BRGCON2bits;
+extern volatile __BRGCON2bits_t __at 0xf71 BRGCON2bits;
 
-extern sfr at 0xf72 BRGCON3;
+extern __sfr __at 0xf72 BRGCON3;
 typedef union {
        struct {
                unsigned SEG2PH0:1;
@@ -514,9 +514,9 @@ typedef union {
        };
 } __BRGCON3bits_t;
 
-extern volatile __BRGCON3bits_t at 0xf72 BRGCON3bits;
+extern volatile __BRGCON3bits_t __at 0xf72 BRGCON3bits;
 
-extern sfr at 0xf73 CIOCON;
+extern __sfr __at 0xf73 CIOCON;
 typedef union {
        struct {
                unsigned :1;
@@ -530,9 +530,9 @@ typedef union {
        };
 } __CIOCONbits_t;
 
-extern volatile __CIOCONbits_t at 0xf73 CIOCONbits;
+extern volatile __CIOCONbits_t __at 0xf73 CIOCONbits;
 
-extern sfr at 0xf74 COMSTAT;
+extern __sfr __at 0xf74 COMSTAT;
 typedef union {
        struct {
                unsigned EWARN:1;
@@ -546,9 +546,9 @@ typedef union {
        };
 } __COMSTATbits_t;
 
-extern volatile __COMSTATbits_t at 0xf74 COMSTATbits;
+extern volatile __COMSTATbits_t __at 0xf74 COMSTATbits;
 
-extern sfr at 0xf75 RXERRCNT;
+extern __sfr __at 0xf75 RXERRCNT;
 typedef union {
        struct {
                unsigned REC0:1;
@@ -562,9 +562,9 @@ typedef union {
        };
 } __RXERRCNTbits_t;
 
-extern volatile __RXERRCNTbits_t at 0xf75 RXERRCNTbits;
+extern volatile __RXERRCNTbits_t __at 0xf75 RXERRCNTbits;
 
-extern sfr at 0xf76 TXERRCNT;
+extern __sfr __at 0xf76 TXERRCNT;
 typedef union {
        struct {
                unsigned TEC0:1;
@@ -578,9 +578,9 @@ typedef union {
        };
 } __TXERRCNTbits_t;
 
-extern volatile __TXERRCNTbits_t at 0xf76 TXERRCNTbits;
+extern volatile __TXERRCNTbits_t __at 0xf76 TXERRCNTbits;
 
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf80 PORTA;
 typedef union {
        struct {
                unsigned RA0:1;
@@ -627,9 +627,9 @@ typedef union {
        };
 } __PORTAbits_t;
 
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
 
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
 typedef union {
        struct {
                unsigned RB0:1;
@@ -654,9 +654,9 @@ typedef union {
        };
 } __PORTBbits_t;
 
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
 
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
 typedef union {
        struct {
                unsigned RC0:1;
@@ -692,9 +692,9 @@ typedef union {
        };
 } __PORTCbits_t;
 
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
 
-extern sfr at 0xf83 PORTD;
+extern __sfr __at 0xf83 PORTD;
 typedef union {
        struct {
                unsigned RD0:1;
@@ -719,9 +719,9 @@ typedef union {
        };
 } __PORTDbits_t;
 
-extern volatile __PORTDbits_t at 0xf83 PORTDbits;
+extern volatile __PORTDbits_t __at 0xf83 PORTDbits;
 
-extern sfr at 0xf84 PORTE;
+extern __sfr __at 0xf84 PORTE;
 typedef union {
        struct {
                unsigned RE0:1;
@@ -757,9 +757,9 @@ typedef union {
        };
 } __PORTEbits_t;
 
-extern volatile __PORTEbits_t at 0xf84 PORTEbits;
+extern volatile __PORTEbits_t __at 0xf84 PORTEbits;
 
-extern sfr at 0xf85 PORTF;
+extern __sfr __at 0xf85 PORTF;
 typedef union {
        struct {
                unsigned RF0:1;
@@ -773,9 +773,9 @@ typedef union {
        };
 } __PORTFbits_t;
 
-extern volatile __PORTFbits_t at 0xf85 PORTFbits;
+extern volatile __PORTFbits_t __at 0xf85 PORTFbits;
 
-extern sfr at 0xf86 PORTG;
+extern __sfr __at 0xf86 PORTG;
 typedef union {
        struct {
                unsigned RG0:1;
@@ -789,9 +789,9 @@ typedef union {
        };
 } __PORTGbits_t;
 
-extern volatile __PORTGbits_t at 0xf86 PORTGbits;
+extern volatile __PORTGbits_t __at 0xf86 PORTGbits;
 
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
 typedef union {
        struct {
                unsigned LATA0:1;
@@ -805,9 +805,9 @@ typedef union {
        };
 } __LATAbits_t;
 
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
 
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
 typedef union {
        struct {
                unsigned LATB0:1;
@@ -821,9 +821,9 @@ typedef union {
        };
 } __LATBbits_t;
 
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
 
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
 typedef union {
        struct {
                unsigned LATC0:1;
@@ -837,9 +837,9 @@ typedef union {
        };
 } __LATCbits_t;
 
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
 
-extern sfr at 0xf8c LATD;
+extern __sfr __at 0xf8c LATD;
 typedef union {
        struct {
                unsigned LATD0:1;
@@ -853,9 +853,9 @@ typedef union {
        };
 } __LATDbits_t;
 
-extern volatile __LATDbits_t at 0xf8c LATDbits;
+extern volatile __LATDbits_t __at 0xf8c LATDbits;
 
-extern sfr at 0xf8d LATE;
+extern __sfr __at 0xf8d LATE;
 typedef union {
        struct {
                unsigned LATE0:1;
@@ -869,9 +869,9 @@ typedef union {
        };
 } __LATEbits_t;
 
-extern volatile __LATEbits_t at 0xf8d LATEbits;
+extern volatile __LATEbits_t __at 0xf8d LATEbits;
 
-extern sfr at 0xf8e LATF;
+extern __sfr __at 0xf8e LATF;
 typedef union {
        struct {
                unsigned LATF0:1;
@@ -885,9 +885,9 @@ typedef union {
        };
 } __LATFbits_t;
 
-extern volatile __LATFbits_t at 0xf8e LATFbits;
+extern volatile __LATFbits_t __at 0xf8e LATFbits;
 
-extern sfr at 0xf8f LATG;
+extern __sfr __at 0xf8f LATG;
 typedef union {
        struct {
                unsigned LATG0:1;
@@ -901,9 +901,9 @@ typedef union {
        };
 } __LATGbits_t;
 
-extern volatile __LATGbits_t at 0xf8f LATGbits;
+extern volatile __LATGbits_t __at 0xf8f LATGbits;
 
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
 typedef union {
        struct {
                unsigned TRISA0:1;
@@ -917,9 +917,9 @@ typedef union {
        };
 } __TRISAbits_t;
 
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
 
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
 typedef union {
        struct {
                unsigned TRISB0:1;
@@ -933,9 +933,9 @@ typedef union {
        };
 } __TRISBbits_t;
 
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
 
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
 typedef union {
        struct {
                unsigned TRISC0:1;
@@ -949,9 +949,9 @@ typedef union {
        };
 } __TRISCbits_t;
 
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
 
-extern sfr at 0xf95 TRISD;
+extern __sfr __at 0xf95 TRISD;
 typedef union {
        struct {
                unsigned TRISD0:1;
@@ -965,9 +965,9 @@ typedef union {
        };
 } __TRISDbits_t;
 
-extern volatile __TRISDbits_t at 0xf95 TRISDbits;
+extern volatile __TRISDbits_t __at 0xf95 TRISDbits;
 
-extern sfr at 0xf96 TRISE;
+extern __sfr __at 0xf96 TRISE;
 typedef union {
        struct {
                unsigned TRISE0:1;
@@ -981,9 +981,9 @@ typedef union {
        };
 } __TRISEbits_t;
 
-extern volatile __TRISEbits_t at 0xf96 TRISEbits;
+extern volatile __TRISEbits_t __at 0xf96 TRISEbits;
 
-extern sfr at 0xf97 TRISF;
+extern __sfr __at 0xf97 TRISF;
 typedef union {
        struct {
                unsigned TRISF0:1;
@@ -997,9 +997,9 @@ typedef union {
        };
 } __TRISFbits_t;
 
-extern volatile __TRISFbits_t at 0xf97 TRISFbits;
+extern volatile __TRISFbits_t __at 0xf97 TRISFbits;
 
-extern sfr at 0xf98 TRISG;
+extern __sfr __at 0xf98 TRISG;
 typedef union {
        struct {
                unsigned TRISG0:1;
@@ -1013,9 +1013,9 @@ typedef union {
        };
 } __TRISGbits_t;
 
-extern volatile __TRISGbits_t at 0xf98 TRISGbits;
+extern volatile __TRISGbits_t __at 0xf98 TRISGbits;
 
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
 typedef union {
        struct {
                unsigned TMR1IE:1;
@@ -1029,9 +1029,9 @@ typedef union {
        };
 } __PIE1bits_t;
 
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
 
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
 typedef union {
        struct {
                unsigned TMR1IF:1;
@@ -1045,9 +1045,9 @@ typedef union {
        };
 } __PIR1bits_t;
 
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
 
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
 typedef union {
        struct {
                unsigned TMR1IP:1;
@@ -1061,9 +1061,9 @@ typedef union {
        };
 } __IPR1bits_t;
 
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
 
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
 typedef union {
        struct {
                unsigned CCP2IE:1;
@@ -1077,9 +1077,9 @@ typedef union {
        };
 } __PIE2bits_t;
 
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
 
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
 typedef union {
        struct {
                unsigned CCP2IF:1;
@@ -1093,9 +1093,9 @@ typedef union {
        };
 } __PIR2bits_t;
 
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
 
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
 typedef union {
        struct {
                unsigned CCP2IP:1;
@@ -1109,9 +1109,9 @@ typedef union {
        };
 } __IPR2bits_t;
 
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
 
-extern sfr at 0xfa3 PIE3;
+extern __sfr __at 0xfa3 PIE3;
 typedef union {
        struct {
                unsigned RX0IE:1;
@@ -1125,9 +1125,9 @@ typedef union {
        };
 } __PIE3bits_t;
 
-extern volatile __PIE3bits_t at 0xfa3 PIE3bits;
+extern volatile __PIE3bits_t __at 0xfa3 PIE3bits;
 
-extern sfr at 0xfa4 PIR3;
+extern __sfr __at 0xfa4 PIR3;
 typedef union {
        struct {
                unsigned RX0IF:1;
@@ -1141,9 +1141,9 @@ typedef union {
        };
 } __PIR3bits_t;
 
-extern volatile __PIR3bits_t at 0xfa4 PIR3bits;
+extern volatile __PIR3bits_t __at 0xfa4 PIR3bits;
 
-extern sfr at 0xfa5 IPR3;
+extern __sfr __at 0xfa5 IPR3;
 typedef union {
        struct {
                unsigned RX0IP:1;
@@ -1157,9 +1157,9 @@ typedef union {
        };
 } __IPR3bits_t;
 
-extern volatile __IPR3bits_t at 0xfa5 IPR3bits;
+extern volatile __IPR3bits_t __at 0xfa5 IPR3bits;
 
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
 typedef union {
        struct {
                unsigned RD:1;
@@ -1173,13 +1173,13 @@ typedef union {
        };
 } __EECON1bits_t;
 
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
 
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfaa EEADRH;
-extern sfr at 0xfab RCSTA;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfaa EEADRH;
+extern __sfr __at 0xfab RCSTA;
 typedef union {
        struct {
                unsigned RX9D:1;
@@ -1193,9 +1193,9 @@ typedef union {
        };
 } __RCSTAbits_t;
 
-extern volatile __RCSTAbits_t at 0xfab RCSTAbits;
+extern volatile __RCSTAbits_t __at 0xfab RCSTAbits;
 
-extern sfr at 0xfac TXSTA;
+extern __sfr __at 0xfac TXSTA;
 typedef union {
        struct {
                unsigned TX9D:1;
@@ -1209,12 +1209,12 @@ typedef union {
        };
 } __TXSTAbits_t;
 
-extern volatile __TXSTAbits_t at 0xfac TXSTAbits;
+extern volatile __TXSTAbits_t __at 0xfac TXSTAbits;
 
-extern sfr at 0xfad TXREG;
-extern sfr at 0xfae RCREG;
-extern sfr at 0xfaf SPBRG;
-extern sfr at 0xfb0 PSPCON;
+extern __sfr __at 0xfad TXREG;
+extern __sfr __at 0xfae RCREG;
+extern __sfr __at 0xfaf SPBRG;
+extern __sfr __at 0xfb0 PSPCON;
 typedef union {
        struct {
                unsigned :1;
@@ -1228,9 +1228,9 @@ typedef union {
        };
 } __PSPCONbits_t;
 
-extern volatile __PSPCONbits_t at 0xfb0 PSPCONbits;
+extern volatile __PSPCONbits_t __at 0xfb0 PSPCONbits;
 
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfb1 T3CON;
 typedef union {
        struct {
                unsigned TMR3ON:1;
@@ -1244,11 +1244,11 @@ typedef union {
        };
 } __T3CONbits_t;
 
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
 
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfb4 CMCON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfb4 CMCON;
 typedef union {
        struct {
                unsigned CM0:1;
@@ -1262,9 +1262,9 @@ typedef union {
        };
 } __CMCONbits_t;
 
-extern volatile __CMCONbits_t at 0xfb4 CMCONbits;
+extern volatile __CMCONbits_t __at 0xfb4 CMCONbits;
 
-extern sfr at 0xfb5 CVRCON;
+extern __sfr __at 0xfb5 CVRCON;
 typedef union {
        struct {
                unsigned CVR0:1;
@@ -1278,9 +1278,9 @@ typedef union {
        };
 } __CVRCONbits_t;
 
-extern volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
+extern volatile __CVRCONbits_t __at 0xfb5 CVRCONbits;
 
-extern sfr at 0xfb6 ECCPAS;
+extern __sfr __at 0xfb6 ECCPAS;
 typedef union {
        struct {
                unsigned PSSBD0:1;
@@ -1294,9 +1294,9 @@ typedef union {
        };
 } __ECCPASbits_t;
 
-extern volatile __ECCPASbits_t at 0xfb6 ECCPASbits;
+extern volatile __ECCPASbits_t __at 0xfb6 ECCPASbits;
 
-extern sfr at 0xfb7 ECCP1DEL;
+extern __sfr __at 0xfb7 ECCP1DEL;
 typedef union {
        struct {
                unsigned EPDC0:1;
@@ -1310,9 +1310,9 @@ typedef union {
        };
 } __ECCP1DELbits_t;
 
-extern volatile __ECCP1DELbits_t at 0xfb7 ECCP1DELbits;
+extern volatile __ECCP1DELbits_t __at 0xfb7 ECCP1DELbits;
 
-extern sfr at 0xfba ECCP1CON;
+extern __sfr __at 0xfba ECCP1CON;
 typedef union {
        struct {
                unsigned ECCP1M0:1;
@@ -1326,9 +1326,9 @@ typedef union {
        };
 } __ECCP1CONbits_t;
 
-extern volatile __ECCP1CONbits_t at 0xfba ECCP1CONbits;
+extern volatile __ECCP1CONbits_t __at 0xfba ECCP1CONbits;
 
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfba CCP2CON;
 typedef union {
        struct {
                unsigned CCP2M0:1;
@@ -1342,13 +1342,13 @@ typedef union {
        };
 } __CCP2CONbits_t;
 
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
 
-extern sfr at 0xfbb ECCPR1L;
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc ECCPR1H;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfc0 ADCON2;
+extern __sfr __at 0xfbb ECCPR1L;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc ECCPR1H;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfc0 ADCON2;
 typedef union {
        struct {
                unsigned ADCS0:1;
@@ -1362,9 +1362,9 @@ typedef union {
        };
 } __ADCON2bits_t;
 
-extern volatile __ADCON2bits_t at 0xfc0 ADCON2bits;
+extern volatile __ADCON2bits_t __at 0xfc0 ADCON2bits;
 
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfc1 ADCON1;
 typedef union {
        struct {
                unsigned PCFG0:1;
@@ -1378,9 +1378,9 @@ typedef union {
        };
 } __ADCON1bits_t;
 
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
 
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
 typedef union {
        struct {
                unsigned ADON:1;
@@ -1394,11 +1394,11 @@ typedef union {
        };
 } __ADCON0bits_t;
 
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
 
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
 typedef union {
        struct {
                unsigned SEN:1;
@@ -1412,9 +1412,9 @@ typedef union {
        };
 } __SSPCON2bits_t;
 
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
 
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
 typedef union {
        struct {
                unsigned SSPM0:1;
@@ -1428,9 +1428,9 @@ typedef union {
        };
 } __SSPCON1bits_t;
 
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
 
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
 typedef union {
        struct {
                unsigned BF:1;
@@ -1444,11 +1444,11 @@ typedef union {
        };
 } __SSPSTATbits_t;
 
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
 
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
 typedef union {
        struct {
                unsigned T2CKPS0:1;
@@ -1462,11 +1462,11 @@ typedef union {
        };
 } __T2CONbits_t;
 
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
 
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
 typedef union {
        struct {
                unsigned TMR1ON:1;
@@ -1480,11 +1480,11 @@ typedef union {
        };
 } __T1CONbits_t;
 
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
 
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
 typedef union {
        struct {
                unsigned BOR:1;
@@ -1498,9 +1498,9 @@ typedef union {
        };
 } __RCONbits_t;
 
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
 
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
 typedef union {
        struct {
                unsigned SWDTEN:1;
@@ -1525,9 +1525,9 @@ typedef union {
        };
 } __WDTCONbits_t;
 
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
 
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
 typedef union {
        struct {
                unsigned LVDL0:1;
@@ -1552,9 +1552,9 @@ typedef union {
        };
 } __LVDCONbits_t;
 
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
 
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
 typedef union {
        struct {
                unsigned SCS:1;
@@ -1568,12 +1568,12 @@ typedef union {
        };
 } __OSCCONbits_t;
 
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
 
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
 typedef union {
        struct {
                unsigned C:1;
@@ -1587,32 +1587,32 @@ typedef union {
        };
 } __STATUSbits_t;
 
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
 typedef union {
        struct {
                unsigned INT1F:1;
@@ -1637,9 +1637,9 @@ typedef union {
        };
 } __INTCON3bits_t;
 
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
 
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
 typedef union {
        struct {
                unsigned RBIP:1;
@@ -1653,9 +1653,9 @@ typedef union {
        };
 } __INTCON2bits_t;
 
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
 
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
 typedef union {
        struct {
                unsigned RBIF:1;
@@ -1669,18 +1669,18 @@ typedef union {
        };
 } __INTCONbits_t;
 
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
 
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
 typedef union {
        struct {
                unsigned STKPTR0:1;
@@ -1694,11 +1694,11 @@ typedef union {
        };
 } __STKPTRbits_t;
 
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
 
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
 
 
 /* Configuration registers locations */
index 157a81e8b375ba3212f12f2509be0288bd43ca60..5a1fddc6003604dfc8032616480dbfe9b8b17fa3 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef __PIC18F6720_H__
 #define __PIC18F6720_H__
 
-extern sfr at 0xf6b RCSTA2;
+extern __sfr __at 0xf6b RCSTA2;
 typedef union {
        struct {
                unsigned RX9D:1;
@@ -29,9 +29,9 @@ typedef union {
        };
 } __RCSTA2bits_t;
 
-extern volatile __RCSTA2bits_t at 0xf6b RCSTA2bits;
+extern volatile __RCSTA2bits_t __at 0xf6b RCSTA2bits;
 
-extern sfr at 0xf6c TXSTA2;
+extern __sfr __at 0xf6c TXSTA2;
 typedef union {
        struct {
                unsigned TX9D:1;
@@ -45,12 +45,12 @@ typedef union {
        };
 } __TXSTA2bits_t;
 
-extern volatile __TXSTA2bits_t at 0xf6c TXSTA2bits;
+extern volatile __TXSTA2bits_t __at 0xf6c TXSTA2bits;
 
-extern sfr at 0xf6d TXREG2;
-extern sfr at 0xf6e RCREG2;
-extern sfr at 0xf6f SPBRG2;
-extern sfr at 0xf70 CCP5CON;
+extern __sfr __at 0xf6d TXREG2;
+extern __sfr __at 0xf6e RCREG2;
+extern __sfr __at 0xf6f SPBRG2;
+extern __sfr __at 0xf70 CCP5CON;
 typedef union {
        struct {
                unsigned CCP5M0:1;
@@ -64,11 +64,11 @@ typedef union {
        };
 } __CCP5CONbits_t;
 
-extern volatile __CCP5CONbits_t at 0xf70 CCP5CONbits;
+extern volatile __CCP5CONbits_t __at 0xf70 CCP5CONbits;
 
-extern sfr at 0xf71 CCPR5L;
-extern sfr at 0xf72 CCPR5H;
-extern sfr at 0xf73 CCP4CON;
+extern __sfr __at 0xf71 CCPR5L;
+extern __sfr __at 0xf72 CCPR5H;
+extern __sfr __at 0xf73 CCP4CON;
 typedef union {
        struct {
                unsigned CCP4M0:1;
@@ -82,11 +82,11 @@ typedef union {
        };
 } __CCP4CONbits_t;
 
-extern volatile __CCP4CONbits_t at 0xf73 CCP4CONbits;
+extern volatile __CCP4CONbits_t __at 0xf73 CCP4CONbits;
 
-extern sfr at 0xf74 CCPR4L;
-extern sfr at 0xf75 CCPR4H;
-extern sfr at 0xf76 T4CON;
+extern __sfr __at 0xf74 CCPR4L;
+extern __sfr __at 0xf75 CCPR4H;
+extern __sfr __at 0xf76 T4CON;
 typedef union {
        struct {
                unsigned T2CKPS0:1;
@@ -100,11 +100,11 @@ typedef union {
        };
 } __T4CONbits_t;
 
-extern volatile __T4CONbits_t at 0xf76 T4CONbits;
+extern volatile __T4CONbits_t __at 0xf76 T4CONbits;
 
-extern sfr at 0xf77 PR4;
-extern sfr at 0xf78 TMR4;
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf77 PR4;
+extern __sfr __at 0xf78 TMR4;
+extern __sfr __at 0xf80 PORTA;
 typedef union {
        struct {
                unsigned RA0:1;
@@ -151,9 +151,9 @@ typedef union {
        };
 } __PORTAbits_t;
 
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
 
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
 typedef union {
        struct {
                unsigned RB0:1;
@@ -178,9 +178,9 @@ typedef union {
        };
 } __PORTBbits_t;
 
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
 
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
 typedef union {
        struct {
                unsigned RC0:1;
@@ -216,9 +216,9 @@ typedef union {
        };
 } __PORTCbits_t;
 
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
 
-extern sfr at 0xf83 PORTD;
+extern __sfr __at 0xf83 PORTD;
 typedef union {
        struct {
                unsigned RD0:1;
@@ -243,9 +243,9 @@ typedef union {
        };
 } __PORTDbits_t;
 
-extern volatile __PORTDbits_t at 0xf83 PORTDbits;
+extern volatile __PORTDbits_t __at 0xf83 PORTDbits;
 
-extern sfr at 0xf84 PORTE;
+extern __sfr __at 0xf84 PORTE;
 typedef union {
        struct {
                unsigned RE0:1;
@@ -281,9 +281,9 @@ typedef union {
        };
 } __PORTEbits_t;
 
-extern volatile __PORTEbits_t at 0xf84 PORTEbits;
+extern volatile __PORTEbits_t __at 0xf84 PORTEbits;
 
-extern sfr at 0xf85 PORTF;
+extern __sfr __at 0xf85 PORTF;
 typedef union {
        struct {
                unsigned RF0:1;
@@ -297,9 +297,9 @@ typedef union {
        };
 } __PORTFbits_t;
 
-extern volatile __PORTFbits_t at 0xf85 PORTFbits;
+extern volatile __PORTFbits_t __at 0xf85 PORTFbits;
 
-extern sfr at 0xf86 PORTG;
+extern __sfr __at 0xf86 PORTG;
 typedef union {
        struct {
                unsigned RG0:1;
@@ -313,9 +313,9 @@ typedef union {
        };
 } __PORTGbits_t;
 
-extern volatile __PORTGbits_t at 0xf86 PORTGbits;
+extern volatile __PORTGbits_t __at 0xf86 PORTGbits;
 
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
 typedef union {
        struct {
                unsigned LATA0:1;
@@ -329,9 +329,9 @@ typedef union {
        };
 } __LATAbits_t;
 
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
 
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
 typedef union {
        struct {
                unsigned LATB0:1;
@@ -345,9 +345,9 @@ typedef union {
        };
 } __LATBbits_t;
 
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
 
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
 typedef union {
        struct {
                unsigned LATC0:1;
@@ -361,9 +361,9 @@ typedef union {
        };
 } __LATCbits_t;
 
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
 
-extern sfr at 0xf8c LATD;
+extern __sfr __at 0xf8c LATD;
 typedef union {
        struct {
                unsigned LATD0:1;
@@ -377,9 +377,9 @@ typedef union {
        };
 } __LATDbits_t;
 
-extern volatile __LATDbits_t at 0xf8c LATDbits;
+extern volatile __LATDbits_t __at 0xf8c LATDbits;
 
-extern sfr at 0xf8d LATE;
+extern __sfr __at 0xf8d LATE;
 typedef union {
        struct {
                unsigned LATE0:1;
@@ -393,9 +393,9 @@ typedef union {
        };
 } __LATEbits_t;
 
-extern volatile __LATEbits_t at 0xf8d LATEbits;
+extern volatile __LATEbits_t __at 0xf8d LATEbits;
 
-extern sfr at 0xf8e LATF;
+extern __sfr __at 0xf8e LATF;
 typedef union {
        struct {
                unsigned LATF0:1;
@@ -409,9 +409,9 @@ typedef union {
        };
 } __LATFbits_t;
 
-extern volatile __LATFbits_t at 0xf8e LATFbits;
+extern volatile __LATFbits_t __at 0xf8e LATFbits;
 
-extern sfr at 0xf8f LATG;
+extern __sfr __at 0xf8f LATG;
 typedef union {
        struct {
                unsigned LATG0:1;
@@ -425,9 +425,9 @@ typedef union {
        };
 } __LATGbits_t;
 
-extern volatile __LATGbits_t at 0xf8f LATGbits;
+extern volatile __LATGbits_t __at 0xf8f LATGbits;
 
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
 typedef union {
        struct {
                unsigned TRISA0:1;
@@ -441,9 +441,9 @@ typedef union {
        };
 } __TRISAbits_t;
 
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
 
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
 typedef union {
        struct {
                unsigned TRISB0:1;
@@ -457,9 +457,9 @@ typedef union {
        };
 } __TRISBbits_t;
 
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
 
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
 typedef union {
        struct {
                unsigned TRISC0:1;
@@ -473,9 +473,9 @@ typedef union {
        };
 } __TRISCbits_t;
 
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
 
-extern sfr at 0xf95 TRISD;
+extern __sfr __at 0xf95 TRISD;
 typedef union {
        struct {
                unsigned TRISD0:1;
@@ -489,9 +489,9 @@ typedef union {
        };
 } __TRISDbits_t;
 
-extern volatile __TRISDbits_t at 0xf95 TRISDbits;
+extern volatile __TRISDbits_t __at 0xf95 TRISDbits;
 
-extern sfr at 0xf96 TRISE;
+extern __sfr __at 0xf96 TRISE;
 typedef union {
        struct {
                unsigned TRISE0:1;
@@ -505,9 +505,9 @@ typedef union {
        };
 } __TRISEbits_t;
 
-extern volatile __TRISEbits_t at 0xf96 TRISEbits;
+extern volatile __TRISEbits_t __at 0xf96 TRISEbits;
 
-extern sfr at 0xf97 TRISF;
+extern __sfr __at 0xf97 TRISF;
 typedef union {
        struct {
                unsigned TRISF0:1;
@@ -521,9 +521,9 @@ typedef union {
        };
 } __TRISFbits_t;
 
-extern volatile __TRISFbits_t at 0xf97 TRISFbits;
+extern volatile __TRISFbits_t __at 0xf97 TRISFbits;
 
-extern sfr at 0xf98 TRISG;
+extern __sfr __at 0xf98 TRISG;
 typedef union {
        struct {
                unsigned TRISG0:1;
@@ -537,9 +537,9 @@ typedef union {
        };
 } __TRISGbits_t;
 
-extern volatile __TRISGbits_t at 0xf98 TRISGbits;
+extern volatile __TRISGbits_t __at 0xf98 TRISGbits;
 
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
 typedef union {
        struct {
                unsigned TMR1IE:1;
@@ -553,9 +553,9 @@ typedef union {
        };
 } __PIE1bits_t;
 
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
 
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
 typedef union {
        struct {
                unsigned TMR1IF:1;
@@ -569,9 +569,9 @@ typedef union {
        };
 } __PIR1bits_t;
 
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
 
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
 typedef union {
        struct {
                unsigned TMR1IP:1;
@@ -585,9 +585,9 @@ typedef union {
        };
 } __IPR1bits_t;
 
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
 
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
 typedef union {
        struct {
                unsigned CCP2IE:1;
@@ -601,9 +601,9 @@ typedef union {
        };
 } __PIE2bits_t;
 
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
 
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
 typedef union {
        struct {
                unsigned CCP2IF:1;
@@ -617,9 +617,9 @@ typedef union {
        };
 } __PIR2bits_t;
 
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
 
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
 typedef union {
        struct {
                unsigned CCP2IP:1;
@@ -633,9 +633,9 @@ typedef union {
        };
 } __IPR2bits_t;
 
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
 
-extern sfr at 0xfa3 PIE3;
+extern __sfr __at 0xfa3 PIE3;
 typedef union {
        struct {
                unsigned CCP3IE:1;
@@ -649,9 +649,9 @@ typedef union {
        };
 } __PIE3bits_t;
 
-extern volatile __PIE3bits_t at 0xfa3 PIE3bits;
+extern volatile __PIE3bits_t __at 0xfa3 PIE3bits;
 
-extern sfr at 0xfa4 PIR3;
+extern __sfr __at 0xfa4 PIR3;
 typedef union {
        struct {
                unsigned CCP3IF:1;
@@ -665,9 +665,9 @@ typedef union {
        };
 } __PIR3bits_t;
 
-extern volatile __PIR3bits_t at 0xfa4 PIR3bits;
+extern volatile __PIR3bits_t __at 0xfa4 PIR3bits;
 
-extern sfr at 0xfa5 IPR3;
+extern __sfr __at 0xfa5 IPR3;
 typedef union {
        struct {
                unsigned CCP3IP:1;
@@ -681,9 +681,9 @@ typedef union {
        };
 } __IPR3bits_t;
 
-extern volatile __IPR3bits_t at 0xfa5 IPR3bits;
+extern volatile __IPR3bits_t __at 0xfa5 IPR3bits;
 
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
 typedef union {
        struct {
                unsigned RD:1;
@@ -697,13 +697,13 @@ typedef union {
        };
 } __EECON1bits_t;
 
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
 
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfaa EEADRH;
-extern sfr at 0xfab RCSTA1;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfaa EEADRH;
+extern __sfr __at 0xfab RCSTA1;
 typedef union {
        struct {
                unsigned RX9D:1;
@@ -717,9 +717,9 @@ typedef union {
        };
 } __RCSTA1bits_t;
 
-extern volatile __RCSTA1bits_t at 0xfab RCSTA1bits;
+extern volatile __RCSTA1bits_t __at 0xfab RCSTA1bits;
 
-extern sfr at 0xfac TXSTA1;
+extern __sfr __at 0xfac TXSTA1;
 typedef union {
        struct {
                unsigned TX9D:1;
@@ -733,12 +733,12 @@ typedef union {
        };
 } __TXSTA1bits_t;
 
-extern volatile __TXSTA1bits_t at 0xfac TXSTA1bits;
+extern volatile __TXSTA1bits_t __at 0xfac TXSTA1bits;
 
-extern sfr at 0xfad TXREG1;
-extern sfr at 0xfae RCREG1;
-extern sfr at 0xfaf SPBRG1;
-extern sfr at 0xfb0 PSPCON;
+extern __sfr __at 0xfad TXREG1;
+extern __sfr __at 0xfae RCREG1;
+extern __sfr __at 0xfaf SPBRG1;
+extern __sfr __at 0xfb0 PSPCON;
 typedef union {
        struct {
                unsigned :1;
@@ -752,9 +752,9 @@ typedef union {
        };
 } __PSPCONbits_t;
 
-extern volatile __PSPCONbits_t at 0xfb0 PSPCONbits;
+extern volatile __PSPCONbits_t __at 0xfb0 PSPCONbits;
 
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfb1 T3CON;
 typedef union {
        struct {
                unsigned TMR3ON:1;
@@ -768,11 +768,11 @@ typedef union {
        };
 } __T3CONbits_t;
 
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
 
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfb4 CMCON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfb4 CMCON;
 typedef union {
        struct {
                unsigned CM0:1;
@@ -786,9 +786,9 @@ typedef union {
        };
 } __CMCONbits_t;
 
-extern volatile __CMCONbits_t at 0xfb4 CMCONbits;
+extern volatile __CMCONbits_t __at 0xfb4 CMCONbits;
 
-extern sfr at 0xfb5 CVRCON;
+extern __sfr __at 0xfb5 CVRCON;
 typedef union {
        struct {
                unsigned CVR0:1;
@@ -802,9 +802,9 @@ typedef union {
        };
 } __CVRCONbits_t;
 
-extern volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
+extern volatile __CVRCONbits_t __at 0xfb5 CVRCONbits;
 
-extern sfr at 0xfb7 CCP3CON;
+extern __sfr __at 0xfb7 CCP3CON;
 typedef union {
        struct {
                unsigned CCP3M0:1;
@@ -818,11 +818,11 @@ typedef union {
        };
 } __CCP3CONbits_t;
 
-extern volatile __CCP3CONbits_t at 0xfb7 CCP3CONbits;
+extern volatile __CCP3CONbits_t __at 0xfb7 CCP3CONbits;
 
-extern sfr at 0xfb8 CCPR3L;
-extern sfr at 0xfb9 CCPR3H;
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfb8 CCPR3L;
+extern __sfr __at 0xfb9 CCPR3H;
+extern __sfr __at 0xfba CCP2CON;
 typedef union {
        struct {
                unsigned CCP2M0:1;
@@ -836,11 +836,11 @@ typedef union {
        };
 } __CCP2CONbits_t;
 
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
 
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfbd CCP1CON;
 typedef union {
        struct {
                unsigned CCP1M0:1;
@@ -854,11 +854,11 @@ typedef union {
        };
 } __CCP1CONbits_t;
 
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
 
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc0 ADCON2;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc0 ADCON2;
 typedef union {
        struct {
                unsigned ADCS0:1;
@@ -872,9 +872,9 @@ typedef union {
        };
 } __ADCON2bits_t;
 
-extern volatile __ADCON2bits_t at 0xfc0 ADCON2bits;
+extern volatile __ADCON2bits_t __at 0xfc0 ADCON2bits;
 
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfc1 ADCON1;
 typedef union {
        struct {
                unsigned PCFG0:1;
@@ -888,9 +888,9 @@ typedef union {
        };
 } __ADCON1bits_t;
 
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
 
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
 typedef union {
        struct {
                unsigned ADON:1;
@@ -904,11 +904,11 @@ typedef union {
        };
 } __ADCON0bits_t;
 
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
 
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
 typedef union {
        struct {
                unsigned SEN:1;
@@ -922,9 +922,9 @@ typedef union {
        };
 } __SSPCON2bits_t;
 
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
 
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
 typedef union {
        struct {
                unsigned SSPM0:1;
@@ -938,9 +938,9 @@ typedef union {
        };
 } __SSPCON1bits_t;
 
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
 
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
 typedef union {
        struct {
                unsigned BF:1;
@@ -954,11 +954,11 @@ typedef union {
        };
 } __SSPSTATbits_t;
 
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
 
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
 typedef union {
        struct {
                unsigned T2CKPS0:1;
@@ -972,11 +972,11 @@ typedef union {
        };
 } __T2CONbits_t;
 
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
 
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
 typedef union {
        struct {
                unsigned TMR1ON:1;
@@ -990,11 +990,11 @@ typedef union {
        };
 } __T1CONbits_t;
 
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
 
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
 typedef union {
        struct {
                unsigned BOR:1;
@@ -1008,9 +1008,9 @@ typedef union {
        };
 } __RCONbits_t;
 
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
 
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
 typedef union {
        struct {
                unsigned SWDTEN:1;
@@ -1035,9 +1035,9 @@ typedef union {
        };
 } __WDTCONbits_t;
 
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
 
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
 typedef union {
        struct {
                unsigned LVDL0:1;
@@ -1062,9 +1062,9 @@ typedef union {
        };
 } __LVDCONbits_t;
 
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
 
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
 typedef union {
        struct {
                unsigned SCS:1;
@@ -1078,12 +1078,12 @@ typedef union {
        };
 } __OSCCONbits_t;
 
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
 
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
 typedef union {
        struct {
                unsigned C:1;
@@ -1097,32 +1097,32 @@ typedef union {
        };
 } __STATUSbits_t;
 
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
 typedef union {
        struct {
                unsigned INT1F:1;
@@ -1147,9 +1147,9 @@ typedef union {
        };
 } __INTCON3bits_t;
 
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
 
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
 typedef union {
        struct {
                unsigned RBIP:1;
@@ -1163,9 +1163,9 @@ typedef union {
        };
 } __INTCON2bits_t;
 
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
 
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
 typedef union {
        struct {
                unsigned RBIF:1;
@@ -1179,18 +1179,18 @@ typedef union {
        };
 } __INTCONbits_t;
 
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
-
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
+
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
 typedef union {
        struct {
                unsigned STKPTR0:1;
@@ -1204,11 +1204,11 @@ typedef union {
        };
 } __STKPTRbits_t;
 
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
 
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
 
 
 /* Configuration registers locations */
index e36417cd5d06dabe07892ee0f55071c838232ac6..ce5eaeb04fa8bd53307b2b111977b48fe5b4266e 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef __PIC18F8520_H__
 #define __PIC18F8520_H__
 
-extern sfr at 0xf6b RCSTA2;
+extern __sfr __at 0xf6b RCSTA2;
 typedef union {
        struct {
                unsigned RX9D:1;
@@ -29,9 +29,9 @@ typedef union {
        };
 } __RCSTA2bits_t;
 
-extern volatile __RCSTA2bits_t at 0xf6b RCSTA2bits;
+extern volatile __RCSTA2bits_t __at 0xf6b RCSTA2bits;
 
-extern sfr at 0xf6c TXSTA2;
+extern __sfr __at 0xf6c TXSTA2;
 typedef union {
        struct {
                unsigned TX9D:1;
@@ -45,12 +45,12 @@ typedef union {
        };
 } __TXSTA2bits_t;
 
-extern volatile __TXSTA2bits_t at 0xf6c TXSTA2bits;
+extern volatile __TXSTA2bits_t __at 0xf6c TXSTA2bits;
 
-extern sfr at 0xf6d TXREG2;
-extern sfr at 0xf6e RCREG2;
-extern sfr at 0xf6f SPBRG2;
-extern sfr at 0xf70 CCP5CON;
+extern __sfr __at 0xf6d TXREG2;
+extern __sfr __at 0xf6e RCREG2;
+extern __sfr __at 0xf6f SPBRG2;
+extern __sfr __at 0xf70 CCP5CON;
 typedef union {
        struct {
                unsigned CCP5M0:1;
@@ -64,11 +64,11 @@ typedef union {
        };
 } __CCP5CONbits_t;
 
-extern volatile __CCP5CONbits_t at 0xf70 CCP5CONbits;
+extern volatile __CCP5CONbits_t __at 0xf70 CCP5CONbits;
 
-extern sfr at 0xf71 CCPR5L;
-extern sfr at 0xf72 CCPR5H;
-extern sfr at 0xf73 CCP4CON;
+extern __sfr __at 0xf71 CCPR5L;
+extern __sfr __at 0xf72 CCPR5H;
+extern __sfr __at 0xf73 CCP4CON;
 typedef union {
        struct {
                unsigned CCP4M0:1;
@@ -82,11 +82,11 @@ typedef union {
        };
 } __CCP4CONbits_t;
 
-extern volatile __CCP4CONbits_t at 0xf73 CCP4CONbits;
+extern volatile __CCP4CONbits_t __at 0xf73 CCP4CONbits;
 
-extern sfr at 0xf74 CCPR4L;
-extern sfr at 0xf75 CCPR4H;
-extern sfr at 0xf76 T4CON;
+extern __sfr __at 0xf74 CCPR4L;
+extern __sfr __at 0xf75 CCPR4H;
+extern __sfr __at 0xf76 T4CON;
 typedef union {
        struct {
                unsigned T2CKPS0:1;
@@ -100,11 +100,11 @@ typedef union {
        };
 } __T4CONbits_t;
 
-extern volatile __T4CONbits_t at 0xf76 T4CONbits;
+extern volatile __T4CONbits_t __at 0xf76 T4CONbits;
 
-extern sfr at 0xf77 PR4;
-extern sfr at 0xf78 TMR4;
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf77 PR4;
+extern __sfr __at 0xf78 TMR4;
+extern __sfr __at 0xf80 PORTA;
 typedef union {
        struct {
                unsigned RA0:1;
@@ -151,9 +151,9 @@ typedef union {
        };
 } __PORTAbits_t;
 
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
 
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
 typedef union {
        struct {
                unsigned RB0:1;
@@ -178,9 +178,9 @@ typedef union {
        };
 } __PORTBbits_t;
 
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
 
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
 typedef union {
        struct {
                unsigned RC0:1;
@@ -216,9 +216,9 @@ typedef union {
        };
 } __PORTCbits_t;
 
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
 
-extern sfr at 0xf83 PORTD;
+extern __sfr __at 0xf83 PORTD;
 typedef union {
        struct {
                unsigned RD0:1;
@@ -243,9 +243,9 @@ typedef union {
        };
 } __PORTDbits_t;
 
-extern volatile __PORTDbits_t at 0xf83 PORTDbits;
+extern volatile __PORTDbits_t __at 0xf83 PORTDbits;
 
-extern sfr at 0xf84 PORTE;
+extern __sfr __at 0xf84 PORTE;
 typedef union {
        struct {
                unsigned RE0:1;
@@ -281,9 +281,9 @@ typedef union {
        };
 } __PORTEbits_t;
 
-extern volatile __PORTEbits_t at 0xf84 PORTEbits;
+extern volatile __PORTEbits_t __at 0xf84 PORTEbits;
 
-extern sfr at 0xf85 PORTF;
+extern __sfr __at 0xf85 PORTF;
 typedef union {
        struct {
                unsigned RF0:1;
@@ -297,9 +297,9 @@ typedef union {
        };
 } __PORTFbits_t;
 
-extern volatile __PORTFbits_t at 0xf85 PORTFbits;
+extern volatile __PORTFbits_t __at 0xf85 PORTFbits;
 
-extern sfr at 0xf86 PORTG;
+extern __sfr __at 0xf86 PORTG;
 typedef union {
        struct {
                unsigned RG0:1;
@@ -313,9 +313,9 @@ typedef union {
        };
 } __PORTGbits_t;
 
-extern volatile __PORTGbits_t at 0xf86 PORTGbits;
+extern volatile __PORTGbits_t __at 0xf86 PORTGbits;
 
-extern sfr at 0xf87 PORTH;
+extern __sfr __at 0xf87 PORTH;
 typedef union {
        struct {
                unsigned RH0:1;
@@ -329,9 +329,9 @@ typedef union {
        };
 } __PORTHbits_t;
 
-extern volatile __PORTHbits_t at 0xf87 PORTHbits;
+extern volatile __PORTHbits_t __at 0xf87 PORTHbits;
 
-extern sfr at 0xf88 PORTJ;
+extern __sfr __at 0xf88 PORTJ;
 typedef union {
        struct {
                unsigned RJ0:1;
@@ -345,9 +345,9 @@ typedef union {
        };
 } __PORTJbits_t;
 
-extern volatile __PORTJbits_t at 0xf88 PORTJbits;
+extern volatile __PORTJbits_t __at 0xf88 PORTJbits;
 
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
 typedef union {
        struct {
                unsigned LATA0:1;
@@ -361,9 +361,9 @@ typedef union {
        };
 } __LATAbits_t;
 
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
 
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
 typedef union {
        struct {
                unsigned LATB0:1;
@@ -377,9 +377,9 @@ typedef union {
        };
 } __LATBbits_t;
 
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
 
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
 typedef union {
        struct {
                unsigned LATC0:1;
@@ -393,9 +393,9 @@ typedef union {
        };
 } __LATCbits_t;
 
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
 
-extern sfr at 0xf8c LATD;
+extern __sfr __at 0xf8c LATD;
 typedef union {
        struct {
                unsigned LATD0:1;
@@ -409,9 +409,9 @@ typedef union {
        };
 } __LATDbits_t;
 
-extern volatile __LATDbits_t at 0xf8c LATDbits;
+extern volatile __LATDbits_t __at 0xf8c LATDbits;
 
-extern sfr at 0xf8d LATE;
+extern __sfr __at 0xf8d LATE;
 typedef union {
        struct {
                unsigned LATE0:1;
@@ -425,9 +425,9 @@ typedef union {
        };
 } __LATEbits_t;
 
-extern volatile __LATEbits_t at 0xf8d LATEbits;
+extern volatile __LATEbits_t __at 0xf8d LATEbits;
 
-extern sfr at 0xf8e LATF;
+extern __sfr __at 0xf8e LATF;
 typedef union {
        struct {
                unsigned LATF0:1;
@@ -441,9 +441,9 @@ typedef union {
        };
 } __LATFbits_t;
 
-extern volatile __LATFbits_t at 0xf8e LATFbits;
+extern volatile __LATFbits_t __at 0xf8e LATFbits;
 
-extern sfr at 0xf8f LATG;
+extern __sfr __at 0xf8f LATG;
 typedef union {
        struct {
                unsigned LATG0:1;
@@ -457,9 +457,9 @@ typedef union {
        };
 } __LATGbits_t;
 
-extern volatile __LATGbits_t at 0xf8f LATGbits;
+extern volatile __LATGbits_t __at 0xf8f LATGbits;
 
-extern sfr at 0xf90 LATH;
+extern __sfr __at 0xf90 LATH;
 typedef union {
        struct {
                unsigned LATH0:1;
@@ -473,9 +473,9 @@ typedef union {
        };
 } __LATHbits_t;
 
-extern volatile __LATHbits_t at 0xf90 LATHbits;
+extern volatile __LATHbits_t __at 0xf90 LATHbits;
 
-extern sfr at 0xf91 LATJ;
+extern __sfr __at 0xf91 LATJ;
 typedef union {
        struct {
                unsigned LATJ0:1;
@@ -489,9 +489,9 @@ typedef union {
        };
 } __LATJbits_t;
 
-extern volatile __LATJbits_t at 0xf91 LATJbits;
+extern volatile __LATJbits_t __at 0xf91 LATJbits;
 
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
 typedef union {
        struct {
                unsigned TRISA0:1;
@@ -505,9 +505,9 @@ typedef union {
        };
 } __TRISAbits_t;
 
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
 
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
 typedef union {
        struct {
                unsigned TRISB0:1;
@@ -521,9 +521,9 @@ typedef union {
        };
 } __TRISBbits_t;
 
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
 
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
 typedef union {
        struct {
                unsigned TRISC0:1;
@@ -537,9 +537,9 @@ typedef union {
        };
 } __TRISCbits_t;
 
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
 
-extern sfr at 0xf95 TRISD;
+extern __sfr __at 0xf95 TRISD;
 typedef union {
        struct {
                unsigned TRISD0:1;
@@ -553,9 +553,9 @@ typedef union {
        };
 } __TRISDbits_t;
 
-extern volatile __TRISDbits_t at 0xf95 TRISDbits;
+extern volatile __TRISDbits_t __at 0xf95 TRISDbits;
 
-extern sfr at 0xf96 TRISE;
+extern __sfr __at 0xf96 TRISE;
 typedef union {
        struct {
                unsigned TRISE0:1;
@@ -569,9 +569,9 @@ typedef union {
        };
 } __TRISEbits_t;
 
-extern volatile __TRISEbits_t at 0xf96 TRISEbits;
+extern volatile __TRISEbits_t __at 0xf96 TRISEbits;
 
-extern sfr at 0xf97 TRISF;
+extern __sfr __at 0xf97 TRISF;
 typedef union {
        struct {
                unsigned TRISF0:1;
@@ -585,9 +585,9 @@ typedef union {
        };
 } __TRISFbits_t;
 
-extern volatile __TRISFbits_t at 0xf97 TRISFbits;
+extern volatile __TRISFbits_t __at 0xf97 TRISFbits;
 
-extern sfr at 0xf98 TRISG;
+extern __sfr __at 0xf98 TRISG;
 typedef union {
        struct {
                unsigned TRISG0:1;
@@ -601,9 +601,9 @@ typedef union {
        };
 } __TRISGbits_t;
 
-extern volatile __TRISGbits_t at 0xf98 TRISGbits;
+extern volatile __TRISGbits_t __at 0xf98 TRISGbits;
 
-extern sfr at 0xf99 TRISH;
+extern __sfr __at 0xf99 TRISH;
 typedef union {
        struct {
                unsigned TRISH0:1;
@@ -617,9 +617,9 @@ typedef union {
        };
 } __TRISHbits_t;
 
-extern volatile __TRISHbits_t at 0xf99 TRISHbits;
+extern volatile __TRISHbits_t __at 0xf99 TRISHbits;
 
-extern sfr at 0xf9a TRISJ;
+extern __sfr __at 0xf9a TRISJ;
 typedef union {
        struct {
                unsigned TRISJ0:1;
@@ -633,9 +633,9 @@ typedef union {
        };
 } __TRISJbits_t;
 
-extern volatile __TRISJbits_t at 0xf9a TRISJbits;
+extern volatile __TRISJbits_t __at 0xf9a TRISJbits;
 
-extern sfr at 0xf9c MEMCON;
+extern __sfr __at 0xf9c MEMCON;
 typedef union {
        struct {
                unsigned WM0:1;
@@ -649,9 +649,9 @@ typedef union {
        };
 } __MEMCONbits_t;
 
-extern volatile __MEMCONbits_t at 0xf9c MEMCONbits;
+extern volatile __MEMCONbits_t __at 0xf9c MEMCONbits;
 
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
 typedef union {
        struct {
                unsigned TMR1IE:1;
@@ -665,9 +665,9 @@ typedef union {
        };
 } __PIE1bits_t;
 
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
 
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
 typedef union {
        struct {
                unsigned TMR1IF:1;
@@ -681,9 +681,9 @@ typedef union {
        };
 } __PIR1bits_t;
 
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
 
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
 typedef union {
        struct {
                unsigned TMR1IP:1;
@@ -697,9 +697,9 @@ typedef union {
        };
 } __IPR1bits_t;
 
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
 
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
 typedef union {
        struct {
                unsigned CCP2IE:1;
@@ -713,9 +713,9 @@ typedef union {
        };
 } __PIE2bits_t;
 
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
 
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
 typedef union {
        struct {
                unsigned CCP2IF:1;
@@ -729,9 +729,9 @@ typedef union {
        };
 } __PIR2bits_t;
 
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
 
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
 typedef union {
        struct {
                unsigned CCP2IP:1;
@@ -745,9 +745,9 @@ typedef union {
        };
 } __IPR2bits_t;
 
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
 
-extern sfr at 0xfa3 PIE3;
+extern __sfr __at 0xfa3 PIE3;
 typedef union {
        struct {
                unsigned CCP3IE:1;
@@ -761,9 +761,9 @@ typedef union {
        };
 } __PIE3bits_t;
 
-extern volatile __PIE3bits_t at 0xfa3 PIE3bits;
+extern volatile __PIE3bits_t __at 0xfa3 PIE3bits;
 
-extern sfr at 0xfa4 PIR3;
+extern __sfr __at 0xfa4 PIR3;
 typedef union {
        struct {
                unsigned CCP3IF:1;
@@ -777,9 +777,9 @@ typedef union {
        };
 } __PIR3bits_t;
 
-extern volatile __PIR3bits_t at 0xfa4 PIR3bits;
+extern volatile __PIR3bits_t __at 0xfa4 PIR3bits;
 
-extern sfr at 0xfa5 IPR3;
+extern __sfr __at 0xfa5 IPR3;
 typedef union {
        struct {
                unsigned CCP3IP:1;
@@ -793,9 +793,9 @@ typedef union {
        };
 } __IPR3bits_t;
 
-extern volatile __IPR3bits_t at 0xfa5 IPR3bits;
+extern volatile __IPR3bits_t __at 0xfa5 IPR3bits;
 
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
 typedef union {
        struct {
                unsigned RD:1;
@@ -809,13 +809,13 @@ typedef union {
        };
 } __EECON1bits_t;
 
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
 
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfaa EEADRH;
-extern sfr at 0xfab RCSTA1;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfaa EEADRH;
+extern __sfr __at 0xfab RCSTA1;
 typedef union {
        struct {
                unsigned RX9D:1;
@@ -829,9 +829,9 @@ typedef union {
        };
 } __RCSTA1bits_t;
 
-extern volatile __RCSTA1bits_t at 0xfab RCSTA1bits;
+extern volatile __RCSTA1bits_t __at 0xfab RCSTA1bits;
 
-extern sfr at 0xfac TXSTA1;
+extern __sfr __at 0xfac TXSTA1;
 typedef union {
        struct {
                unsigned TX9D:1;
@@ -845,12 +845,12 @@ typedef union {
        };
 } __TXSTA1bits_t;
 
-extern volatile __TXSTA1bits_t at 0xfac TXSTA1bits;
+extern volatile __TXSTA1bits_t __at 0xfac TXSTA1bits;
 
-extern sfr at 0xfad TXREG1;
-extern sfr at 0xfae RCREG1;
-extern sfr at 0xfaf SPBRG1;
-extern sfr at 0xfb0 PSPCON;
+extern __sfr __at 0xfad TXREG1;
+extern __sfr __at 0xfae RCREG1;
+extern __sfr __at 0xfaf SPBRG1;
+extern __sfr __at 0xfb0 PSPCON;
 typedef union {
        struct {
                unsigned :1;
@@ -864,9 +864,9 @@ typedef union {
        };
 } __PSPCONbits_t;
 
-extern volatile __PSPCONbits_t at 0xfb0 PSPCONbits;
+extern volatile __PSPCONbits_t __at 0xfb0 PSPCONbits;
 
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfb1 T3CON;
 typedef union {
        struct {
                unsigned TMR3ON:1;
@@ -880,11 +880,11 @@ typedef union {
        };
 } __T3CONbits_t;
 
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
 
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfb4 CMCON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfb4 CMCON;
 typedef union {
        struct {
                unsigned CM0:1;
@@ -898,9 +898,9 @@ typedef union {
        };
 } __CMCONbits_t;
 
-extern volatile __CMCONbits_t at 0xfb4 CMCONbits;
+extern volatile __CMCONbits_t __at 0xfb4 CMCONbits;
 
-extern sfr at 0xfb5 CVRCON;
+extern __sfr __at 0xfb5 CVRCON;
 typedef union {
        struct {
                unsigned CVR0:1;
@@ -914,9 +914,9 @@ typedef union {
        };
 } __CVRCONbits_t;
 
-extern volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
+extern volatile __CVRCONbits_t __at 0xfb5 CVRCONbits;
 
-extern sfr at 0xfb7 CCP3CON;
+extern __sfr __at 0xfb7 CCP3CON;
 typedef union {
        struct {
                unsigned CCP3M0:1;
@@ -930,11 +930,11 @@ typedef union {
        };
 } __CCP3CONbits_t;
 
-extern volatile __CCP3CONbits_t at 0xfb7 CCP3CONbits;
+extern volatile __CCP3CONbits_t __at 0xfb7 CCP3CONbits;
 
-extern sfr at 0xfb8 CCPR3L;
-extern sfr at 0xfb9 CCPR3H;
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfb8 CCPR3L;
+extern __sfr __at 0xfb9 CCPR3H;
+extern __sfr __at 0xfba CCP2CON;
 typedef union {
        struct {
                unsigned CCP2M0:1;
@@ -948,11 +948,11 @@ typedef union {
        };
 } __CCP2CONbits_t;
 
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
 
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfbd CCP1CON;
 typedef union {
        struct {
                unsigned CCP1M0:1;
@@ -966,11 +966,11 @@ typedef union {
        };
 } __CCP1CONbits_t;
 
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
 
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc0 ADCON2;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc0 ADCON2;
 typedef union {
        struct {
                unsigned ADCS0:1;
@@ -984,9 +984,9 @@ typedef union {
        };
 } __ADCON2bits_t;
 
-extern volatile __ADCON2bits_t at 0xfc0 ADCON2bits;
+extern volatile __ADCON2bits_t __at 0xfc0 ADCON2bits;
 
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfc1 ADCON1;
 typedef union {
        struct {
                unsigned PCFG0:1;
@@ -1000,9 +1000,9 @@ typedef union {
        };
 } __ADCON1bits_t;
 
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
 
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
 typedef union {
        struct {
                unsigned ADON:1;
@@ -1016,11 +1016,11 @@ typedef union {
        };
 } __ADCON0bits_t;
 
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
 
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
 typedef union {
        struct {
                unsigned SEN:1;
@@ -1034,9 +1034,9 @@ typedef union {
        };
 } __SSPCON2bits_t;
 
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
 
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
 typedef union {
        struct {
                unsigned SSPM0:1;
@@ -1050,9 +1050,9 @@ typedef union {
        };
 } __SSPCON1bits_t;
 
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
 
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
 typedef union {
        struct {
                unsigned BF:1;
@@ -1066,11 +1066,11 @@ typedef union {
        };
 } __SSPSTATbits_t;
 
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
 
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
 typedef union {
        struct {
                unsigned T2CKPS0:1;
@@ -1084,11 +1084,11 @@ typedef union {
        };
 } __T2CONbits_t;
 
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
 
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
 typedef union {
        struct {
                unsigned TMR1ON:1;
@@ -1102,11 +1102,11 @@ typedef union {
        };
 } __T1CONbits_t;
 
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
 
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
 typedef union {
        struct {
                unsigned BOR:1;
@@ -1120,9 +1120,9 @@ typedef union {
        };
 } __RCONbits_t;
 
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
 
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
 typedef union {
        struct {
                unsigned SWDTEN:1;
@@ -1147,9 +1147,9 @@ typedef union {
        };
 } __WDTCONbits_t;
 
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
 
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
 typedef union {
        struct {
                unsigned LVDL0:1;
@@ -1174,9 +1174,9 @@ typedef union {
        };
 } __LVDCONbits_t;
 
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
 
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
 typedef union {
        struct {
                unsigned SCS:1;
@@ -1190,12 +1190,12 @@ typedef union {
        };
 } __OSCCONbits_t;
 
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
 
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
 typedef union {
        struct {
                unsigned C:1;
@@ -1209,32 +1209,32 @@ typedef union {
        };
 } __STATUSbits_t;
 
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
 typedef union {
        struct {
                unsigned INT1F:1;
@@ -1259,9 +1259,9 @@ typedef union {
        };
 } __INTCON3bits_t;
 
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
 
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
 typedef union {
        struct {
                unsigned RBIP:1;
@@ -1275,9 +1275,9 @@ typedef union {
        };
 } __INTCON2bits_t;
 
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
 
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
 typedef union {
        struct {
                unsigned RBIF:1;
@@ -1291,18 +1291,18 @@ typedef union {
        };
 } __INTCONbits_t;
 
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
 
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
 typedef union {
        struct {
                unsigned STKPTR0:1;
@@ -1316,11 +1316,11 @@ typedef union {
        };
 } __STKPTRbits_t;
 
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
 
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
 
 
 /* Configuration registers locations */
index 0d8461b8e4b4e0f6e9656eaece6427ca3e189edd..7598db07a9d0f3c1c2dfd216179f53723e6c28cf 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef __PIC18F8620_H__
 #define __PIC18F8620_H__
 
-extern sfr at 0xf6b RCSTA2;
+extern __sfr __at 0xf6b RCSTA2;
 typedef union {
        struct {
                unsigned RX9D:1;
@@ -29,9 +29,9 @@ typedef union {
        };
 } __RCSTA2bits_t;
 
-extern volatile __RCSTA2bits_t at 0xf6b RCSTA2bits;
+extern volatile __RCSTA2bits_t __at 0xf6b RCSTA2bits;
 
-extern sfr at 0xf6c TXSTA2;
+extern __sfr __at 0xf6c TXSTA2;
 typedef union {
        struct {
                unsigned TX9D:1;
@@ -45,12 +45,12 @@ typedef union {
        };
 } __TXSTA2bits_t;
 
-extern volatile __TXSTA2bits_t at 0xf6c TXSTA2bits;
+extern volatile __TXSTA2bits_t __at 0xf6c TXSTA2bits;
 
-extern sfr at 0xf6d TXREG2;
-extern sfr at 0xf6e RCREG2;
-extern sfr at 0xf6f SPBRG2;
-extern sfr at 0xf70 CCP5CON;
+extern __sfr __at 0xf6d TXREG2;
+extern __sfr __at 0xf6e RCREG2;
+extern __sfr __at 0xf6f SPBRG2;
+extern __sfr __at 0xf70 CCP5CON;
 typedef union {
        struct {
                unsigned CCP5M0:1;
@@ -64,11 +64,11 @@ typedef union {
        };
 } __CCP5CONbits_t;
 
-extern volatile __CCP5CONbits_t at 0xf70 CCP5CONbits;
+extern volatile __CCP5CONbits_t __at 0xf70 CCP5CONbits;
 
-extern sfr at 0xf71 CCPR5L;
-extern sfr at 0xf72 CCPR5H;
-extern sfr at 0xf73 CCP4CON;
+extern __sfr __at 0xf71 CCPR5L;
+extern __sfr __at 0xf72 CCPR5H;
+extern __sfr __at 0xf73 CCP4CON;
 typedef union {
        struct {
                unsigned CCP4M0:1;
@@ -82,11 +82,11 @@ typedef union {
        };
 } __CCP4CONbits_t;
 
-extern volatile __CCP4CONbits_t at 0xf73 CCP4CONbits;
+extern volatile __CCP4CONbits_t __at 0xf73 CCP4CONbits;
 
-extern sfr at 0xf74 CCPR4L;
-extern sfr at 0xf75 CCPR4H;
-extern sfr at 0xf76 T4CON;
+extern __sfr __at 0xf74 CCPR4L;
+extern __sfr __at 0xf75 CCPR4H;
+extern __sfr __at 0xf76 T4CON;
 typedef union {
        struct {
                unsigned T2CKPS0:1;
@@ -100,11 +100,11 @@ typedef union {
        };
 } __T4CONbits_t;
 
-extern volatile __T4CONbits_t at 0xf76 T4CONbits;
+extern volatile __T4CONbits_t __at 0xf76 T4CONbits;
 
-extern sfr at 0xf77 PR4;
-extern sfr at 0xf78 TMR4;
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf77 PR4;
+extern __sfr __at 0xf78 TMR4;
+extern __sfr __at 0xf80 PORTA;
 typedef union {
        struct {
                unsigned RA0:1;
@@ -151,9 +151,9 @@ typedef union {
        };
 } __PORTAbits_t;
 
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
 
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
 typedef union {
        struct {
                unsigned RB0:1;
@@ -178,9 +178,9 @@ typedef union {
        };
 } __PORTBbits_t;
 
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
 
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
 typedef union {
        struct {
                unsigned RC0:1;
@@ -216,9 +216,9 @@ typedef union {
        };
 } __PORTCbits_t;
 
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
 
-extern sfr at 0xf83 PORTD;
+extern __sfr __at 0xf83 PORTD;
 typedef union {
        struct {
                unsigned RD0:1;
@@ -243,9 +243,9 @@ typedef union {
        };
 } __PORTDbits_t;
 
-extern volatile __PORTDbits_t at 0xf83 PORTDbits;
+extern volatile __PORTDbits_t __at 0xf83 PORTDbits;
 
-extern sfr at 0xf84 PORTE;
+extern __sfr __at 0xf84 PORTE;
 typedef union {
        struct {
                unsigned RE0:1;
@@ -281,9 +281,9 @@ typedef union {
        };
 } __PORTEbits_t;
 
-extern volatile __PORTEbits_t at 0xf84 PORTEbits;
+extern volatile __PORTEbits_t __at 0xf84 PORTEbits;
 
-extern sfr at 0xf85 PORTF;
+extern __sfr __at 0xf85 PORTF;
 typedef union {
        struct {
                unsigned RF0:1;
@@ -297,9 +297,9 @@ typedef union {
        };
 } __PORTFbits_t;
 
-extern volatile __PORTFbits_t at 0xf85 PORTFbits;
+extern volatile __PORTFbits_t __at 0xf85 PORTFbits;
 
-extern sfr at 0xf86 PORTG;
+extern __sfr __at 0xf86 PORTG;
 typedef union {
        struct {
                unsigned RG0:1;
@@ -313,9 +313,9 @@ typedef union {
        };
 } __PORTGbits_t;
 
-extern volatile __PORTGbits_t at 0xf86 PORTGbits;
+extern volatile __PORTGbits_t __at 0xf86 PORTGbits;
 
-extern sfr at 0xf87 PORTH;
+extern __sfr __at 0xf87 PORTH;
 typedef union {
        struct {
                unsigned RH0:1;
@@ -329,9 +329,9 @@ typedef union {
        };
 } __PORTHbits_t;
 
-extern volatile __PORTHbits_t at 0xf87 PORTHbits;
+extern volatile __PORTHbits_t __at 0xf87 PORTHbits;
 
-extern sfr at 0xf88 PORTJ;
+extern __sfr __at 0xf88 PORTJ;
 typedef union {
        struct {
                unsigned RJ0:1;
@@ -345,9 +345,9 @@ typedef union {
        };
 } __PORTJbits_t;
 
-extern volatile __PORTJbits_t at 0xf88 PORTJbits;
+extern volatile __PORTJbits_t __at 0xf88 PORTJbits;
 
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
 typedef union {
        struct {
                unsigned LATA0:1;
@@ -361,9 +361,9 @@ typedef union {
        };
 } __LATAbits_t;
 
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
 
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
 typedef union {
        struct {
                unsigned LATB0:1;
@@ -377,9 +377,9 @@ typedef union {
        };
 } __LATBbits_t;
 
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
 
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
 typedef union {
        struct {
                unsigned LATC0:1;
@@ -393,9 +393,9 @@ typedef union {
        };
 } __LATCbits_t;
 
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
 
-extern sfr at 0xf8c LATD;
+extern __sfr __at 0xf8c LATD;
 typedef union {
        struct {
                unsigned LATD0:1;
@@ -409,9 +409,9 @@ typedef union {
        };
 } __LATDbits_t;
 
-extern volatile __LATDbits_t at 0xf8c LATDbits;
+extern volatile __LATDbits_t __at 0xf8c LATDbits;
 
-extern sfr at 0xf8d LATE;
+extern __sfr __at 0xf8d LATE;
 typedef union {
        struct {
                unsigned LATE0:1;
@@ -425,9 +425,9 @@ typedef union {
        };
 } __LATEbits_t;
 
-extern volatile __LATEbits_t at 0xf8d LATEbits;
+extern volatile __LATEbits_t __at 0xf8d LATEbits;
 
-extern sfr at 0xf8e LATF;
+extern __sfr __at 0xf8e LATF;
 typedef union {
        struct {
                unsigned LATF0:1;
@@ -441,9 +441,9 @@ typedef union {
        };
 } __LATFbits_t;
 
-extern volatile __LATFbits_t at 0xf8e LATFbits;
+extern volatile __LATFbits_t __at 0xf8e LATFbits;
 
-extern sfr at 0xf8f LATG;
+extern __sfr __at 0xf8f LATG;
 typedef union {
        struct {
                unsigned LATG0:1;
@@ -457,9 +457,9 @@ typedef union {
        };
 } __LATGbits_t;
 
-extern volatile __LATGbits_t at 0xf8f LATGbits;
+extern volatile __LATGbits_t __at 0xf8f LATGbits;
 
-extern sfr at 0xf90 LATH;
+extern __sfr __at 0xf90 LATH;
 typedef union {
        struct {
                unsigned LATH0:1;
@@ -473,9 +473,9 @@ typedef union {
        };
 } __LATHbits_t;
 
-extern volatile __LATHbits_t at 0xf90 LATHbits;
+extern volatile __LATHbits_t __at 0xf90 LATHbits;
 
-extern sfr at 0xf91 LATJ;
+extern __sfr __at 0xf91 LATJ;
 typedef union {
        struct {
                unsigned LATJ0:1;
@@ -489,9 +489,9 @@ typedef union {
        };
 } __LATJbits_t;
 
-extern volatile __LATJbits_t at 0xf91 LATJbits;
+extern volatile __LATJbits_t __at 0xf91 LATJbits;
 
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
 typedef union {
        struct {
                unsigned TRISA0:1;
@@ -505,9 +505,9 @@ typedef union {
        };
 } __TRISAbits_t;
 
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
 
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
 typedef union {
        struct {
                unsigned TRISB0:1;
@@ -521,9 +521,9 @@ typedef union {
        };
 } __TRISBbits_t;
 
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
 
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
 typedef union {
        struct {
                unsigned TRISC0:1;
@@ -537,9 +537,9 @@ typedef union {
        };
 } __TRISCbits_t;
 
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
 
-extern sfr at 0xf95 TRISD;
+extern __sfr __at 0xf95 TRISD;
 typedef union {
        struct {
                unsigned TRISD0:1;
@@ -553,9 +553,9 @@ typedef union {
        };
 } __TRISDbits_t;
 
-extern volatile __TRISDbits_t at 0xf95 TRISDbits;
+extern volatile __TRISDbits_t __at 0xf95 TRISDbits;
 
-extern sfr at 0xf96 TRISE;
+extern __sfr __at 0xf96 TRISE;
 typedef union {
        struct {
                unsigned TRISE0:1;
@@ -569,9 +569,9 @@ typedef union {
        };
 } __TRISEbits_t;
 
-extern volatile __TRISEbits_t at 0xf96 TRISEbits;
+extern volatile __TRISEbits_t __at 0xf96 TRISEbits;
 
-extern sfr at 0xf97 TRISF;
+extern __sfr __at 0xf97 TRISF;
 typedef union {
        struct {
                unsigned TRISF0:1;
@@ -585,9 +585,9 @@ typedef union {
        };
 } __TRISFbits_t;
 
-extern volatile __TRISFbits_t at 0xf97 TRISFbits;
+extern volatile __TRISFbits_t __at 0xf97 TRISFbits;
 
-extern sfr at 0xf98 TRISG;
+extern __sfr __at 0xf98 TRISG;
 typedef union {
        struct {
                unsigned TRISG0:1;
@@ -601,9 +601,9 @@ typedef union {
        };
 } __TRISGbits_t;
 
-extern volatile __TRISGbits_t at 0xf98 TRISGbits;
+extern volatile __TRISGbits_t __at 0xf98 TRISGbits;
 
-extern sfr at 0xf99 TRISH;
+extern __sfr __at 0xf99 TRISH;
 typedef union {
        struct {
                unsigned TRISH0:1;
@@ -617,9 +617,9 @@ typedef union {
        };
 } __TRISHbits_t;
 
-extern volatile __TRISHbits_t at 0xf99 TRISHbits;
+extern volatile __TRISHbits_t __at 0xf99 TRISHbits;
 
-extern sfr at 0xf9a TRISJ;
+extern __sfr __at 0xf9a TRISJ;
 typedef union {
        struct {
                unsigned TRISJ0:1;
@@ -633,9 +633,9 @@ typedef union {
        };
 } __TRISJbits_t;
 
-extern volatile __TRISJbits_t at 0xf9a TRISJbits;
+extern volatile __TRISJbits_t __at 0xf9a TRISJbits;
 
-extern sfr at 0xf9c MEMCON;
+extern __sfr __at 0xf9c MEMCON;
 typedef union {
        struct {
                unsigned WM0:1;
@@ -649,9 +649,9 @@ typedef union {
        };
 } __MEMCONbits_t;
 
-extern volatile __MEMCONbits_t at 0xf9c MEMCONbits;
+extern volatile __MEMCONbits_t __at 0xf9c MEMCONbits;
 
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
 typedef union {
        struct {
                unsigned TMR1IE:1;
@@ -665,9 +665,9 @@ typedef union {
        };
 } __PIE1bits_t;
 
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
 
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
 typedef union {
        struct {
                unsigned TMR1IF:1;
@@ -681,9 +681,9 @@ typedef union {
        };
 } __PIR1bits_t;
 
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
 
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
 typedef union {
        struct {
                unsigned TMR1IP:1;
@@ -697,9 +697,9 @@ typedef union {
        };
 } __IPR1bits_t;
 
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
 
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
 typedef union {
        struct {
                unsigned CCP2IE:1;
@@ -713,9 +713,9 @@ typedef union {
        };
 } __PIE2bits_t;
 
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
 
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
 typedef union {
        struct {
                unsigned CCP2IF:1;
@@ -729,9 +729,9 @@ typedef union {
        };
 } __PIR2bits_t;
 
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
 
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
 typedef union {
        struct {
                unsigned CCP2IP:1;
@@ -745,9 +745,9 @@ typedef union {
        };
 } __IPR2bits_t;
 
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
 
-extern sfr at 0xfa3 PIE3;
+extern __sfr __at 0xfa3 PIE3;
 typedef union {
        struct {
                unsigned CCP3IE:1;
@@ -761,9 +761,9 @@ typedef union {
        };
 } __PIE3bits_t;
 
-extern volatile __PIE3bits_t at 0xfa3 PIE3bits;
+extern volatile __PIE3bits_t __at 0xfa3 PIE3bits;
 
-extern sfr at 0xfa4 PIR3;
+extern __sfr __at 0xfa4 PIR3;
 typedef union {
        struct {
                unsigned CCP3IF:1;
@@ -777,9 +777,9 @@ typedef union {
        };
 } __PIR3bits_t;
 
-extern volatile __PIR3bits_t at 0xfa4 PIR3bits;
+extern volatile __PIR3bits_t __at 0xfa4 PIR3bits;
 
-extern sfr at 0xfa5 IPR3;
+extern __sfr __at 0xfa5 IPR3;
 typedef union {
        struct {
                unsigned CCP3IP:1;
@@ -793,9 +793,9 @@ typedef union {
        };
 } __IPR3bits_t;
 
-extern volatile __IPR3bits_t at 0xfa5 IPR3bits;
+extern volatile __IPR3bits_t __at 0xfa5 IPR3bits;
 
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
 typedef union {
        struct {
                unsigned RD:1;
@@ -809,13 +809,13 @@ typedef union {
        };
 } __EECON1bits_t;
 
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
 
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfaa EEADRH;
-extern sfr at 0xfab RCSTA1;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfaa EEADRH;
+extern __sfr __at 0xfab RCSTA1;
 typedef union {
        struct {
                unsigned RX9D:1;
@@ -829,9 +829,9 @@ typedef union {
        };
 } __RCSTA1bits_t;
 
-extern volatile __RCSTA1bits_t at 0xfab RCSTA1bits;
+extern volatile __RCSTA1bits_t __at 0xfab RCSTA1bits;
 
-extern sfr at 0xfac TXSTA1;
+extern __sfr __at 0xfac TXSTA1;
 typedef union {
        struct {
                unsigned TX9D:1;
@@ -845,12 +845,12 @@ typedef union {
        };
 } __TXSTA1bits_t;
 
-extern volatile __TXSTA1bits_t at 0xfac TXSTA1bits;
+extern volatile __TXSTA1bits_t __at 0xfac TXSTA1bits;
 
-extern sfr at 0xfad TXREG1;
-extern sfr at 0xfae RCREG1;
-extern sfr at 0xfaf SPBRG1;
-extern sfr at 0xfb0 PSPCON;
+extern __sfr __at 0xfad TXREG1;
+extern __sfr __at 0xfae RCREG1;
+extern __sfr __at 0xfaf SPBRG1;
+extern __sfr __at 0xfb0 PSPCON;
 typedef union {
        struct {
                unsigned :1;
@@ -864,9 +864,9 @@ typedef union {
        };
 } __PSPCONbits_t;
 
-extern volatile __PSPCONbits_t at 0xfb0 PSPCONbits;
+extern volatile __PSPCONbits_t __at 0xfb0 PSPCONbits;
 
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfb1 T3CON;
 typedef union {
        struct {
                unsigned TMR3ON:1;
@@ -880,11 +880,11 @@ typedef union {
        };
 } __T3CONbits_t;
 
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
 
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfb4 CMCON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfb4 CMCON;
 typedef union {
        struct {
                unsigned CM0:1;
@@ -898,9 +898,9 @@ typedef union {
        };
 } __CMCONbits_t;
 
-extern volatile __CMCONbits_t at 0xfb4 CMCONbits;
+extern volatile __CMCONbits_t __at 0xfb4 CMCONbits;
 
-extern sfr at 0xfb5 CVRCON;
+extern __sfr __at 0xfb5 CVRCON;
 typedef union {
        struct {
                unsigned CVR0:1;
@@ -914,9 +914,9 @@ typedef union {
        };
 } __CVRCONbits_t;
 
-extern volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
+extern volatile __CVRCONbits_t __at 0xfb5 CVRCONbits;
 
-extern sfr at 0xfb7 CCP3CON;
+extern __sfr __at 0xfb7 CCP3CON;
 typedef union {
        struct {
                unsigned CCP3M0:1;
@@ -930,11 +930,11 @@ typedef union {
        };
 } __CCP3CONbits_t;
 
-extern volatile __CCP3CONbits_t at 0xfb7 CCP3CONbits;
+extern volatile __CCP3CONbits_t __at 0xfb7 CCP3CONbits;
 
-extern sfr at 0xfb8 CCPR3L;
-extern sfr at 0xfb9 CCPR3H;
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfb8 CCPR3L;
+extern __sfr __at 0xfb9 CCPR3H;
+extern __sfr __at 0xfba CCP2CON;
 typedef union {
        struct {
                unsigned CCP2M0:1;
@@ -948,11 +948,11 @@ typedef union {
        };
 } __CCP2CONbits_t;
 
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
 
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfbd CCP1CON;
 typedef union {
        struct {
                unsigned CCP1M0:1;
@@ -966,11 +966,11 @@ typedef union {
        };
 } __CCP1CONbits_t;
 
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
 
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc0 ADCON2;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc0 ADCON2;
 typedef union {
        struct {
                unsigned ADCS0:1;
@@ -984,9 +984,9 @@ typedef union {
        };
 } __ADCON2bits_t;
 
-extern volatile __ADCON2bits_t at 0xfc0 ADCON2bits;
+extern volatile __ADCON2bits_t __at 0xfc0 ADCON2bits;
 
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfc1 ADCON1;
 typedef union {
        struct {
                unsigned PCFG0:1;
@@ -1000,9 +1000,9 @@ typedef union {
        };
 } __ADCON1bits_t;
 
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
 
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
 typedef union {
        struct {
                unsigned ADON:1;
@@ -1016,11 +1016,11 @@ typedef union {
        };
 } __ADCON0bits_t;
 
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
 
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
 typedef union {
        struct {
                unsigned SEN:1;
@@ -1034,9 +1034,9 @@ typedef union {
        };
 } __SSPCON2bits_t;
 
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
 
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
 typedef union {
        struct {
                unsigned SSPM0:1;
@@ -1050,9 +1050,9 @@ typedef union {
        };
 } __SSPCON1bits_t;
 
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
 
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
 typedef union {
        struct {
                unsigned BF:1;
@@ -1066,11 +1066,11 @@ typedef union {
        };
 } __SSPSTATbits_t;
 
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
 
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
 typedef union {
        struct {
                unsigned T2CKPS0:1;
@@ -1084,11 +1084,11 @@ typedef union {
        };
 } __T2CONbits_t;
 
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
 
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
 typedef union {
        struct {
                unsigned TMR1ON:1;
@@ -1102,11 +1102,11 @@ typedef union {
        };
 } __T1CONbits_t;
 
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
 
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
 typedef union {
        struct {
                unsigned BOR:1;
@@ -1120,9 +1120,9 @@ typedef union {
        };
 } __RCONbits_t;
 
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
 
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
 typedef union {
        struct {
                unsigned SWDTEN:1;
@@ -1147,9 +1147,9 @@ typedef union {
        };
 } __WDTCONbits_t;
 
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
 
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
 typedef union {
        struct {
                unsigned LVDL0:1;
@@ -1174,9 +1174,9 @@ typedef union {
        };
 } __LVDCONbits_t;
 
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
 
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
 typedef union {
        struct {
                unsigned SCS:1;
@@ -1190,12 +1190,12 @@ typedef union {
        };
 } __OSCCONbits_t;
 
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
 
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
 typedef union {
        struct {
                unsigned C:1;
@@ -1209,32 +1209,32 @@ typedef union {
        };
 } __STATUSbits_t;
 
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
 typedef union {
        struct {
                unsigned INT1F:1;
@@ -1259,9 +1259,9 @@ typedef union {
        };
 } __INTCON3bits_t;
 
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
 
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
 typedef union {
        struct {
                unsigned RBIP:1;
@@ -1275,9 +1275,9 @@ typedef union {
        };
 } __INTCON2bits_t;
 
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
 
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
 typedef union {
        struct {
                unsigned RBIF:1;
@@ -1291,18 +1291,18 @@ typedef union {
        };
 } __INTCONbits_t;
 
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
 
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
 typedef union {
        struct {
                unsigned STKPTR0:1;
@@ -1316,11 +1316,11 @@ typedef union {
        };
 } __STKPTRbits_t;
 
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
 
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
 
 
 /* Configuration registers locations */
index c9387369070c36fa039324ffd2ead8f0a763bc35..a3ef85a8389f24093a127c33680b2bc1387b906c 100644 (file)
@@ -15,8 +15,8 @@
 #ifndef __PIC18F8680_H__
 #define __PIC18F8680_H__
 
-extern sfr at 0xf00 RXF0SIDH;
-extern sfr at 0xf01 RXF0SIDL;
+extern __sfr __at 0xf00 RXF0SIDH;
+extern __sfr __at 0xf01 RXF0SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -30,12 +30,12 @@ typedef union {
        };
 } __RXF0SIDLbits_t;
 
-extern volatile __RXF0SIDLbits_t at 0xf01 RXF0SIDLbits;
+extern volatile __RXF0SIDLbits_t __at 0xf01 RXF0SIDLbits;
 
-extern sfr at 0xf02 RXF0EIDH;
-extern sfr at 0xf03 RXF0EIDL;
-extern sfr at 0xf04 RXF1SIDH;
-extern sfr at 0xf05 RXF1SIDL;
+extern __sfr __at 0xf02 RXF0EIDH;
+extern __sfr __at 0xf03 RXF0EIDL;
+extern __sfr __at 0xf04 RXF1SIDH;
+extern __sfr __at 0xf05 RXF1SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -49,14 +49,14 @@ typedef union {
        };
 } __RXF1SIDLbits_t;
 
-extern volatile __RXF1SIDLbits_t at 0xf05 RXF1SIDLbits;
+extern volatile __RXF1SIDLbits_t __at 0xf05 RXF1SIDLbits;
 
-extern sfr at 0xf06 RXF1EIDH;
-extern sfr at 0xf07 RXF1EIDL;
-extern sfr at 0xf08 RXF2SIDH;
-extern sfr at 0xf09 RXF2SIDL;
-extern sfr at 0xf0a RXF2EIDH;
-extern sfr at 0xf0b RXF2EIDL;
+extern __sfr __at 0xf06 RXF1EIDH;
+extern __sfr __at 0xf07 RXF1EIDL;
+extern __sfr __at 0xf08 RXF2SIDH;
+extern __sfr __at 0xf09 RXF2SIDL;
+extern __sfr __at 0xf0a RXF2EIDH;
+extern __sfr __at 0xf0b RXF2EIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -70,10 +70,10 @@ typedef union {
        };
 } __RXF2EIDLbits_t;
 
-extern volatile __RXF2EIDLbits_t at 0xf0b RXF2EIDLbits;
+extern volatile __RXF2EIDLbits_t __at 0xf0b RXF2EIDLbits;
 
-extern sfr at 0xf0c RXF3SIDH;
-extern sfr at 0xf0d RXF3SIDL;
+extern __sfr __at 0xf0c RXF3SIDH;
+extern __sfr __at 0xf0d RXF3SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -87,12 +87,12 @@ typedef union {
        };
 } __RXF3SIDLbits_t;
 
-extern volatile __RXF3SIDLbits_t at 0xf0d RXF3SIDLbits;
+extern volatile __RXF3SIDLbits_t __at 0xf0d RXF3SIDLbits;
 
-extern sfr at 0xf0e RXF3EIDH;
-extern sfr at 0xf0f RXF3EIDL;
-extern sfr at 0xf10 RXF4SIDH;
-extern sfr at 0xf11 RXF4SIDL;
+extern __sfr __at 0xf0e RXF3EIDH;
+extern __sfr __at 0xf0f RXF3EIDL;
+extern __sfr __at 0xf10 RXF4SIDH;
+extern __sfr __at 0xf11 RXF4SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -106,12 +106,12 @@ typedef union {
        };
 } __RXF4SIDLbits_t;
 
-extern volatile __RXF4SIDLbits_t at 0xf11 RXF4SIDLbits;
+extern volatile __RXF4SIDLbits_t __at 0xf11 RXF4SIDLbits;
 
-extern sfr at 0xf12 RXF4EIDH;
-extern sfr at 0xf13 RXF4EIDL;
-extern sfr at 0xf14 RXF5SIDH;
-extern sfr at 0xf15 RXF5SIDL;
+extern __sfr __at 0xf12 RXF4EIDH;
+extern __sfr __at 0xf13 RXF4EIDL;
+extern __sfr __at 0xf14 RXF5SIDH;
+extern __sfr __at 0xf15 RXF5SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -125,12 +125,12 @@ typedef union {
        };
 } __RXF5SIDLbits_t;
 
-extern volatile __RXF5SIDLbits_t at 0xf15 RXF5SIDLbits;
+extern volatile __RXF5SIDLbits_t __at 0xf15 RXF5SIDLbits;
 
-extern sfr at 0xf16 RXF5EIDH;
-extern sfr at 0xf17 RXF5EIDL;
-extern sfr at 0xf18 RXM0SIDH;
-extern sfr at 0xf19 RXM0SIDL;
+extern __sfr __at 0xf16 RXF5EIDH;
+extern __sfr __at 0xf17 RXF5EIDL;
+extern __sfr __at 0xf18 RXM0SIDH;
+extern __sfr __at 0xf19 RXM0SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -144,12 +144,12 @@ typedef union {
        };
 } __RXM0SIDLbits_t;
 
-extern volatile __RXM0SIDLbits_t at 0xf19 RXM0SIDLbits;
+extern volatile __RXM0SIDLbits_t __at 0xf19 RXM0SIDLbits;
 
-extern sfr at 0xf1a RXM0EIDH;
-extern sfr at 0xf1b RXM0EIDL;
-extern sfr at 0xf1c RXM1SIDH;
-extern sfr at 0xf1d RXM1SIDL;
+extern __sfr __at 0xf1a RXM0EIDH;
+extern __sfr __at 0xf1b RXM0EIDL;
+extern __sfr __at 0xf1c RXM1SIDH;
+extern __sfr __at 0xf1d RXM1SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -163,11 +163,11 @@ typedef union {
        };
 } __RXM1SIDLbits_t;
 
-extern volatile __RXM1SIDLbits_t at 0xf1d RXM1SIDLbits;
+extern volatile __RXM1SIDLbits_t __at 0xf1d RXM1SIDLbits;
 
-extern sfr at 0xf1e RXM1EIDH;
-extern sfr at 0xf1f RXM1EIDL;
-extern sfr at 0xf20 TXB2CON;
+extern __sfr __at 0xf1e RXM1EIDH;
+extern __sfr __at 0xf1f RXM1EIDL;
+extern __sfr __at 0xf20 TXB2CON;
 typedef union {
        struct {
                unsigned TXPRI0:1;
@@ -181,10 +181,10 @@ typedef union {
        };
 } __TXB2CONbits_t;
 
-extern volatile __TXB2CONbits_t at 0xf20 TXB2CONbits;
+extern volatile __TXB2CONbits_t __at 0xf20 TXB2CONbits;
 
-extern sfr at 0xf21 TXB2SIDH;
-extern sfr at 0xf22 TXB2SIDL;
+extern __sfr __at 0xf21 TXB2SIDH;
+extern __sfr __at 0xf22 TXB2SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -198,11 +198,11 @@ typedef union {
        };
 } __TXB2SIDLbits_t;
 
-extern volatile __TXB2SIDLbits_t at 0xf22 TXB2SIDLbits;
+extern volatile __TXB2SIDLbits_t __at 0xf22 TXB2SIDLbits;
 
-extern sfr at 0xf23 TXB2EIDH;
-extern sfr at 0xf24 TXB2EIDL;
-extern sfr at 0xf25 TXB2DLC;
+extern __sfr __at 0xf23 TXB2EIDH;
+extern __sfr __at 0xf24 TXB2EIDL;
+extern __sfr __at 0xf25 TXB2DLC;
 typedef union {
        struct {
                unsigned DLC0:1;
@@ -216,18 +216,18 @@ typedef union {
        };
 } __TXB2DLCbits_t;
 
-extern volatile __TXB2DLCbits_t at 0xf25 TXB2DLCbits;
+extern volatile __TXB2DLCbits_t __at 0xf25 TXB2DLCbits;
 
-extern sfr at 0xf26 TXB2D0;
-extern sfr at 0xf27 TXB2D1;
-extern sfr at 0xf28 TXB2D2;
-extern sfr at 0xf29 TXB2D3;
-extern sfr at 0xf2a TXB2D4;
-extern sfr at 0xf2b TXB2D5;
-extern sfr at 0xf2c TXB2D6;
-extern sfr at 0xf2d TXB2D7;
-extern sfr at 0xf2e CANSTATRO3;
-extern sfr at 0xf30 TXB1CON;
+extern __sfr __at 0xf26 TXB2D0;
+extern __sfr __at 0xf27 TXB2D1;
+extern __sfr __at 0xf28 TXB2D2;
+extern __sfr __at 0xf29 TXB2D3;
+extern __sfr __at 0xf2a TXB2D4;
+extern __sfr __at 0xf2b TXB2D5;
+extern __sfr __at 0xf2c TXB2D6;
+extern __sfr __at 0xf2d TXB2D7;
+extern __sfr __at 0xf2e CANSTATRO3;
+extern __sfr __at 0xf30 TXB1CON;
 typedef union {
        struct {
                unsigned TXPRI0:1;
@@ -241,10 +241,10 @@ typedef union {
        };
 } __TXB1CONbits_t;
 
-extern volatile __TXB1CONbits_t at 0xf30 TXB1CONbits;
+extern volatile __TXB1CONbits_t __at 0xf30 TXB1CONbits;
 
-extern sfr at 0xf31 TXB1SIDH;
-extern sfr at 0xf32 TXB1SIDL;
+extern __sfr __at 0xf31 TXB1SIDH;
+extern __sfr __at 0xf32 TXB1SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -258,11 +258,11 @@ typedef union {
        };
 } __TXB1SIDLbits_t;
 
-extern volatile __TXB1SIDLbits_t at 0xf32 TXB1SIDLbits;
+extern volatile __TXB1SIDLbits_t __at 0xf32 TXB1SIDLbits;
 
-extern sfr at 0xf33 TXB1EIDH;
-extern sfr at 0xf34 TXB1EIDL;
-extern sfr at 0xf35 TXB1DLC;
+extern __sfr __at 0xf33 TXB1EIDH;
+extern __sfr __at 0xf34 TXB1EIDL;
+extern __sfr __at 0xf35 TXB1DLC;
 typedef union {
        struct {
                unsigned DLC0:1;
@@ -276,18 +276,18 @@ typedef union {
        };
 } __TXB1DLCbits_t;
 
-extern volatile __TXB1DLCbits_t at 0xf35 TXB1DLCbits;
+extern volatile __TXB1DLCbits_t __at 0xf35 TXB1DLCbits;
 
-extern sfr at 0xf36 TXB1D0;
-extern sfr at 0xf37 TXB1D1;
-extern sfr at 0xf38 TXB1D2;
-extern sfr at 0xf39 TXB1D3;
-extern sfr at 0xf3a TXB1D4;
-extern sfr at 0xf3b TXB1D5;
-extern sfr at 0xf3c TXB1D6;
-extern sfr at 0xf3d TXB1D7;
-extern sfr at 0xf3e CANSTATRO2;
-extern sfr at 0xf40 TXB0CON;
+extern __sfr __at 0xf36 TXB1D0;
+extern __sfr __at 0xf37 TXB1D1;
+extern __sfr __at 0xf38 TXB1D2;
+extern __sfr __at 0xf39 TXB1D3;
+extern __sfr __at 0xf3a TXB1D4;
+extern __sfr __at 0xf3b TXB1D5;
+extern __sfr __at 0xf3c TXB1D6;
+extern __sfr __at 0xf3d TXB1D7;
+extern __sfr __at 0xf3e CANSTATRO2;
+extern __sfr __at 0xf40 TXB0CON;
 typedef union {
        struct {
                unsigned TXPRI0:1;
@@ -301,13 +301,13 @@ typedef union {
        };
 } __TXB0CONbits_t;
 
-extern volatile __TXB0CONbits_t at 0xf40 TXB0CONbits;
+extern volatile __TXB0CONbits_t __at 0xf40 TXB0CONbits;
 
-extern sfr at 0xf41 TXB0SIDH;
-extern sfr at 0xf42 TXB0SIDL;
-extern sfr at 0xf43 TXB0EIDH;
-extern sfr at 0xf44 TXB0EIDL;
-extern sfr at 0xf45 TXB0DLC;
+extern __sfr __at 0xf41 TXB0SIDH;
+extern __sfr __at 0xf42 TXB0SIDL;
+extern __sfr __at 0xf43 TXB0EIDH;
+extern __sfr __at 0xf44 TXB0EIDL;
+extern __sfr __at 0xf45 TXB0DLC;
 typedef union {
        struct {
                unsigned DLC0:1;
@@ -321,18 +321,18 @@ typedef union {
        };
 } __TXB0DLCbits_t;
 
-extern volatile __TXB0DLCbits_t at 0xf45 TXB0DLCbits;
+extern volatile __TXB0DLCbits_t __at 0xf45 TXB0DLCbits;
 
-extern sfr at 0xf46 TXB0D0;
-extern sfr at 0xf47 TXB0D1;
-extern sfr at 0xf48 TXB0D2;
-extern sfr at 0xf49 TXB0D3;
-extern sfr at 0xf4a TXB0D4;
-extern sfr at 0xf4b TXB0D5;
-extern sfr at 0xf4c TXB0D6;
-extern sfr at 0xf4d TXB0D7;
-extern sfr at 0xf4e CANSTATRO1;
-extern sfr at 0xf50 RXB1CON;
+extern __sfr __at 0xf46 TXB0D0;
+extern __sfr __at 0xf47 TXB0D1;
+extern __sfr __at 0xf48 TXB0D2;
+extern __sfr __at 0xf49 TXB0D3;
+extern __sfr __at 0xf4a TXB0D4;
+extern __sfr __at 0xf4b TXB0D5;
+extern __sfr __at 0xf4c TXB0D6;
+extern __sfr __at 0xf4d TXB0D7;
+extern __sfr __at 0xf4e CANSTATRO1;
+extern __sfr __at 0xf50 RXB1CON;
 typedef union {
        struct {
                unsigned :1;
@@ -346,10 +346,10 @@ typedef union {
        };
 } __RXB1CONbits_t;
 
-extern volatile __RXB1CONbits_t at 0xf50 RXB1CONbits;
+extern volatile __RXB1CONbits_t __at 0xf50 RXB1CONbits;
 
-extern sfr at 0xf51 RXB1SIDH;
-extern sfr at 0xf52 RXB1SIDL;
+extern __sfr __at 0xf51 RXB1SIDH;
+extern __sfr __at 0xf52 RXB1SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -363,11 +363,11 @@ typedef union {
        };
 } __RXB1SIDLbits_t;
 
-extern volatile __RXB1SIDLbits_t at 0xf52 RXB1SIDLbits;
+extern volatile __RXB1SIDLbits_t __at 0xf52 RXB1SIDLbits;
 
-extern sfr at 0xf53 RXB1EIDH;
-extern sfr at 0xf54 RXB1EIDL;
-extern sfr at 0xf55 RXB1DLC;
+extern __sfr __at 0xf53 RXB1EIDH;
+extern __sfr __at 0xf54 RXB1EIDL;
+extern __sfr __at 0xf55 RXB1DLC;
 typedef union {
        struct {
                unsigned DLC0:1;
@@ -381,18 +381,18 @@ typedef union {
        };
 } __RXB1DLCbits_t;
 
-extern volatile __RXB1DLCbits_t at 0xf55 RXB1DLCbits;
+extern volatile __RXB1DLCbits_t __at 0xf55 RXB1DLCbits;
 
-extern sfr at 0xf56 RXB1D0;
-extern sfr at 0xf57 RXB1D1;
-extern sfr at 0xf58 RXB1D2;
-extern sfr at 0xf59 RXB1D3;
-extern sfr at 0xf5a RXB1D4;
-extern sfr at 0xf5b RXB1D5;
-extern sfr at 0xf5c RXB1D6;
-extern sfr at 0xf5d RXB1D7;
-extern sfr at 0xf5e CANSTATRO0;
-extern sfr at 0xf60 RXB0CON;
+extern __sfr __at 0xf56 RXB1D0;
+extern __sfr __at 0xf57 RXB1D1;
+extern __sfr __at 0xf58 RXB1D2;
+extern __sfr __at 0xf59 RXB1D3;
+extern __sfr __at 0xf5a RXB1D4;
+extern __sfr __at 0xf5b RXB1D5;
+extern __sfr __at 0xf5c RXB1D6;
+extern __sfr __at 0xf5d RXB1D7;
+extern __sfr __at 0xf5e CANSTATRO0;
+extern __sfr __at 0xf60 RXB0CON;
 typedef union {
        struct {
                unsigned FILHIT0:1;
@@ -406,10 +406,10 @@ typedef union {
        };
 } __RXB0CONbits_t;
 
-extern volatile __RXB0CONbits_t at 0xf60 RXB0CONbits;
+extern volatile __RXB0CONbits_t __at 0xf60 RXB0CONbits;
 
-extern sfr at 0xf61 RXB0SIDH;
-extern sfr at 0xf62 RXB0SIDL;
+extern __sfr __at 0xf61 RXB0SIDH;
+extern __sfr __at 0xf62 RXB0SIDL;
 typedef union {
        struct {
                unsigned EID16:1;
@@ -423,20 +423,20 @@ typedef union {
        };
 } __RXB0SIDLbits_t;
 
-extern volatile __RXB0SIDLbits_t at 0xf62 RXB0SIDLbits;
+extern volatile __RXB0SIDLbits_t __at 0xf62 RXB0SIDLbits;
 
-extern sfr at 0xf63 RXB0EIDH;
-extern sfr at 0xf64 RXB0EIDL;
-extern sfr at 0xf65 RXB0DLC;
-extern sfr at 0xf66 RXB0D0;
-extern sfr at 0xf67 RXB0D1;
-extern sfr at 0xf68 RXB0D2;
-extern sfr at 0xf69 RXB0D3;
-extern sfr at 0xf6a RXB0D4;
-extern sfr at 0xf6b RXB0D5;
-extern sfr at 0xf6c RXB0D6;
-extern sfr at 0xf6d RXB0D7;
-extern sfr at 0xf6e CANSTAT;
+extern __sfr __at 0xf63 RXB0EIDH;
+extern __sfr __at 0xf64 RXB0EIDL;
+extern __sfr __at 0xf65 RXB0DLC;
+extern __sfr __at 0xf66 RXB0D0;
+extern __sfr __at 0xf67 RXB0D1;
+extern __sfr __at 0xf68 RXB0D2;
+extern __sfr __at 0xf69 RXB0D3;
+extern __sfr __at 0xf6a RXB0D4;
+extern __sfr __at 0xf6b RXB0D5;
+extern __sfr __at 0xf6c RXB0D6;
+extern __sfr __at 0xf6d RXB0D7;
+extern __sfr __at 0xf6e CANSTAT;
 typedef union {
        struct {
                unsigned :1;
@@ -450,9 +450,9 @@ typedef union {
        };
 } __CANSTATbits_t;
 
-extern volatile __CANSTATbits_t at 0xf6e CANSTATbits;
+extern volatile __CANSTATbits_t __at 0xf6e CANSTATbits;
 
-extern sfr at 0xf6f CANCON;
+extern __sfr __at 0xf6f CANCON;
 typedef union {
        struct {
                unsigned :1;
@@ -466,9 +466,9 @@ typedef union {
        };
 } __CANCONbits_t;
 
-extern volatile __CANCONbits_t at 0xf6f CANCONbits;
+extern volatile __CANCONbits_t __at 0xf6f CANCONbits;
 
-extern sfr at 0xf70 BRGCON1;
+extern __sfr __at 0xf70 BRGCON1;
 typedef union {
        struct {
                unsigned BRP0:1;
@@ -482,9 +482,9 @@ typedef union {
        };
 } __BRGCON1bits_t;
 
-extern volatile __BRGCON1bits_t at 0xf70 BRGCON1bits;
+extern volatile __BRGCON1bits_t __at 0xf70 BRGCON1bits;
 
-extern sfr at 0xf71 BRGCON2;
+extern __sfr __at 0xf71 BRGCON2;
 typedef union {
        struct {
                unsigned PRSEG0:1;
@@ -498,9 +498,9 @@ typedef union {
        };
 } __BRGCON2bits_t;
 
-extern volatile __BRGCON2bits_t at 0xf71 BRGCON2bits;
+extern volatile __BRGCON2bits_t __at 0xf71 BRGCON2bits;
 
-extern sfr at 0xf72 BRGCON3;
+extern __sfr __at 0xf72 BRGCON3;
 typedef union {
        struct {
                unsigned SEG2PH0:1;
@@ -514,9 +514,9 @@ typedef union {
        };
 } __BRGCON3bits_t;
 
-extern volatile __BRGCON3bits_t at 0xf72 BRGCON3bits;
+extern volatile __BRGCON3bits_t __at 0xf72 BRGCON3bits;
 
-extern sfr at 0xf73 CIOCON;
+extern __sfr __at 0xf73 CIOCON;
 typedef union {
        struct {
                unsigned :1;
@@ -530,9 +530,9 @@ typedef union {
        };
 } __CIOCONbits_t;
 
-extern volatile __CIOCONbits_t at 0xf73 CIOCONbits;
+extern volatile __CIOCONbits_t __at 0xf73 CIOCONbits;
 
-extern sfr at 0xf74 COMSTAT;
+extern __sfr __at 0xf74 COMSTAT;
 typedef union {
        struct {
                unsigned EWARN:1;
@@ -546,9 +546,9 @@ typedef union {
        };
 } __COMSTATbits_t;
 
-extern volatile __COMSTATbits_t at 0xf74 COMSTATbits;
+extern volatile __COMSTATbits_t __at 0xf74 COMSTATbits;
 
-extern sfr at 0xf75 RXERRCNT;
+extern __sfr __at 0xf75 RXERRCNT;
 typedef union {
        struct {
                unsigned REC0:1;
@@ -562,9 +562,9 @@ typedef union {
        };
 } __RXERRCNTbits_t;
 
-extern volatile __RXERRCNTbits_t at 0xf75 RXERRCNTbits;
+extern volatile __RXERRCNTbits_t __at 0xf75 RXERRCNTbits;
 
-extern sfr at 0xf76 TXERRCNT;
+extern __sfr __at 0xf76 TXERRCNT;
 typedef union {
        struct {
                unsigned TEC0:1;
@@ -578,9 +578,9 @@ typedef union {
        };
 } __TXERRCNTbits_t;
 
-extern volatile __TXERRCNTbits_t at 0xf76 TXERRCNTbits;
+extern volatile __TXERRCNTbits_t __at 0xf76 TXERRCNTbits;
 
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf80 PORTA;
 typedef union {
        struct {
                unsigned RA0:1;
@@ -627,9 +627,9 @@ typedef union {
        };
 } __PORTAbits_t;
 
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
 
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
 typedef union {
        struct {
                unsigned RB0:1;
@@ -654,9 +654,9 @@ typedef union {
        };
 } __PORTBbits_t;
 
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
 
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
 typedef union {
        struct {
                unsigned RC0:1;
@@ -692,9 +692,9 @@ typedef union {
        };
 } __PORTCbits_t;
 
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
 
-extern sfr at 0xf83 PORTD;
+extern __sfr __at 0xf83 PORTD;
 typedef union {
        struct {
                unsigned RD0:1;
@@ -719,9 +719,9 @@ typedef union {
        };
 } __PORTDbits_t;
 
-extern volatile __PORTDbits_t at 0xf83 PORTDbits;
+extern volatile __PORTDbits_t __at 0xf83 PORTDbits;
 
-extern sfr at 0xf84 PORTE;
+extern __sfr __at 0xf84 PORTE;
 typedef union {
        struct {
                unsigned RE0:1;
@@ -757,9 +757,9 @@ typedef union {
        };
 } __PORTEbits_t;
 
-extern volatile __PORTEbits_t at 0xf84 PORTEbits;
+extern volatile __PORTEbits_t __at 0xf84 PORTEbits;
 
-extern sfr at 0xf85 PORTF;
+extern __sfr __at 0xf85 PORTF;
 typedef union {
        struct {
                unsigned RF0:1;
@@ -773,9 +773,9 @@ typedef union {
        };
 } __PORTFbits_t;
 
-extern volatile __PORTFbits_t at 0xf85 PORTFbits;
+extern volatile __PORTFbits_t __at 0xf85 PORTFbits;
 
-extern sfr at 0xf86 PORTG;
+extern __sfr __at 0xf86 PORTG;
 typedef union {
        struct {
                unsigned RG0:1;
@@ -789,9 +789,9 @@ typedef union {
        };
 } __PORTGbits_t;
 
-extern volatile __PORTGbits_t at 0xf86 PORTGbits;
+extern volatile __PORTGbits_t __at 0xf86 PORTGbits;
 
-extern sfr at 0xf87 PORTH;
+extern __sfr __at 0xf87 PORTH;
 typedef union {
        struct {
                unsigned RH0:1;
@@ -805,9 +805,9 @@ typedef union {
        };
 } __PORTHbits_t;
 
-extern volatile __PORTHbits_t at 0xf87 PORTHbits;
+extern volatile __PORTHbits_t __at 0xf87 PORTHbits;
 
-extern sfr at 0xf88 PORTJ;
+extern __sfr __at 0xf88 PORTJ;
 typedef union {
        struct {
                unsigned RJ0:1;
@@ -821,9 +821,9 @@ typedef union {
        };
 } __PORTJbits_t;
 
-extern volatile __PORTJbits_t at 0xf88 PORTJbits;
+extern volatile __PORTJbits_t __at 0xf88 PORTJbits;
 
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
 typedef union {
        struct {
                unsigned LATA0:1;
@@ -837,9 +837,9 @@ typedef union {
        };
 } __LATAbits_t;
 
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
 
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
 typedef union {
        struct {
                unsigned LATB0:1;
@@ -853,9 +853,9 @@ typedef union {
        };
 } __LATBbits_t;
 
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
 
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
 typedef union {
        struct {
                unsigned LATC0:1;
@@ -869,9 +869,9 @@ typedef union {
        };
 } __LATCbits_t;
 
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
 
-extern sfr at 0xf8c LATD;
+extern __sfr __at 0xf8c LATD;
 typedef union {
        struct {
                unsigned LATD0:1;
@@ -885,9 +885,9 @@ typedef union {
        };
 } __LATDbits_t;
 
-extern volatile __LATDbits_t at 0xf8c LATDbits;
+extern volatile __LATDbits_t __at 0xf8c LATDbits;
 
-extern sfr at 0xf8d LATE;
+extern __sfr __at 0xf8d LATE;
 typedef union {
        struct {
                unsigned LATE0:1;
@@ -901,9 +901,9 @@ typedef union {
        };
 } __LATEbits_t;
 
-extern volatile __LATEbits_t at 0xf8d LATEbits;
+extern volatile __LATEbits_t __at 0xf8d LATEbits;
 
-extern sfr at 0xf8e LATF;
+extern __sfr __at 0xf8e LATF;
 typedef union {
        struct {
                unsigned LATF0:1;
@@ -917,9 +917,9 @@ typedef union {
        };
 } __LATFbits_t;
 
-extern volatile __LATFbits_t at 0xf8e LATFbits;
+extern volatile __LATFbits_t __at 0xf8e LATFbits;
 
-extern sfr at 0xf8f LATG;
+extern __sfr __at 0xf8f LATG;
 typedef union {
        struct {
                unsigned LATG0:1;
@@ -933,9 +933,9 @@ typedef union {
        };
 } __LATGbits_t;
 
-extern volatile __LATGbits_t at 0xf8f LATGbits;
+extern volatile __LATGbits_t __at 0xf8f LATGbits;
 
-extern sfr at 0xf90 LATH;
+extern __sfr __at 0xf90 LATH;
 typedef union {
        struct {
                unsigned LATH0:1;
@@ -949,9 +949,9 @@ typedef union {
        };
 } __LATHbits_t;
 
-extern volatile __LATHbits_t at 0xf90 LATHbits;
+extern volatile __LATHbits_t __at 0xf90 LATHbits;
 
-extern sfr at 0xf91 LATJ;
+extern __sfr __at 0xf91 LATJ;
 typedef union {
        struct {
                unsigned LATJ0:1;
@@ -965,9 +965,9 @@ typedef union {
        };
 } __LATJbits_t;
 
-extern volatile __LATJbits_t at 0xf91 LATJbits;
+extern volatile __LATJbits_t __at 0xf91 LATJbits;
 
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
 typedef union {
        struct {
                unsigned TRISA0:1;
@@ -981,9 +981,9 @@ typedef union {
        };
 } __TRISAbits_t;
 
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
 
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
 typedef union {
        struct {
                unsigned TRISB0:1;
@@ -997,9 +997,9 @@ typedef union {
        };
 } __TRISBbits_t;
 
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
 
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
 typedef union {
        struct {
                unsigned TRISC0:1;
@@ -1013,9 +1013,9 @@ typedef union {
        };
 } __TRISCbits_t;
 
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
 
-extern sfr at 0xf95 TRISD;
+extern __sfr __at 0xf95 TRISD;
 typedef union {
        struct {
                unsigned TRISD0:1;
@@ -1029,9 +1029,9 @@ typedef union {
        };
 } __TRISDbits_t;
 
-extern volatile __TRISDbits_t at 0xf95 TRISDbits;
+extern volatile __TRISDbits_t __at 0xf95 TRISDbits;
 
-extern sfr at 0xf96 TRISE;
+extern __sfr __at 0xf96 TRISE;
 typedef union {
        struct {
                unsigned TRISE0:1;
@@ -1045,9 +1045,9 @@ typedef union {
        };
 } __TRISEbits_t;
 
-extern volatile __TRISEbits_t at 0xf96 TRISEbits;
+extern volatile __TRISEbits_t __at 0xf96 TRISEbits;
 
-extern sfr at 0xf97 TRISF;
+extern __sfr __at 0xf97 TRISF;
 typedef union {
        struct {
                unsigned TRISF0:1;
@@ -1061,9 +1061,9 @@ typedef union {
        };
 } __TRISFbits_t;
 
-extern volatile __TRISFbits_t at 0xf97 TRISFbits;
+extern volatile __TRISFbits_t __at 0xf97 TRISFbits;
 
-extern sfr at 0xf98 TRISG;
+extern __sfr __at 0xf98 TRISG;
 typedef union {
        struct {
                unsigned TRISG0:1;
@@ -1077,9 +1077,9 @@ typedef union {
        };
 } __TRISGbits_t;
 
-extern volatile __TRISGbits_t at 0xf98 TRISGbits;
+extern volatile __TRISGbits_t __at 0xf98 TRISGbits;
 
-extern sfr at 0xf99 TRISH;
+extern __sfr __at 0xf99 TRISH;
 typedef union {
        struct {
                unsigned TRISH0:1;
@@ -1093,9 +1093,9 @@ typedef union {
        };
 } __TRISHbits_t;
 
-extern volatile __TRISHbits_t at 0xf99 TRISHbits;
+extern volatile __TRISHbits_t __at 0xf99 TRISHbits;
 
-extern sfr at 0xf9a TRISJ;
+extern __sfr __at 0xf9a TRISJ;
 typedef union {
        struct {
                unsigned TRISJ0:1;
@@ -1109,9 +1109,9 @@ typedef union {
        };
 } __TRISJbits_t;
 
-extern volatile __TRISJbits_t at 0xf9a TRISJbits;
+extern volatile __TRISJbits_t __at 0xf9a TRISJbits;
 
-extern sfr at 0xf9c MEMCON;
+extern __sfr __at 0xf9c MEMCON;
 typedef union {
        struct {
                unsigned WM0:1;
@@ -1125,9 +1125,9 @@ typedef union {
        };
 } __MEMCONbits_t;
 
-extern volatile __MEMCONbits_t at 0xf9c MEMCONbits;
+extern volatile __MEMCONbits_t __at 0xf9c MEMCONbits;
 
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
 typedef union {
        struct {
                unsigned TMR1IE:1;
@@ -1141,9 +1141,9 @@ typedef union {
        };
 } __PIE1bits_t;
 
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
 
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
 typedef union {
        struct {
                unsigned TMR1IF:1;
@@ -1157,9 +1157,9 @@ typedef union {
        };
 } __PIR1bits_t;
 
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
 
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
 typedef union {
        struct {
                unsigned TMR1IP:1;
@@ -1173,9 +1173,9 @@ typedef union {
        };
 } __IPR1bits_t;
 
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
 
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
 typedef union {
        struct {
                unsigned CCP2IE:1;
@@ -1189,9 +1189,9 @@ typedef union {
        };
 } __PIE2bits_t;
 
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
 
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
 typedef union {
        struct {
                unsigned CCP2IF:1;
@@ -1205,9 +1205,9 @@ typedef union {
        };
 } __PIR2bits_t;
 
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
 
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
 typedef union {
        struct {
                unsigned CCP2IP:1;
@@ -1221,9 +1221,9 @@ typedef union {
        };
 } __IPR2bits_t;
 
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
 
-extern sfr at 0xfa3 PIE3;
+extern __sfr __at 0xfa3 PIE3;
 typedef union {
        struct {
                unsigned RX0IE:1;
@@ -1237,9 +1237,9 @@ typedef union {
        };
 } __PIE3bits_t;
 
-extern volatile __PIE3bits_t at 0xfa3 PIE3bits;
+extern volatile __PIE3bits_t __at 0xfa3 PIE3bits;
 
-extern sfr at 0xfa4 PIR3;
+extern __sfr __at 0xfa4 PIR3;
 typedef union {
        struct {
                unsigned RX0IF:1;
@@ -1253,9 +1253,9 @@ typedef union {
        };
 } __PIR3bits_t;
 
-extern volatile __PIR3bits_t at 0xfa4 PIR3bits;
+extern volatile __PIR3bits_t __at 0xfa4 PIR3bits;
 
-extern sfr at 0xfa5 IPR3;
+extern __sfr __at 0xfa5 IPR3;
 typedef union {
        struct {
                unsigned RX0IP:1;
@@ -1269,9 +1269,9 @@ typedef union {
        };
 } __IPR3bits_t;
 
-extern volatile __IPR3bits_t at 0xfa5 IPR3bits;
+extern volatile __IPR3bits_t __at 0xfa5 IPR3bits;
 
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
 typedef union {
        struct {
                unsigned RD:1;
@@ -1285,13 +1285,13 @@ typedef union {
        };
 } __EECON1bits_t;
 
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
 
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfaa EEADRH;
-extern sfr at 0xfab RCSTA;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfaa EEADRH;
+extern __sfr __at 0xfab RCSTA;
 typedef union {
        struct {
                unsigned RX9D:1;
@@ -1305,9 +1305,9 @@ typedef union {
        };
 } __RCSTAbits_t;
 
-extern volatile __RCSTAbits_t at 0xfab RCSTAbits;
+extern volatile __RCSTAbits_t __at 0xfab RCSTAbits;
 
-extern sfr at 0xfac TXSTA;
+extern __sfr __at 0xfac TXSTA;
 typedef union {
        struct {
                unsigned TX9D:1;
@@ -1321,12 +1321,12 @@ typedef union {
        };
 } __TXSTAbits_t;
 
-extern volatile __TXSTAbits_t at 0xfac TXSTAbits;
+extern volatile __TXSTAbits_t __at 0xfac TXSTAbits;
 
-extern sfr at 0xfad TXREG;
-extern sfr at 0xfae RCREG;
-extern sfr at 0xfaf SPBRG;
-extern sfr at 0xfb0 PSPCON;
+extern __sfr __at 0xfad TXREG;
+extern __sfr __at 0xfae RCREG;
+extern __sfr __at 0xfaf SPBRG;
+extern __sfr __at 0xfb0 PSPCON;
 typedef union {
        struct {
                unsigned :1;
@@ -1340,9 +1340,9 @@ typedef union {
        };
 } __PSPCONbits_t;
 
-extern volatile __PSPCONbits_t at 0xfb0 PSPCONbits;
+extern volatile __PSPCONbits_t __at 0xfb0 PSPCONbits;
 
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfb1 T3CON;
 typedef union {
        struct {
                unsigned TMR3ON:1;
@@ -1356,11 +1356,11 @@ typedef union {
        };
 } __T3CONbits_t;
 
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
 
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfb4 CMCON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfb4 CMCON;
 typedef union {
        struct {
                unsigned CM0:1;
@@ -1374,9 +1374,9 @@ typedef union {
        };
 } __CMCONbits_t;
 
-extern volatile __CMCONbits_t at 0xfb4 CMCONbits;
+extern volatile __CMCONbits_t __at 0xfb4 CMCONbits;
 
-extern sfr at 0xfb5 CVRCON;
+extern __sfr __at 0xfb5 CVRCON;
 typedef union {
        struct {
                unsigned CVR0:1;
@@ -1390,9 +1390,9 @@ typedef union {
        };
 } __CVRCONbits_t;
 
-extern volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
+extern volatile __CVRCONbits_t __at 0xfb5 CVRCONbits;
 
-extern sfr at 0xfb6 ECCPAS;
+extern __sfr __at 0xfb6 ECCPAS;
 typedef union {
        struct {
                unsigned PSSBD0:1;
@@ -1406,9 +1406,9 @@ typedef union {
        };
 } __ECCPASbits_t;
 
-extern volatile __ECCPASbits_t at 0xfb6 ECCPASbits;
+extern volatile __ECCPASbits_t __at 0xfb6 ECCPASbits;
 
-extern sfr at 0xfb7 ECCP1DEL;
+extern __sfr __at 0xfb7 ECCP1DEL;
 typedef union {
        struct {
                unsigned EPDC0:1;
@@ -1422,9 +1422,9 @@ typedef union {
        };
 } __ECCP1DELbits_t;
 
-extern volatile __ECCP1DELbits_t at 0xfb7 ECCP1DELbits;
+extern volatile __ECCP1DELbits_t __at 0xfb7 ECCP1DELbits;
 
-extern sfr at 0xfba ECCP1CON;
+extern __sfr __at 0xfba ECCP1CON;
 typedef union {
        struct {
                unsigned ECCP1M0:1;
@@ -1438,9 +1438,9 @@ typedef union {
        };
 } __ECCP1CONbits_t;
 
-extern volatile __ECCP1CONbits_t at 0xfba ECCP1CONbits;
+extern volatile __ECCP1CONbits_t __at 0xfba ECCP1CONbits;
 
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfba CCP2CON;
 typedef union {
        struct {
                unsigned CCP2M0:1;
@@ -1454,13 +1454,13 @@ typedef union {
        };
 } __CCP2CONbits_t;
 
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
 
-extern sfr at 0xfbb ECCPR1L;
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc ECCPR1H;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfc0 ADCON2;
+extern __sfr __at 0xfbb ECCPR1L;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc ECCPR1H;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfc0 ADCON2;
 typedef union {
        struct {
                unsigned ADCS0:1;
@@ -1474,9 +1474,9 @@ typedef union {
        };
 } __ADCON2bits_t;
 
-extern volatile __ADCON2bits_t at 0xfc0 ADCON2bits;
+extern volatile __ADCON2bits_t __at 0xfc0 ADCON2bits;
 
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfc1 ADCON1;
 typedef union {
        struct {
                unsigned PCFG0:1;
@@ -1490,9 +1490,9 @@ typedef union {
        };
 } __ADCON1bits_t;
 
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
 
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
 typedef union {
        struct {
                unsigned ADON:1;
@@ -1506,11 +1506,11 @@ typedef union {
        };
 } __ADCON0bits_t;
 
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
 
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
 typedef union {
        struct {
                unsigned SEN:1;
@@ -1524,9 +1524,9 @@ typedef union {
        };
 } __SSPCON2bits_t;
 
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
 
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
 typedef union {
        struct {
                unsigned SSPM0:1;
@@ -1540,9 +1540,9 @@ typedef union {
        };
 } __SSPCON1bits_t;
 
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
 
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
 typedef union {
        struct {
                unsigned BF:1;
@@ -1556,11 +1556,11 @@ typedef union {
        };
 } __SSPSTATbits_t;
 
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
 
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
 typedef union {
        struct {
                unsigned T2CKPS0:1;
@@ -1574,11 +1574,11 @@ typedef union {
        };
 } __T2CONbits_t;
 
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
 
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
 typedef union {
        struct {
                unsigned TMR1ON:1;
@@ -1592,11 +1592,11 @@ typedef union {
        };
 } __T1CONbits_t;
 
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
 
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
 typedef union {
        struct {
                unsigned BOR:1;
@@ -1610,9 +1610,9 @@ typedef union {
        };
 } __RCONbits_t;
 
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
 
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
 typedef union {
        struct {
                unsigned SWDTEN:1;
@@ -1637,9 +1637,9 @@ typedef union {
        };
 } __WDTCONbits_t;
 
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
 
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
 typedef union {
        struct {
                unsigned LVDL0:1;
@@ -1664,9 +1664,9 @@ typedef union {
        };
 } __LVDCONbits_t;
 
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
 
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
 typedef union {
        struct {
                unsigned SCS:1;
@@ -1680,12 +1680,12 @@ typedef union {
        };
 } __OSCCONbits_t;
 
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
 
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
 typedef union {
        struct {
                unsigned C:1;
@@ -1699,32 +1699,32 @@ typedef union {
        };
 } __STATUSbits_t;
 
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
 typedef union {
        struct {
                unsigned INT1F:1;
@@ -1749,9 +1749,9 @@ typedef union {
        };
 } __INTCON3bits_t;
 
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
 
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
 typedef union {
        struct {
                unsigned RBIP:1;
@@ -1765,9 +1765,9 @@ typedef union {
        };
 } __INTCON2bits_t;
 
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
 
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
 typedef union {
        struct {
                unsigned RBIF:1;
@@ -1781,18 +1781,18 @@ typedef union {
        };
 } __INTCONbits_t;
 
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
 
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
 typedef union {
        struct {
                unsigned STKPTR0:1;
@@ -1806,11 +1806,11 @@ typedef union {
        };
 } __STKPTRbits_t;
 
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
 
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
 
 
 /* Configuration registers locations */
index 0889196a0768b9d0f6a5948d1d82531b20dd855c..fc5e82f05cec7f3618d550682467a94c3fe2f366 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef __PIC18F8720_H__
 #define __PIC18F8720_H__
 
-extern sfr at 0xf6b RCSTA2;
+extern __sfr __at 0xf6b RCSTA2;
 typedef union {
        struct {
                unsigned RX9D:1;
@@ -29,9 +29,9 @@ typedef union {
        };
 } __RCSTA2bits_t;
 
-extern volatile __RCSTA2bits_t at 0xf6b RCSTA2bits;
+extern volatile __RCSTA2bits_t __at 0xf6b RCSTA2bits;
 
-extern sfr at 0xf6c TXSTA2;
+extern __sfr __at 0xf6c TXSTA2;
 typedef union {
        struct {
                unsigned TX9D:1;
@@ -45,12 +45,12 @@ typedef union {
        };
 } __TXSTA2bits_t;
 
-extern volatile __TXSTA2bits_t at 0xf6c TXSTA2bits;
+extern volatile __TXSTA2bits_t __at 0xf6c TXSTA2bits;
 
-extern sfr at 0xf6d TXREG2;
-extern sfr at 0xf6e RCREG2;
-extern sfr at 0xf6f SPBRG2;
-extern sfr at 0xf70 CCP5CON;
+extern __sfr __at 0xf6d TXREG2;
+extern __sfr __at 0xf6e RCREG2;
+extern __sfr __at 0xf6f SPBRG2;
+extern __sfr __at 0xf70 CCP5CON;
 typedef union {
        struct {
                unsigned CCP5M0:1;
@@ -64,11 +64,11 @@ typedef union {
        };
 } __CCP5CONbits_t;
 
-extern volatile __CCP5CONbits_t at 0xf70 CCP5CONbits;
+extern volatile __CCP5CONbits_t __at 0xf70 CCP5CONbits;
 
-extern sfr at 0xf71 CCPR5L;
-extern sfr at 0xf72 CCPR5H;
-extern sfr at 0xf73 CCP4CON;
+extern __sfr __at 0xf71 CCPR5L;
+extern __sfr __at 0xf72 CCPR5H;
+extern __sfr __at 0xf73 CCP4CON;
 typedef union {
        struct {
                unsigned CCP4M0:1;
@@ -82,11 +82,11 @@ typedef union {
        };
 } __CCP4CONbits_t;
 
-extern volatile __CCP4CONbits_t at 0xf73 CCP4CONbits;
+extern volatile __CCP4CONbits_t __at 0xf73 CCP4CONbits;
 
-extern sfr at 0xf74 CCPR4L;
-extern sfr at 0xf75 CCPR4H;
-extern sfr at 0xf76 T4CON;
+extern __sfr __at 0xf74 CCPR4L;
+extern __sfr __at 0xf75 CCPR4H;
+extern __sfr __at 0xf76 T4CON;
 typedef union {
        struct {
                unsigned T2CKPS0:1;
@@ -100,11 +100,11 @@ typedef union {
        };
 } __T4CONbits_t;
 
-extern volatile __T4CONbits_t at 0xf76 T4CONbits;
+extern volatile __T4CONbits_t __at 0xf76 T4CONbits;
 
-extern sfr at 0xf77 PR4;
-extern sfr at 0xf78 TMR4;
-extern sfr at 0xf80 PORTA;
+extern __sfr __at 0xf77 PR4;
+extern __sfr __at 0xf78 TMR4;
+extern __sfr __at 0xf80 PORTA;
 typedef union {
        struct {
                unsigned RA0:1;
@@ -151,9 +151,9 @@ typedef union {
        };
 } __PORTAbits_t;
 
-extern volatile __PORTAbits_t at 0xf80 PORTAbits;
+extern volatile __PORTAbits_t __at 0xf80 PORTAbits;
 
-extern sfr at 0xf81 PORTB;
+extern __sfr __at 0xf81 PORTB;
 typedef union {
        struct {
                unsigned RB0:1;
@@ -178,9 +178,9 @@ typedef union {
        };
 } __PORTBbits_t;
 
-extern volatile __PORTBbits_t at 0xf81 PORTBbits;
+extern volatile __PORTBbits_t __at 0xf81 PORTBbits;
 
-extern sfr at 0xf82 PORTC;
+extern __sfr __at 0xf82 PORTC;
 typedef union {
        struct {
                unsigned RC0:1;
@@ -216,9 +216,9 @@ typedef union {
        };
 } __PORTCbits_t;
 
-extern volatile __PORTCbits_t at 0xf82 PORTCbits;
+extern volatile __PORTCbits_t __at 0xf82 PORTCbits;
 
-extern sfr at 0xf83 PORTD;
+extern __sfr __at 0xf83 PORTD;
 typedef union {
        struct {
                unsigned RD0:1;
@@ -243,9 +243,9 @@ typedef union {
        };
 } __PORTDbits_t;
 
-extern volatile __PORTDbits_t at 0xf83 PORTDbits;
+extern volatile __PORTDbits_t __at 0xf83 PORTDbits;
 
-extern sfr at 0xf84 PORTE;
+extern __sfr __at 0xf84 PORTE;
 typedef union {
        struct {
                unsigned RE0:1;
@@ -281,9 +281,9 @@ typedef union {
        };
 } __PORTEbits_t;
 
-extern volatile __PORTEbits_t at 0xf84 PORTEbits;
+extern volatile __PORTEbits_t __at 0xf84 PORTEbits;
 
-extern sfr at 0xf85 PORTF;
+extern __sfr __at 0xf85 PORTF;
 typedef union {
        struct {
                unsigned RF0:1;
@@ -297,9 +297,9 @@ typedef union {
        };
 } __PORTFbits_t;
 
-extern volatile __PORTFbits_t at 0xf85 PORTFbits;
+extern volatile __PORTFbits_t __at 0xf85 PORTFbits;
 
-extern sfr at 0xf86 PORTG;
+extern __sfr __at 0xf86 PORTG;
 typedef union {
        struct {
                unsigned RG0:1;
@@ -313,9 +313,9 @@ typedef union {
        };
 } __PORTGbits_t;
 
-extern volatile __PORTGbits_t at 0xf86 PORTGbits;
+extern volatile __PORTGbits_t __at 0xf86 PORTGbits;
 
-extern sfr at 0xf87 PORTH;
+extern __sfr __at 0xf87 PORTH;
 typedef union {
        struct {
                unsigned RH0:1;
@@ -329,9 +329,9 @@ typedef union {
        };
 } __PORTHbits_t;
 
-extern volatile __PORTHbits_t at 0xf87 PORTHbits;
+extern volatile __PORTHbits_t __at 0xf87 PORTHbits;
 
-extern sfr at 0xf88 PORTJ;
+extern __sfr __at 0xf88 PORTJ;
 typedef union {
        struct {
                unsigned RJ0:1;
@@ -345,9 +345,9 @@ typedef union {
        };
 } __PORTJbits_t;
 
-extern volatile __PORTJbits_t at 0xf88 PORTJbits;
+extern volatile __PORTJbits_t __at 0xf88 PORTJbits;
 
-extern sfr at 0xf89 LATA;
+extern __sfr __at 0xf89 LATA;
 typedef union {
        struct {
                unsigned LATA0:1;
@@ -361,9 +361,9 @@ typedef union {
        };
 } __LATAbits_t;
 
-extern volatile __LATAbits_t at 0xf89 LATAbits;
+extern volatile __LATAbits_t __at 0xf89 LATAbits;
 
-extern sfr at 0xf8a LATB;
+extern __sfr __at 0xf8a LATB;
 typedef union {
        struct {
                unsigned LATB0:1;
@@ -377,9 +377,9 @@ typedef union {
        };
 } __LATBbits_t;
 
-extern volatile __LATBbits_t at 0xf8a LATBbits;
+extern volatile __LATBbits_t __at 0xf8a LATBbits;
 
-extern sfr at 0xf8b LATC;
+extern __sfr __at 0xf8b LATC;
 typedef union {
        struct {
                unsigned LATC0:1;
@@ -393,9 +393,9 @@ typedef union {
        };
 } __LATCbits_t;
 
-extern volatile __LATCbits_t at 0xf8b LATCbits;
+extern volatile __LATCbits_t __at 0xf8b LATCbits;
 
-extern sfr at 0xf8c LATD;
+extern __sfr __at 0xf8c LATD;
 typedef union {
        struct {
                unsigned LATD0:1;
@@ -409,9 +409,9 @@ typedef union {
        };
 } __LATDbits_t;
 
-extern volatile __LATDbits_t at 0xf8c LATDbits;
+extern volatile __LATDbits_t __at 0xf8c LATDbits;
 
-extern sfr at 0xf8d LATE;
+extern __sfr __at 0xf8d LATE;
 typedef union {
        struct {
                unsigned LATE0:1;
@@ -425,9 +425,9 @@ typedef union {
        };
 } __LATEbits_t;
 
-extern volatile __LATEbits_t at 0xf8d LATEbits;
+extern volatile __LATEbits_t __at 0xf8d LATEbits;
 
-extern sfr at 0xf8e LATF;
+extern __sfr __at 0xf8e LATF;
 typedef union {
        struct {
                unsigned LATF0:1;
@@ -441,9 +441,9 @@ typedef union {
        };
 } __LATFbits_t;
 
-extern volatile __LATFbits_t at 0xf8e LATFbits;
+extern volatile __LATFbits_t __at 0xf8e LATFbits;
 
-extern sfr at 0xf8f LATG;
+extern __sfr __at 0xf8f LATG;
 typedef union {
        struct {
                unsigned LATG0:1;
@@ -457,9 +457,9 @@ typedef union {
        };
 } __LATGbits_t;
 
-extern volatile __LATGbits_t at 0xf8f LATGbits;
+extern volatile __LATGbits_t __at 0xf8f LATGbits;
 
-extern sfr at 0xf90 LATH;
+extern __sfr __at 0xf90 LATH;
 typedef union {
        struct {
                unsigned LATH0:1;
@@ -473,9 +473,9 @@ typedef union {
        };
 } __LATHbits_t;
 
-extern volatile __LATHbits_t at 0xf90 LATHbits;
+extern volatile __LATHbits_t __at 0xf90 LATHbits;
 
-extern sfr at 0xf91 LATJ;
+extern __sfr __at 0xf91 LATJ;
 typedef union {
        struct {
                unsigned LATJ0:1;
@@ -489,9 +489,9 @@ typedef union {
        };
 } __LATJbits_t;
 
-extern volatile __LATJbits_t at 0xf91 LATJbits;
+extern volatile __LATJbits_t __at 0xf91 LATJbits;
 
-extern sfr at 0xf92 TRISA;
+extern __sfr __at 0xf92 TRISA;
 typedef union {
        struct {
                unsigned TRISA0:1;
@@ -505,9 +505,9 @@ typedef union {
        };
 } __TRISAbits_t;
 
-extern volatile __TRISAbits_t at 0xf92 TRISAbits;
+extern volatile __TRISAbits_t __at 0xf92 TRISAbits;
 
-extern sfr at 0xf93 TRISB;
+extern __sfr __at 0xf93 TRISB;
 typedef union {
        struct {
                unsigned TRISB0:1;
@@ -521,9 +521,9 @@ typedef union {
        };
 } __TRISBbits_t;
 
-extern volatile __TRISBbits_t at 0xf93 TRISBbits;
+extern volatile __TRISBbits_t __at 0xf93 TRISBbits;
 
-extern sfr at 0xf94 TRISC;
+extern __sfr __at 0xf94 TRISC;
 typedef union {
        struct {
                unsigned TRISC0:1;
@@ -537,9 +537,9 @@ typedef union {
        };
 } __TRISCbits_t;
 
-extern volatile __TRISCbits_t at 0xf94 TRISCbits;
+extern volatile __TRISCbits_t __at 0xf94 TRISCbits;
 
-extern sfr at 0xf95 TRISD;
+extern __sfr __at 0xf95 TRISD;
 typedef union {
        struct {
                unsigned TRISD0:1;
@@ -553,9 +553,9 @@ typedef union {
        };
 } __TRISDbits_t;
 
-extern volatile __TRISDbits_t at 0xf95 TRISDbits;
+extern volatile __TRISDbits_t __at 0xf95 TRISDbits;
 
-extern sfr at 0xf96 TRISE;
+extern __sfr __at 0xf96 TRISE;
 typedef union {
        struct {
                unsigned TRISE0:1;
@@ -569,9 +569,9 @@ typedef union {
        };
 } __TRISEbits_t;
 
-extern volatile __TRISEbits_t at 0xf96 TRISEbits;
+extern volatile __TRISEbits_t __at 0xf96 TRISEbits;
 
-extern sfr at 0xf97 TRISF;
+extern __sfr __at 0xf97 TRISF;
 typedef union {
        struct {
                unsigned TRISF0:1;
@@ -585,9 +585,9 @@ typedef union {
        };
 } __TRISFbits_t;
 
-extern volatile __TRISFbits_t at 0xf97 TRISFbits;
+extern volatile __TRISFbits_t __at 0xf97 TRISFbits;
 
-extern sfr at 0xf98 TRISG;
+extern __sfr __at 0xf98 TRISG;
 typedef union {
        struct {
                unsigned TRISG0:1;
@@ -601,9 +601,9 @@ typedef union {
        };
 } __TRISGbits_t;
 
-extern volatile __TRISGbits_t at 0xf98 TRISGbits;
+extern volatile __TRISGbits_t __at 0xf98 TRISGbits;
 
-extern sfr at 0xf99 TRISH;
+extern __sfr __at 0xf99 TRISH;
 typedef union {
        struct {
                unsigned TRISH0:1;
@@ -617,9 +617,9 @@ typedef union {
        };
 } __TRISHbits_t;
 
-extern volatile __TRISHbits_t at 0xf99 TRISHbits;
+extern volatile __TRISHbits_t __at 0xf99 TRISHbits;
 
-extern sfr at 0xf9a TRISJ;
+extern __sfr __at 0xf9a TRISJ;
 typedef union {
        struct {
                unsigned TRISJ0:1;
@@ -633,9 +633,9 @@ typedef union {
        };
 } __TRISJbits_t;
 
-extern volatile __TRISJbits_t at 0xf9a TRISJbits;
+extern volatile __TRISJbits_t __at 0xf9a TRISJbits;
 
-extern sfr at 0xf9c MEMCON;
+extern __sfr __at 0xf9c MEMCON;
 typedef union {
        struct {
                unsigned WM0:1;
@@ -649,9 +649,9 @@ typedef union {
        };
 } __MEMCONbits_t;
 
-extern volatile __MEMCONbits_t at 0xf9c MEMCONbits;
+extern volatile __MEMCONbits_t __at 0xf9c MEMCONbits;
 
-extern sfr at 0xf9d PIE1;
+extern __sfr __at 0xf9d PIE1;
 typedef union {
        struct {
                unsigned TMR1IE:1;
@@ -665,9 +665,9 @@ typedef union {
        };
 } __PIE1bits_t;
 
-extern volatile __PIE1bits_t at 0xf9d PIE1bits;
+extern volatile __PIE1bits_t __at 0xf9d PIE1bits;
 
-extern sfr at 0xf9e PIR1;
+extern __sfr __at 0xf9e PIR1;
 typedef union {
        struct {
                unsigned TMR1IF:1;
@@ -681,9 +681,9 @@ typedef union {
        };
 } __PIR1bits_t;
 
-extern volatile __PIR1bits_t at 0xf9e PIR1bits;
+extern volatile __PIR1bits_t __at 0xf9e PIR1bits;
 
-extern sfr at 0xf9f IPR1;
+extern __sfr __at 0xf9f IPR1;
 typedef union {
        struct {
                unsigned TMR1IP:1;
@@ -697,9 +697,9 @@ typedef union {
        };
 } __IPR1bits_t;
 
-extern volatile __IPR1bits_t at 0xf9f IPR1bits;
+extern volatile __IPR1bits_t __at 0xf9f IPR1bits;
 
-extern sfr at 0xfa0 PIE2;
+extern __sfr __at 0xfa0 PIE2;
 typedef union {
        struct {
                unsigned CCP2IE:1;
@@ -713,9 +713,9 @@ typedef union {
        };
 } __PIE2bits_t;
 
-extern volatile __PIE2bits_t at 0xfa0 PIE2bits;
+extern volatile __PIE2bits_t __at 0xfa0 PIE2bits;
 
-extern sfr at 0xfa1 PIR2;
+extern __sfr __at 0xfa1 PIR2;
 typedef union {
        struct {
                unsigned CCP2IF:1;
@@ -729,9 +729,9 @@ typedef union {
        };
 } __PIR2bits_t;
 
-extern volatile __PIR2bits_t at 0xfa1 PIR2bits;
+extern volatile __PIR2bits_t __at 0xfa1 PIR2bits;
 
-extern sfr at 0xfa2 IPR2;
+extern __sfr __at 0xfa2 IPR2;
 typedef union {
        struct {
                unsigned CCP2IP:1;
@@ -745,9 +745,9 @@ typedef union {
        };
 } __IPR2bits_t;
 
-extern volatile __IPR2bits_t at 0xfa2 IPR2bits;
+extern volatile __IPR2bits_t __at 0xfa2 IPR2bits;
 
-extern sfr at 0xfa3 PIE3;
+extern __sfr __at 0xfa3 PIE3;
 typedef union {
        struct {
                unsigned CCP3IE:1;
@@ -761,9 +761,9 @@ typedef union {
        };
 } __PIE3bits_t;
 
-extern volatile __PIE3bits_t at 0xfa3 PIE3bits;
+extern volatile __PIE3bits_t __at 0xfa3 PIE3bits;
 
-extern sfr at 0xfa4 PIR3;
+extern __sfr __at 0xfa4 PIR3;
 typedef union {
        struct {
                unsigned CCP3IF:1;
@@ -777,9 +777,9 @@ typedef union {
        };
 } __PIR3bits_t;
 
-extern volatile __PIR3bits_t at 0xfa4 PIR3bits;
+extern volatile __PIR3bits_t __at 0xfa4 PIR3bits;
 
-extern sfr at 0xfa5 IPR3;
+extern __sfr __at 0xfa5 IPR3;
 typedef union {
        struct {
                unsigned CCP3IP:1;
@@ -793,9 +793,9 @@ typedef union {
        };
 } __IPR3bits_t;
 
-extern volatile __IPR3bits_t at 0xfa5 IPR3bits;
+extern volatile __IPR3bits_t __at 0xfa5 IPR3bits;
 
-extern sfr at 0xfa6 EECON1;
+extern __sfr __at 0xfa6 EECON1;
 typedef union {
        struct {
                unsigned RD:1;
@@ -809,13 +809,13 @@ typedef union {
        };
 } __EECON1bits_t;
 
-extern volatile __EECON1bits_t at 0xfa6 EECON1bits;
+extern volatile __EECON1bits_t __at 0xfa6 EECON1bits;
 
-extern sfr at 0xfa7 EECON2;
-extern sfr at 0xfa8 EEDATA;
-extern sfr at 0xfa9 EEADR;
-extern sfr at 0xfaa EEADRH;
-extern sfr at 0xfab RCSTA1;
+extern __sfr __at 0xfa7 EECON2;
+extern __sfr __at 0xfa8 EEDATA;
+extern __sfr __at 0xfa9 EEADR;
+extern __sfr __at 0xfaa EEADRH;
+extern __sfr __at 0xfab RCSTA1;
 typedef union {
        struct {
                unsigned RX9D:1;
@@ -829,9 +829,9 @@ typedef union {
        };
 } __RCSTA1bits_t;
 
-extern volatile __RCSTA1bits_t at 0xfab RCSTA1bits;
+extern volatile __RCSTA1bits_t __at 0xfab RCSTA1bits;
 
-extern sfr at 0xfac TXSTA1;
+extern __sfr __at 0xfac TXSTA1;
 typedef union {
        struct {
                unsigned TX9D:1;
@@ -845,12 +845,12 @@ typedef union {
        };
 } __TXSTA1bits_t;
 
-extern volatile __TXSTA1bits_t at 0xfac TXSTA1bits;
+extern volatile __TXSTA1bits_t __at 0xfac TXSTA1bits;
 
-extern sfr at 0xfad TXREG1;
-extern sfr at 0xfae RCREG1;
-extern sfr at 0xfaf SPBRG1;
-extern sfr at 0xfb0 PSPCON;
+extern __sfr __at 0xfad TXREG1;
+extern __sfr __at 0xfae RCREG1;
+extern __sfr __at 0xfaf SPBRG1;
+extern __sfr __at 0xfb0 PSPCON;
 typedef union {
        struct {
                unsigned :1;
@@ -864,9 +864,9 @@ typedef union {
        };
 } __PSPCONbits_t;
 
-extern volatile __PSPCONbits_t at 0xfb0 PSPCONbits;
+extern volatile __PSPCONbits_t __at 0xfb0 PSPCONbits;
 
-extern sfr at 0xfb1 T3CON;
+extern __sfr __at 0xfb1 T3CON;
 typedef union {
        struct {
                unsigned TMR3ON:1;
@@ -880,11 +880,11 @@ typedef union {
        };
 } __T3CONbits_t;
 
-extern volatile __T3CONbits_t at 0xfb1 T3CONbits;
+extern volatile __T3CONbits_t __at 0xfb1 T3CONbits;
 
-extern sfr at 0xfb2 TMR3L;
-extern sfr at 0xfb3 TMR3H;
-extern sfr at 0xfb4 CMCON;
+extern __sfr __at 0xfb2 TMR3L;
+extern __sfr __at 0xfb3 TMR3H;
+extern __sfr __at 0xfb4 CMCON;
 typedef union {
        struct {
                unsigned CM0:1;
@@ -898,9 +898,9 @@ typedef union {
        };
 } __CMCONbits_t;
 
-extern volatile __CMCONbits_t at 0xfb4 CMCONbits;
+extern volatile __CMCONbits_t __at 0xfb4 CMCONbits;
 
-extern sfr at 0xfb5 CVRCON;
+extern __sfr __at 0xfb5 CVRCON;
 typedef union {
        struct {
                unsigned CVR0:1;
@@ -914,9 +914,9 @@ typedef union {
        };
 } __CVRCONbits_t;
 
-extern volatile __CVRCONbits_t at 0xfb5 CVRCONbits;
+extern volatile __CVRCONbits_t __at 0xfb5 CVRCONbits;
 
-extern sfr at 0xfb7 CCP3CON;
+extern __sfr __at 0xfb7 CCP3CON;
 typedef union {
        struct {
                unsigned CCP3M0:1;
@@ -930,11 +930,11 @@ typedef union {
        };
 } __CCP3CONbits_t;
 
-extern volatile __CCP3CONbits_t at 0xfb7 CCP3CONbits;
+extern volatile __CCP3CONbits_t __at 0xfb7 CCP3CONbits;
 
-extern sfr at 0xfb8 CCPR3L;
-extern sfr at 0xfb9 CCPR3H;
-extern sfr at 0xfba CCP2CON;
+extern __sfr __at 0xfb8 CCPR3L;
+extern __sfr __at 0xfb9 CCPR3H;
+extern __sfr __at 0xfba CCP2CON;
 typedef union {
        struct {
                unsigned CCP2M0:1;
@@ -948,11 +948,11 @@ typedef union {
        };
 } __CCP2CONbits_t;
 
-extern volatile __CCP2CONbits_t at 0xfba CCP2CONbits;
+extern volatile __CCP2CONbits_t __at 0xfba CCP2CONbits;
 
-extern sfr at 0xfbb CCPR2L;
-extern sfr at 0xfbc CCPR2H;
-extern sfr at 0xfbd CCP1CON;
+extern __sfr __at 0xfbb CCPR2L;
+extern __sfr __at 0xfbc CCPR2H;
+extern __sfr __at 0xfbd CCP1CON;
 typedef union {
        struct {
                unsigned CCP1M0:1;
@@ -966,11 +966,11 @@ typedef union {
        };
 } __CCP1CONbits_t;
 
-extern volatile __CCP1CONbits_t at 0xfbd CCP1CONbits;
+extern volatile __CCP1CONbits_t __at 0xfbd CCP1CONbits;
 
-extern sfr at 0xfbe CCPR1L;
-extern sfr at 0xfbf CCPR1H;
-extern sfr at 0xfc0 ADCON2;
+extern __sfr __at 0xfbe CCPR1L;
+extern __sfr __at 0xfbf CCPR1H;
+extern __sfr __at 0xfc0 ADCON2;
 typedef union {
        struct {
                unsigned ADCS0:1;
@@ -984,9 +984,9 @@ typedef union {
        };
 } __ADCON2bits_t;
 
-extern volatile __ADCON2bits_t at 0xfc0 ADCON2bits;
+extern volatile __ADCON2bits_t __at 0xfc0 ADCON2bits;
 
-extern sfr at 0xfc1 ADCON1;
+extern __sfr __at 0xfc1 ADCON1;
 typedef union {
        struct {
                unsigned PCFG0:1;
@@ -1000,9 +1000,9 @@ typedef union {
        };
 } __ADCON1bits_t;
 
-extern volatile __ADCON1bits_t at 0xfc1 ADCON1bits;
+extern volatile __ADCON1bits_t __at 0xfc1 ADCON1bits;
 
-extern sfr at 0xfc2 ADCON0;
+extern __sfr __at 0xfc2 ADCON0;
 typedef union {
        struct {
                unsigned ADON:1;
@@ -1016,11 +1016,11 @@ typedef union {
        };
 } __ADCON0bits_t;
 
-extern volatile __ADCON0bits_t at 0xfc2 ADCON0bits;
+extern volatile __ADCON0bits_t __at 0xfc2 ADCON0bits;
 
-extern sfr at 0xfc3 ADRESL;
-extern sfr at 0xfc4 ADRESH;
-extern sfr at 0xfc5 SSPCON2;
+extern __sfr __at 0xfc3 ADRESL;
+extern __sfr __at 0xfc4 ADRESH;
+extern __sfr __at 0xfc5 SSPCON2;
 typedef union {
        struct {
                unsigned SEN:1;
@@ -1034,9 +1034,9 @@ typedef union {
        };
 } __SSPCON2bits_t;
 
-extern volatile __SSPCON2bits_t at 0xfc5 SSPCON2bits;
+extern volatile __SSPCON2bits_t __at 0xfc5 SSPCON2bits;
 
-extern sfr at 0xfc6 SSPCON1;
+extern __sfr __at 0xfc6 SSPCON1;
 typedef union {
        struct {
                unsigned SSPM0:1;
@@ -1050,9 +1050,9 @@ typedef union {
        };
 } __SSPCON1bits_t;
 
-extern volatile __SSPCON1bits_t at 0xfc6 SSPCON1bits;
+extern volatile __SSPCON1bits_t __at 0xfc6 SSPCON1bits;
 
-extern sfr at 0xfc7 SSPSTAT;
+extern __sfr __at 0xfc7 SSPSTAT;
 typedef union {
        struct {
                unsigned BF:1;
@@ -1066,11 +1066,11 @@ typedef union {
        };
 } __SSPSTATbits_t;
 
-extern volatile __SSPSTATbits_t at 0xfc7 SSPSTATbits;
+extern volatile __SSPSTATbits_t __at 0xfc7 SSPSTATbits;
 
-extern sfr at 0xfc8 SSPADD;
-extern sfr at 0xfc9 SSPBUF;
-extern sfr at 0xfca T2CON;
+extern __sfr __at 0xfc8 SSPADD;
+extern __sfr __at 0xfc9 SSPBUF;
+extern __sfr __at 0xfca T2CON;
 typedef union {
        struct {
                unsigned T2CKPS0:1;
@@ -1084,11 +1084,11 @@ typedef union {
        };
 } __T2CONbits_t;
 
-extern volatile __T2CONbits_t at 0xfca T2CONbits;
+extern volatile __T2CONbits_t __at 0xfca T2CONbits;
 
-extern sfr at 0xfcb PR2;
-extern sfr at 0xfcc TMR2;
-extern sfr at 0xfcd T1CON;
+extern __sfr __at 0xfcb PR2;
+extern __sfr __at 0xfcc TMR2;
+extern __sfr __at 0xfcd T1CON;
 typedef union {
        struct {
                unsigned TMR1ON:1;
@@ -1102,11 +1102,11 @@ typedef union {
        };
 } __T1CONbits_t;
 
-extern volatile __T1CONbits_t at 0xfcd T1CONbits;
+extern volatile __T1CONbits_t __at 0xfcd T1CONbits;
 
-extern sfr at 0xfce TMR1L;
-extern sfr at 0xfcf TMR1H;
-extern sfr at 0xfd0 RCON;
+extern __sfr __at 0xfce TMR1L;
+extern __sfr __at 0xfcf TMR1H;
+extern __sfr __at 0xfd0 RCON;
 typedef union {
        struct {
                unsigned BOR:1;
@@ -1120,9 +1120,9 @@ typedef union {
        };
 } __RCONbits_t;
 
-extern volatile __RCONbits_t at 0xfd0 RCONbits;
+extern volatile __RCONbits_t __at 0xfd0 RCONbits;
 
-extern sfr at 0xfd1 WDTCON;
+extern __sfr __at 0xfd1 WDTCON;
 typedef union {
        struct {
                unsigned SWDTEN:1;
@@ -1147,9 +1147,9 @@ typedef union {
        };
 } __WDTCONbits_t;
 
-extern volatile __WDTCONbits_t at 0xfd1 WDTCONbits;
+extern volatile __WDTCONbits_t __at 0xfd1 WDTCONbits;
 
-extern sfr at 0xfd2 LVDCON;
+extern __sfr __at 0xfd2 LVDCON;
 typedef union {
        struct {
                unsigned LVDL0:1;
@@ -1174,9 +1174,9 @@ typedef union {
        };
 } __LVDCONbits_t;
 
-extern volatile __LVDCONbits_t at 0xfd2 LVDCONbits;
+extern volatile __LVDCONbits_t __at 0xfd2 LVDCONbits;
 
-extern sfr at 0xfd3 OSCCON;
+extern __sfr __at 0xfd3 OSCCON;
 typedef union {
        struct {
                unsigned SCS:1;
@@ -1190,12 +1190,12 @@ typedef union {
        };
 } __OSCCONbits_t;
 
-extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
+extern volatile __OSCCONbits_t __at 0xfd3 OSCCONbits;
 
-extern sfr at 0xfd5 T0CON;
-extern sfr at 0xfd6 TMR0L;
-extern sfr at 0xfd7 TMR0H;
-extern sfr at 0xfd8 STATUS;
+extern __sfr __at 0xfd5 T0CON;
+extern __sfr __at 0xfd6 TMR0L;
+extern __sfr __at 0xfd7 TMR0H;
+extern __sfr __at 0xfd8 STATUS;
 typedef union {
        struct {
                unsigned C:1;
@@ -1209,32 +1209,32 @@ typedef union {
        };
 } __STATUSbits_t;
 
-extern volatile __STATUSbits_t at 0xfd8 STATUSbits;
-
-extern sfr at 0xfd9 FSR2L;
-extern sfr at 0xfda FSR2H;
-extern sfr at 0xfdb PLUSW2;
-extern sfr at 0xfdc PREINC2;
-extern sfr at 0xfdd POSTDEC2;
-extern sfr at 0xfde POSTINC2;
-extern sfr at 0xfdf INDF2;
-extern sfr at 0xfe0 BSR;
-extern sfr at 0xfe1 FSR1L;
-extern sfr at 0xfe2 FSR1H;
-extern sfr at 0xfe3 PLUSW1;
-extern sfr at 0xfe4 PREINC1;
-extern sfr at 0xfe5 POSTDEC1;
-extern sfr at 0xfe6 POSTINC1;
-extern sfr at 0xfe7 INDF1;
-extern sfr at 0xfe8 WREG;
-extern sfr at 0xfe9 FSR0L;
-extern sfr at 0xfea FSR0H;
-extern sfr at 0xfeb PLUSW0;
-extern sfr at 0xfec PREINC0;
-extern sfr at 0xfed POSTDEC0;
-extern sfr at 0xfee POSTINC0;
-extern sfr at 0xfef INDF0;
-extern sfr at 0xff0 INTCON3;
+extern volatile __STATUSbits_t __at 0xfd8 STATUSbits;
+
+extern __sfr __at 0xfd9 FSR2L;
+extern __sfr __at 0xfda FSR2H;
+extern __sfr __at 0xfdb PLUSW2;
+extern __sfr __at 0xfdc PREINC2;
+extern __sfr __at 0xfdd POSTDEC2;
+extern __sfr __at 0xfde POSTINC2;
+extern __sfr __at 0xfdf INDF2;
+extern __sfr __at 0xfe0 BSR;
+extern __sfr __at 0xfe1 FSR1L;
+extern __sfr __at 0xfe2 FSR1H;
+extern __sfr __at 0xfe3 PLUSW1;
+extern __sfr __at 0xfe4 PREINC1;
+extern __sfr __at 0xfe5 POSTDEC1;
+extern __sfr __at 0xfe6 POSTINC1;
+extern __sfr __at 0xfe7 INDF1;
+extern __sfr __at 0xfe8 WREG;
+extern __sfr __at 0xfe9 FSR0L;
+extern __sfr __at 0xfea FSR0H;
+extern __sfr __at 0xfeb PLUSW0;
+extern __sfr __at 0xfec PREINC0;
+extern __sfr __at 0xfed POSTDEC0;
+extern __sfr __at 0xfee POSTINC0;
+extern __sfr __at 0xfef INDF0;
+extern __sfr __at 0xff0 INTCON3;
 typedef union {
        struct {
                unsigned INT1F:1;
@@ -1259,9 +1259,9 @@ typedef union {
        };
 } __INTCON3bits_t;
 
-extern volatile __INTCON3bits_t at 0xff0 INTCON3bits;
+extern volatile __INTCON3bits_t __at 0xff0 INTCON3bits;
 
-extern sfr at 0xff1 INTCON2;
+extern __sfr __at 0xff1 INTCON2;
 typedef union {
        struct {
                unsigned RBIP:1;
@@ -1275,9 +1275,9 @@ typedef union {
        };
 } __INTCON2bits_t;
 
-extern volatile __INTCON2bits_t at 0xff1 INTCON2bits;
+extern volatile __INTCON2bits_t __at 0xff1 INTCON2bits;
 
-extern sfr at 0xff2 INTCON;
+extern __sfr __at 0xff2 INTCON;
 typedef union {
        struct {
                unsigned RBIF:1;
@@ -1291,18 +1291,18 @@ typedef union {
        };
 } __INTCONbits_t;
 
-extern volatile __INTCONbits_t at 0xff2 INTCONbits;
+extern volatile __INTCONbits_t __at 0xff2 INTCONbits;
 
-extern sfr at 0xff3 PRODL;
-extern sfr at 0xff4 PRODH;
-extern sfr at 0xff5 TABLAT;
-extern sfr at 0xff6 TBLPTRL;
-extern sfr at 0xff7 TBLPTRH;
-extern sfr at 0xff8 TBLPTRU;
-extern sfr at 0xff9 PCL;
-extern sfr at 0xffa PCLATH;
-extern sfr at 0xffb PCLATU;
-extern sfr at 0xffc STKPTR;
+extern __sfr __at 0xff3 PRODL;
+extern __sfr __at 0xff4 PRODH;
+extern __sfr __at 0xff5 TABLAT;
+extern __sfr __at 0xff6 TBLPTRL;
+extern __sfr __at 0xff7 TBLPTRH;
+extern __sfr __at 0xff8 TBLPTRU;
+extern __sfr __at 0xff9 PCL;
+extern __sfr __at 0xffa PCLATH;
+extern __sfr __at 0xffb PCLATU;
+extern __sfr __at 0xffc STKPTR;
 typedef union {
        struct {
                unsigned STKPTR0:1;
@@ -1316,11 +1316,11 @@ typedef union {
        };
 } __STKPTRbits_t;
 
-extern volatile __STKPTRbits_t at 0xffc STKPTRbits;
+extern volatile __STKPTRbits_t __at 0xffc STKPTRbits;
 
-extern sfr at 0xffd TOSL;
-extern sfr at 0xffe TOSH;
-extern sfr at 0xfff TOSU;
+extern __sfr __at 0xffd TOSL;
+extern __sfr __at 0xffe TOSH;
+extern __sfr __at 0xfff TOSU;
 
 
 /* Configuration registers locations */
index 35f0be68bee4dd9687b0a0e040cb17c6eb244898..f4b4e4f5d0f98c8d9a353aa3e02b70b92e685b5c 100644 (file)
@@ -28,8 +28,8 @@
 ** $Id$
 */
 
-#ifndef __PIC16_STDIO_H
-#define __PIC16_STDIO_H 1
+#ifndef __STDIO_H
+#define __STDIO_H 1
 
 /* link the C library */
 #pragma library c
@@ -100,10 +100,10 @@ extern FILE * stdout;
 //extern int _print_format (pfn_outputchar pfn, void* pvoid, const char *format, va_list ap);
 
 /* printf_small() supports float print */
-extern void printf_small(char *, ...);
+void printf_small(char *, ...);
 
 /* printf_tiny() does not support float print */
-extern void printf_tiny(char *, ...) reentrant;
+void printf_tiny(char *, ...);  // __reentrant;
 
 extern unsigned int printf (char *,...);
 extern unsigned int sprintf (char *, char *, ...);
@@ -117,14 +117,14 @@ extern int puts(char *);
 
 extern void __stream_putchar(FILE *, unsigned char);
 
-#define PUTCHAR(arg)   void putchar(unsigned char arg) wparam
+#define PUTCHAR(arg)   void putchar(unsigned char arg) __wparam
 extern PUTCHAR(c);
 
-extern void __stream_usart_putchar(unsigned char c) _naked wparam;
-extern void __stream_mssp_putchar(unsigned char c) _naked wparam;
-extern void __stream_gpsim_putchar(unsigned char c) _naked wparam;
+extern void __stream_usart_putchar(unsigned char c) __wparam __naked;
+extern void __stream_mssp_putchar(unsigned char c) __wparam __naked;
+extern void __stream_gpsim_putchar(unsigned char c) __wparam __naked;
 
 extern char *gets(char *);
 extern char getchar(void);
 
-#endif /* __PIC16_STDIO_H */
+#endif /* __STDIO_H */
index fa9d166ef1d79dbcfbe5c32a9d6f9a7056fe9ec8..d6f1c4b738060da289c76dcf4267bbe1cf0eacde 100644 (file)
 ** $Id$
 */
 
-#ifndef __PIC16_STDLIB_H
-#define __PIC16_STDLIB_H 1
+#ifndef __STDLIB_H__
+#define __STDLIB_H__ 1
 
 #pragma library c
 
+#include <stdint.h>
+
+
 #ifndef NULL
 # define NULL (void *)0
 #endif
 
-//#include <malloc.h>
+#define RAND_MAX        0x7fffffff
+
+/* initialize random seed */
+void srand(unsigned long seed);
+
+/* return a random number between 0 and RAND_MAX */
+long rand(void);
+
+/* reentrant version of rand() */
+long rand_r(unsigned long *ctx);
+
+
+/* returns the CRC16 checksum of the data buffer, takes as
+ * last argument an old value of crc16 checksum */
+uint16_t crc16(uint8_t *, uint32_t, uint16_t);
+
+
+/* convert a ASCII string to float */
+float atof (char *);
+
+/* convert a ASCII string to integer */
+int atoi (char *);
+
+/* convert a ASCII string to long */
+long atol (char *);
 
-extern float atof (char *);
-extern int atoi (char *);
-extern long atol (char *);
+/* convert an unsigned/signed integer to ASCII string */
+void uitoa(unsigned int, __data char *, unsigned char);
+void itoa(int, __data char*, unsigned char);
 
-extern void uitoa(unsigned int, data char *, unsigned char);
-extern void itoa(int, data char*, unsigned char);
+/* convert an unsigned/signed long integer to ASCII string */
+void ultoa(unsigned long, __data unsigned char *, unsigned char);
+void ltoa(long, __data unsigned char*, unsigned char);
 
-extern void ultoa(unsigned long, data unsigned char *, unsigned char);
-extern void ltoa(long, data unsigned char*, unsigned char);
+/* helper functions: convert a float to ASCII string */
+extern char x_ftoa(float, __data char *, unsigned char, unsigned char);
 
-extern char x_ftoa(float, data char *, unsigned char, unsigned char);
+/* George M. Gallant's version of ftoa() */
+extern void g_ftoa(__data char *, float, char);
 
-extern void g_ftoa(data char *, float, char);
 
-#endif /* __PIC16_STDLIB_H */
+#endif /* __STDLIB_H__ */
index 878f3fe4b6e8a08fa13ec23ca5e46df01d0f4df3..a680bd401fb0f2b1bea2279cff75487cbd5dfbec 100644 (file)
@@ -30,7 +30,7 @@
 #ifndef __STRING_H     /* { */
 #define __STRING_H 1
 
-#define _STRING_SPEC   data
+#define _STRING_SPEC   __data
 
 #ifndef NULL
 # define NULL (void *)0
   typedef unsigned int size_t;
 #endif
 
-extern char *strcat (char *, char *);
-extern char *strchr (char *, char);
-extern int   strcmp (char *, char *);
-extern char *strcpy (char *, char *);
-extern int   strcspn(char *, char *);
-extern int   strlen (char *);
-extern char *strlwr (char *);
-extern char *strncat(char *, char *, size_t );
-extern int   strncmp(char *, char *, size_t );
-extern char *strncpy(char *, char *, size_t );
-extern char *strpbrk(char *, char *);
-extern char *strrchr(char *, char);
-extern int   strspn (char *, char *);
-extern char *strstr (char *, char *);
-extern char *strtok (char *, char *);
-extern char *strupr (char *);
+char *strcat (char *, char *);
+char *strchr (char *, char);
+int   strcmp (char *, char *);
+char *strcpy (char *, char *);
+int   strcspn(char *, char *);
+int   strlen (char *);
+char *strlwr (char *);
+char *strncat(char *, char *, size_t );
+int   strncmp(char *, char *, size_t );
+char *strncpy(char *, char *, size_t );
+char *strpbrk(char *, char *);
+char *strrchr(char *, char);
+int   strspn (char *, char *);
+char *strstr (char *, char *);
+char *strtok (char *, char *);
+char *strupr (char *);
+
+void *memccpy(void *, void *, char, size_t);
+void *memchr(void *, char, size_t);
+int   memcmp (void *, void *, size_t);
+void *memcpy (void *, void *, size_t);
+void *memmove (void *, void *, size_t);
+void *memrchr(void *, char, size_t);
+void *memset (_STRING_SPEC void *, unsigned char, size_t );
+
+__code void *memchrpgm(__code void *, char, size_t);
+__data void *memchrram(__data void *, char, size_t);
+__data void *memcpypgm2ram(__data void *, __code void *, size_t);
+__data void *memcpyram2ram(__data void *, __data void *, size_t);
 
-extern void *memccpy(void *, void *, char, size_t);
-extern void *memchr(void *, char, size_t);
-extern int   memcmp (void *, void *, size_t);
-extern void *memcpy (void *, void *, size_t);
-extern void *memmove (void *, void *, size_t);
-extern void *memrchr(void *, char, size_t);
-extern void *memset (_STRING_SPEC void *, unsigned char, size_t );
 
 #endif /* } */
index a7d77c5d56c25cceff245151ad7b5401a2791988..c9fef252a7c58c63892cd5cf0edba2cbefa47b69 100644 (file)
@@ -28,6 +28,8 @@ SED   = @SED@
 # but it's needed for `make clean`; Bernhard
 MM = -MM
 
+CSTD    = --std-c99
+
 MODELFLAGS      = -mpic16
 
 OPT_FLAGS      += --denable-peeps
index fe84ec800970872858a25ad7b2af7bd31990a1b7..f20e26f2188af4f7eaea9ae1265e4a68a54044ce 100644 (file)
@@ -24,7 +24,7 @@ LIBC_INC_DIR  = $(PRJDIR)/device/include/pic16
 COMPILE_FLAGS  += $(MODELFLAGS) $(OPT_FLAGS)
 
 
-CFLAGS = -I$(LIBC_INC_DIR)
+CFLAGS = $(CSTD) -I$(LIBC_INC_DIR)
 
 CFILES = $(patsubst %,%.c,$(SRCS))
 COFILES        = $(patsubst %.c,%.o,$(CFILES))
index e478dd5013373d284eb13cd142d4dabc0779a63b..38382cef7dc1ca70ccd6bc3fc57884d776f11745 100644 (file)
@@ -56,7 +56,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-void printf_small(char *fmt, ...) reentrant
+void printf_small(char *fmt, ...) __reentrant
 {
   char *ch;
   char radix;
@@ -66,7 +66,7 @@ void printf_small(char *fmt, ...) reentrant
   char ffloat;
   float flt;
   char *str;
-  data char *str1;
+  __data char *str1;
   long val;
   static char buffer[16];
   va_list ap ;
index 2107a593d99ba656f23aa06ff96c2a61bd9262ef..906fc4c048e174b03cb8d0b30e4c483efe519e53 100644 (file)
@@ -85,7 +85,7 @@ void printf_tiny(char *fmt, ...)
   char upcase;
 
   char *str, *ch;
-  data char *str1;
+  __data char *str1;
   long val;
 //  static char buffer[16];
   char buffer[16];
index 45190e927936192e044494d63c138c9991147033..f50324fda726cc81ab43bba59180bc4642e4fb42 100644 (file)
 extern WREG;
 
 /* note that USART should already been initialized */
-void __stream_gpsim_putchar(unsigned char c) _naked wparam
+void __stream_gpsim_putchar(unsigned char c) __wparam __naked
 {
   c;
-  _asm
+  __asm
     MOVFF      _WREG, 0xf7f
     RETURN
-  _endasm;
+  __endasm;
 }
index 2846057f709083e74525d3381b7113ed41a47d60..25825e1949ba54d0703015d0896be037f93aae6f 100644 (file)
@@ -30,11 +30,11 @@ extern WREG;
 extern SSPBUF;
 
 /* note that USART should already been initialized */
-void __stream_mssp_putchar(unsigned char c) _naked wparam
+void __stream_mssp_putchar(unsigned char c) __wparam __naked
 {
   c;
-  _asm
+  __asm
     MOVWF      _SSPBUF
     RETURN
-  _endasm;
+  __endasm;
 }
index 634774fce8541711f00e04a2c3dffe9988ee3aa5..d2813612d982fd1cc1428c5e5c013472697f7cac 100644 (file)
@@ -33,14 +33,14 @@ extern TXREG;
 extern TXSTA;
 
 /* note that USART should already been initialized */
-void __stream_usart_putchar(unsigned char c) _naked wparam
+void __stream_usart_putchar(unsigned char c) __wparam __naked
 {
   c;
-  _asm
+  __asm
 @1:
     BTFSS      _TXSTA, 1
     BRA                @1
     MOVWF      _TXREG
     RETURN
-  _endasm;
+  __endasm;
 }
index 6e7bc6255b89e8d8ef453d4a696f696fdc58e248..19327ad1c8a093b587cee8cddc0786842a398c72 100644 (file)
@@ -64,7 +64,7 @@ unsigned int vfprintf(FILE *stream, char *fmt, va_list ap)
   unsigned char upcase;
   unsigned int count=0;
   unsigned char *str, *ch;
-  data char *str1;
+  __data char *str1;
   long val;
 //  static char buffer[16];
   char buffer[16];
index aa201bb2b0a6e451778bed3c9f530d23d750f6ff..bb727da0c5e60266b2b30679077fe183d6523625 100644 (file)
@@ -25,7 +25,9 @@ SRCS  =       atof \
                memmisc \
                realloc \
                x_ftoa \
-               putchar
+               putchar \
+               rand \
+               crc16
 
 S_SRCS = g_ftoa
 
diff --git a/device/lib/pic16/libc/stdlib/crc16.c b/device/lib/pic16/libc/stdlib/crc16.c
new file mode 100644 (file)
index 0000000..357a990
--- /dev/null
@@ -0,0 +1,206 @@
+/*
+ * crc16.c - CRC16 checksum generation
+ *
+ * this source is part of the linux kernel distribution
+ * 
+ * modified for SDCC/pic16 by Vangelis Rokas, 2005 <vrokas AT users.sourceforge.net>
+ *
+ *
+ * PURPOSE
+ *     Routines to generate, calculate, and test a 16-bit CRC.
+ *
+ * DESCRIPTION
+ *     The CRC code was devised by Don P. Mitchell of AT&T Bell Laboratories
+ *     and Ned W. Rhodes of Software Systems Group. It has been published in
+ *     "Design and Validation of Computer Protocols", Prentice Hall,
+ *     Englewood Cliffs, NJ, 1991, Chapter 3, ISBN 0-13-539925-4.
+ *
+ *     Copyright is held by AT&T.
+ *
+ *     AT&T gives permission for the free use of the CRC source code.
+ *
+ * CONTACTS
+ *     E-mail regarding any portion of the Linux UDF file system should be
+ *     directed to the development team mailing list (run by majordomo):
+ *             linux_udf@hpesjro.fc.hp.com
+ *
+ * COPYRIGHT
+ *     This file is distributed under the terms of the GNU General Public
+ *     License (GPL). Copies of the GPL can be obtained from:
+ *             ftp://prep.ai.mit.edu/pub/gnu/GPL
+ *     Each contributing author retains all rights to their own work.
+ *
+ *
+ * $Id$
+ */
+
+#include <stdint.h>
+
+__code uint16_t crc_table[256] = {
+       0x0000U, 0x1021U, 0x2042U, 0x3063U, 0x4084U, 0x50a5U, 0x60c6U, 0x70e7U,
+       0x8108U, 0x9129U, 0xa14aU, 0xb16bU, 0xc18cU, 0xd1adU, 0xe1ceU, 0xf1efU,
+       0x1231U, 0x0210U, 0x3273U, 0x2252U, 0x52b5U, 0x4294U, 0x72f7U, 0x62d6U,
+       0x9339U, 0x8318U, 0xb37bU, 0xa35aU, 0xd3bdU, 0xc39cU, 0xf3ffU, 0xe3deU,
+       0x2462U, 0x3443U, 0x0420U, 0x1401U, 0x64e6U, 0x74c7U, 0x44a4U, 0x5485U,
+       0xa56aU, 0xb54bU, 0x8528U, 0x9509U, 0xe5eeU, 0xf5cfU, 0xc5acU, 0xd58dU,
+       0x3653U, 0x2672U, 0x1611U, 0x0630U, 0x76d7U, 0x66f6U, 0x5695U, 0x46b4U,
+       0xb75bU, 0xa77aU, 0x9719U, 0x8738U, 0xf7dfU, 0xe7feU, 0xd79dU, 0xc7bcU,
+       0x48c4U, 0x58e5U, 0x6886U, 0x78a7U, 0x0840U, 0x1861U, 0x2802U, 0x3823U,
+       0xc9ccU, 0xd9edU, 0xe98eU, 0xf9afU, 0x8948U, 0x9969U, 0xa90aU, 0xb92bU,
+       0x5af5U, 0x4ad4U, 0x7ab7U, 0x6a96U, 0x1a71U, 0x0a50U, 0x3a33U, 0x2a12U,
+       0xdbfdU, 0xcbdcU, 0xfbbfU, 0xeb9eU, 0x9b79U, 0x8b58U, 0xbb3bU, 0xab1aU,
+       0x6ca6U, 0x7c87U, 0x4ce4U, 0x5cc5U, 0x2c22U, 0x3c03U, 0x0c60U, 0x1c41U,
+       0xedaeU, 0xfd8fU, 0xcdecU, 0xddcdU, 0xad2aU, 0xbd0bU, 0x8d68U, 0x9d49U,
+       0x7e97U, 0x6eb6U, 0x5ed5U, 0x4ef4U, 0x3e13U, 0x2e32U, 0x1e51U, 0x0e70U,
+       0xff9fU, 0xefbeU, 0xdfddU, 0xcffcU, 0xbf1bU, 0xaf3aU, 0x9f59U, 0x8f78U,
+       0x9188U, 0x81a9U, 0xb1caU, 0xa1ebU, 0xd10cU, 0xc12dU, 0xf14eU, 0xe16fU,
+       0x1080U, 0x00a1U, 0x30c2U, 0x20e3U, 0x5004U, 0x4025U, 0x7046U, 0x6067U,
+       0x83b9U, 0x9398U, 0xa3fbU, 0xb3daU, 0xc33dU, 0xd31cU, 0xe37fU, 0xf35eU,
+       0x02b1U, 0x1290U, 0x22f3U, 0x32d2U, 0x4235U, 0x5214U, 0x6277U, 0x7256U,
+       0xb5eaU, 0xa5cbU, 0x95a8U, 0x8589U, 0xf56eU, 0xe54fU, 0xd52cU, 0xc50dU,
+       0x34e2U, 0x24c3U, 0x14a0U, 0x0481U, 0x7466U, 0x6447U, 0x5424U, 0x4405U,
+       0xa7dbU, 0xb7faU, 0x8799U, 0x97b8U, 0xe75fU, 0xf77eU, 0xc71dU, 0xd73cU,
+       0x26d3U, 0x36f2U, 0x0691U, 0x16b0U, 0x6657U, 0x7676U, 0x4615U, 0x5634U,
+       0xd94cU, 0xc96dU, 0xf90eU, 0xe92fU, 0x99c8U, 0x89e9U, 0xb98aU, 0xa9abU,
+       0x5844U, 0x4865U, 0x7806U, 0x6827U, 0x18c0U, 0x08e1U, 0x3882U, 0x28a3U,
+       0xcb7dU, 0xdb5cU, 0xeb3fU, 0xfb1eU, 0x8bf9U, 0x9bd8U, 0xabbbU, 0xbb9aU,
+       0x4a75U, 0x5a54U, 0x6a37U, 0x7a16U, 0x0af1U, 0x1ad0U, 0x2ab3U, 0x3a92U,
+       0xfd2eU, 0xed0fU, 0xdd6cU, 0xcd4dU, 0xbdaaU, 0xad8bU, 0x9de8U, 0x8dc9U,
+       0x7c26U, 0x6c07U, 0x5c64U, 0x4c45U, 0x3ca2U, 0x2c83U, 0x1ce0U, 0x0cc1U,
+       0xef1fU, 0xff3eU, 0xcf5dU, 0xdf7cU, 0xaf9bU, 0xbfbaU, 0x8fd9U, 0x9ff8U,
+       0x6e17U, 0x7e36U, 0x4e55U, 0x5e74U, 0x2e93U, 0x3eb2U, 0x0ed1U, 0x1ef0U
+};
+
+/*
+ * udf_crc
+ *
+ * PURPOSE
+ *     Calculate a 16-bit CRC checksum using ITU-T V.41 polynomial.
+ *
+ * DESCRIPTION
+ *     The OSTA-UDF(tm) 1.50 standard states that using CRCs is mandatory.
+ *     The polynomial used is: x^16 + x^12 + x^15 + 1
+ *
+ * PRE-CONDITIONS
+ *     data            Pointer to the data block.
+ *     size            Size of the data block.
+ *
+ * POST-CONDITIONS
+ *     <return>        CRC of the data block.
+ *
+ * HISTORY
+ *     July 21, 1997 - Andrew E. Mileski
+ *     Adapted from OSTA-UDF(tm) 1.50 standard.
+ */
+uint16_t crc16(uint8_t *data, uint32_t size, uint16_t crc)
+{
+  while (size--)
+    crc = crc_table[(crc >> 8 ^ *(data++)) & 0xffU] ^ (crc << 8);
+
+  return crc;
+}
+
+/****************************************************************************/
+#if defined(CRCTEST)
+
+/*
+ * PURPOSE
+ *  Test udf_crc()
+ *
+ * HISTORY
+ *  July 21, 1997 - Andrew E. Mileski
+ *  Adapted from OSTA-UDF(tm) 1.50 standard.
+ */
+
+#include <stdio.h>
+
+unsigned char bytes[] = { 0x70U, 0x6AU, 0x77U };
+
+void dump_table(void)
+{
+  int i, j;
+
+    for(i=j=0;i<256;i++) {
+      printf("0x%ux  ", crc_table[i]);
+      j++;
+      if(j % 8 == 0)printf("\n");
+  }
+}
+
+
+int main(void)
+{
+  unsigned int x;
+
+
+  stdout = STREAM_GPSIM;
+
+  dump_table();
+  
+  x = crc16(bytes, sizeof(bytes), 0);
+  printf("crc16: calculated = %ux, correct = %ux\n", x, 0x3299U);
+
+  printf("test value = %d\n", -45);
+
+  return 0;
+}
+
+#endif /* defined(CRCTEST) */
+
+/****************************************************************************/
+#if defined(CRCGENERATE)
+
+/*
+ * PURPOSE
+ *  Generate a table for fast 16-bit CRC calculations (any polynomial).
+ *
+ * DESCRIPTION
+ *  The ITU-T V.41 polynomial is 010041.
+ *
+ * HISTORY
+ *  July 21, 1997 - Andrew E. Mileski
+ *  Adapted from OSTA-UDF(tm) 1.50 standard.
+ */
+
+#include <stdio.h>
+
+int main(int argc, char **argv)
+{
+  unsigned long crc, poly;
+  int n, i;
+
+  /* Get the polynomial */
+  sscanf(argv[1], "%lo", &poly);
+  if (poly & 0xffff0000U){
+    fprintf(stderr, "polynomial is too large\en");
+    exit(1);
+  }
+
+  printf("/* CRC %d 0%o 0x%x */\n", poly, poly, poly);
+
+  /* Create a table */
+  printf("static unsigned short crc_table[256] = {\n");
+  for (n = 0; n < 256; n++){
+    if (n % 8 == 0)
+      printf("\t");
+    crc = n << 8;
+    for (i = 0; i < 8; i++){
+      if(crc & 0x8000U)
+        crc = (crc << 1) ^ poly;
+      else
+        crc <<= 1;
+    crc &= 0xFFFFU;
+    }
+    if (n == 255)
+      printf("0x%04xU ", crc);
+    else
+      printf("0x%04xU, ", crc);
+    if(n % 8 == 7)
+      printf("\n");
+  }
+  printf("};\n");
+
+  return 0;
+}
+
+#endif /* defined(CRCGENERATE) */
index ca0ffdacc2f3667f8ef40c077b2f8b0f7ac10aa8..9106cc27a286d3f99a7b183046dc7172bd026d18 100644 (file)
@@ -21,7 +21,7 @@ extern void io_str(char *);
 #endif
 
 
-void ultoa(unsigned long value, data unsigned char* str, unsigned char radix)
+void ultoa(unsigned long value, __data unsigned char* str, unsigned char radix)
 {
   unsigned int index;
   unsigned char ch;
@@ -50,7 +50,7 @@ void ultoa(unsigned long value, data unsigned char* str, unsigned char radix)
     *str = 0;  /* string terminator */
 }
 
-void ltoa(long value, data unsigned char* str, unsigned char radix)
+void ltoa(long value, __data unsigned char* str, unsigned char radix)
 {
 #if _DEBUG
   io_str( "ltoa: " );
index a932b34132ee49774051bc51ea1401489ea1554e..718fdb08183ac8282ce07a7abfe55df981b35436 100644 (file)
@@ -32,7 +32,7 @@
 PUTCHAR(c)
 {
   c;
-  _asm
+  __asm
     return
-  _endasm;
+  __endasm;
 }
diff --git a/device/lib/pic16/libc/stdlib/rand.c b/device/lib/pic16/libc/stdlib/rand.c
new file mode 100644 (file)
index 0000000..26a21c1
--- /dev/null
@@ -0,0 +1,98 @@
+/*-
+ * rand.c - random number generation routines
+ *
+ * this source was part of the avr-lib library
+ * modified for SDCC/pic16 by Vangelis Rokas, 2005 <vrokas AT users.sourceforge.net>
+ *
+ *
+ * Copyright (c) 1990, 1993
+ *     The Regents of the University of California.  All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ *    must display the following acknowledgement:
+ *     This product includes software developed by the University of
+ *     California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * Posix rand_r function added May 1999 by Wes Peters <wes@softweyr.com>.
+ */
+
+#include <stdlib.h>
+
+static long do_rand(unsigned long *ctx)
+{
+  return ((*ctx = *ctx * 1103515245UL + 12345UL) % ((unsigned long)RAND_MAX + 1));
+}
+
+long rand_r(unsigned long *ctx)
+{
+  unsigned long val = (unsigned long) *ctx;
+  
+    *ctx = do_rand(&val);
+    return (long) *ctx;
+}
+
+static unsigned long next = 1;
+
+long rand(void)
+{
+  return do_rand(&next);
+}
+
+void srand(unsigned long seed)
+{
+  next = seed;
+}
+
+#ifdef TEST
+
+main()
+{
+    int i;
+    unsigned long myseed;
+
+    stdout = STREAM_GPSIM;
+
+    printf("seeding rand with 0x19610910: \n");
+    srand(0x19610910);
+
+    printf("generating three pseudo-random numbers:\n");
+    for (i = 0; i < 10; i++)
+    {
+       printf("next random number = %ld\n", rand());
+    }
+
+    printf("generating the same sequence with rand_r:\n");
+    myseed = 0x19610910;
+    for (i = 0; i < 10; i++)
+    {
+       printf("next random number = %ld\n", rand_r(&myseed));
+    }
+
+    return 0;
+}
+
+#endif /* TEST */
+
index 7ff860aabfe91dcb6cab7d2a9e37d145011b9d8b..e271f33fa208824e2548537ff36c1562fa9bb200 100644 (file)
@@ -29,7 +29,7 @@
 extern convert_frac;
 extern convert_int;
 
-/* char x_ftoa(float, data char *, unsigned char, unsigned char); */
+/* char x_ftoa(float, __data char *, unsigned char, unsigned char); */
 
 
 extern POSTDEC1;
@@ -47,12 +47,12 @@ extern FSR2H;
 #define _vv0x03        0x03
 #define _vv0x04        0x04
 
-char x_cnvint_wrap(unsigned long num, data char *buffer)
+char x_cnvint_wrap(unsigned long num, __data char *buffer)
 {
   num;
   buffer;
   
-  _asm
+  __asm
     movff      _vv0x00, _POSTDEC1
     movff      _vv0x01, _POSTDEC1
     movff      _vv0x02, _POSTDEC1
@@ -80,16 +80,16 @@ char x_cnvint_wrap(unsigned long num, data char *buffer)
     movff      _PREINC1, _vv0x02
     movff      _PREINC1, _vv0x01
     movff      _PREINC1, _vv0x00
-  _endasm ;
+  __endasm ;
 }
 
-char x_cnvfrac_wrap(unsigned long num, data char *buffer, unsigned char prec)
+char x_cnvfrac_wrap(unsigned long num, __data char *buffer, unsigned char prec)
 {
   num;
   buffer;
   prec;
   
-  _asm
+  __asm
     movff      _vv0x00, _POSTDEC1
     movff      _vv0x01, _POSTDEC1
     movff      _vv0x02, _POSTDEC1
@@ -122,7 +122,7 @@ char x_cnvfrac_wrap(unsigned long num, data char *buffer, unsigned char prec)
     movff      _PREINC1, _vv0x02
     movff      _PREINC1, _vv0x01
     movff      _PREINC1, _vv0x00
-  _endasm ;
+  __endasm ;
 }
 
 
@@ -132,7 +132,7 @@ union float_long {
   float f;
 };
 
-char x_ftoa(float num, data char *buffer, unsigned char buflen, unsigned char prec)
+char x_ftoa(float num, __data char *buffer, unsigned char buflen, unsigned char prec)
 {
   char len;
   char expn;
index e06b06abcc3dd09f03f9ae9cf198121485b732c5..9d7f7b38f315e995595615c5ae93f828e7b67424 100644 (file)
 
 #include <string.h>
 
-code void *memchrpgm(code void *s, char c, size_t count)
+__code void *memchrpgm(__code void *s, char c, size_t count)
 {
   if(!count)return (void *)0x00;
        
-  while((*(code char *)s != c) && (count)) {
-    s = (code char *)s + sizeof(code char *);
+  while((*(__code char *)s != c) && (count)) {
+    s = (__code char *)s + sizeof(__code char *);
     count--;
   }
 
index 157f856dda67bc0b4720d8e7f129df8b58ab69db..d8e1d45fe9ba8cd4d96c9c12a225d90b804dc374 100644 (file)
 
 #include <string.h>
 
-data void *memchrram(data void *s, char c, size_t count)
+__data void *memchrram(__data void *s, char c, size_t count)
 {
   if(!count)return (void *)0x00;
        
-  while((*(data char *)s != c) && (count)) {
-    s = (data char *)s + sizeof(data char *);
+  while((*(__data char *)s != c) && (count)) {
+    s = (__data char *)s + sizeof(__data char *);
     count--;
   }
 
index 009cd5c49cc5c923e69944aa05040ab97683f7e3..d4b0c49b35b27cfd65d1f5953377c33ac23504c9 100644 (file)
 -------------------------------------------------------------------------*/
 #include <string.h>
 
-void *memcpypgm2ram (data void *dst, void code *src, size_t acount) 
+__data void *memcpypgm2ram (__data void *dst, void __code *src, size_t acount) 
 {
   void *ret = dst;     /* perhaps ret should be removed, use dst instead */
-  char data *d = dst;
+  char __data *d = dst;
   char *s = src;
        
     /*
index c8a2101c3f5316c970bdb882e01c140eaaa9f0bd..1335a5c1d5755532485d540407e55a2c16036344 100644 (file)
 -------------------------------------------------------------------------*/
 #include <string.h>
 
-data void *memcpyram2ram (data void *dst, data void *src, size_t acount) 
+__data void *memcpyram2ram (__data void *dst, __data void *src, size_t acount) 
 {
-  void data *ret = dst;        /* perhaps ret should be removed, use dst instead */
-  char data *d = dst;
-  char data *s = src;
+  void __data *ret = dst;      /* perhaps ret should be removed, use dst instead */
+  char __data *d = dst;
+  char __data *s = src;
        
     /*
      * copy from lower addresses to higher addresses
index 4380fa95b99a9fc612b02f416214326d9732f3ff..9a41d3fdba1190075dd456155f30926df84b599f 100644 (file)
@@ -26,7 +26,7 @@ COMPILE_FLAGS += $(OPT_FLAGS)
 
 OPT_FLAGS2      +=
 
-CFLAGS = -I$(LIBC_INC_DIR) $(OPT_FLAGS2)
+CFLAGS = $(CSTD) -I$(LIBC_INC_DIR) $(OPT_FLAGS2)
 
 
 CFILES = $(patsubst %,%.c,$(SRCS))
index ae8dd58aeea7cb45353347e44a116b63008394ec..0ef40c5560ee77d0754be7b4339267cd1fbdb3b9 100644 (file)
@@ -4,16 +4,16 @@
 #include <adc.h>
 
 
-char adc_busy(void) _naked
+char adc_busy(void) __naked
 {
-#if 1
+#if 0
   return (ADCON0bits.GO);
 #else
-  _asm
+  __asm
     movlw       0x00
     btfsc       _ADCON0bits, 2
     addlw       0x01
     return
-  _endasm;
+  __endasm;
 #endif
 }
index b3072bb7db2d8f0ae5c1c6d81d8424359a37d05b..bb556ea3a8a105e9a80f185f1dae2dd13a6f92d6 100644 (file)
 #include <adc.h>
 
 
-int adc_read(void) _naked
+int adc_read(void) __naked
 {
-  _asm
+  __asm
     movff       _ADRESH, _PRODL
     movf        _ADRESL, w
     return
-  _endasm;
+  __endasm;
 }
index 5802e67cf061aceb45fec9eafb7be43c43d5fddd..db10cba03887c05d9581fdf2c4517739095cb6bc 100644 (file)
 #include <adc.h>
 
 
-void adc_setchannel(unsigned char channel) _naked
+void adc_setchannel(unsigned char channel) __naked
 {
 #if 0
   ADCON0 &= ~(0x7 << 3);
   ADCON0 |= channel << 3;
 #else
   channel;
-  _asm
+  __asm
     movlw       0xc7
     andwf       _ADCON0, f
     
@@ -53,6 +53,6 @@ void adc_setchannel(unsigned char channel) _naked
     iorwf       _ADCON0, f
 
     return
-  _endasm;
+  __endasm;
 #endif    
 }
index bdc8500df91c6d0f5aae2b881df216a9d7de912f..9271a04498d6b7b7d845479ec6304927bfbd3ced 100644 (file)
@@ -30,7 +30,7 @@
 
 #include <usart.h>
 
-void usart_baud(unsigned char baudconfig) wparam
+void usart_baud(unsigned char baudconfig) __wparam
 {
     BAUDREG = baudconfig;
 }
index 8533ca18d79c25ae98d58e0cc337eb057b1d0d35..5968e0d69bba52fba705c7287df09f6c0c88e078 100644 (file)
 
 #include <usart.h>
 
-unsigned char usart_busy(void) _naked
+unsigned char usart_busy(void) __naked
 {
 #if 0
   if(!TXSTAbits.TRMT)return 1;
   else return 0;
 #else
-  _asm
+  __asm
     movlw       0x00
     btfss       _TXSTAbits, 1
     addlw       0x01
     return
-  _endasm;
+  __endasm;
 #endif
 }
index a4c16f4adac3c03345d05df41a8cd9f3026d7a98..00a343c30df6adaf27e1d7a90d4ceaa79f2549ed 100644 (file)
 #include <usart.h>
 
 
-unsigned char usart_drdy(void) _naked
+unsigned char usart_drdy(void) __naked
 {
 #if 0
   if(PIR1bits.RCIF)return 1;
   else return 0;
 #else
-  _asm
+  __asm
     movlw       0x00
     btfsc       _PIR1bits, 5
     addlw       0x01
     return
-  _endasm;
+  __endasm;
 #endif
 }
index 34810627c6017d02471794aa375411852ee35dfd..40dcbec20d04c53ee9c00ea92a5e6d1aa4cb03cd 100644 (file)
@@ -34,7 +34,7 @@
 // USART Status Structure
 extern union USART USART_Status;
 
-void usart_open(unsigned char config, unsigned int spbrg) wparam
+void usart_open(unsigned char config, unsigned int spbrg) __wparam
 {
   TXSTA = 0;           // Reset USART registers to POR state
   RCSTA = 0;
index b62dba42656919487d33f444626ba2275489a756..f99e6b560b16ff87bfa99f2872e122f73a0045de 100644 (file)
@@ -33,7 +33,7 @@
 
 extern union USART USART_Status;
 
-void usart_putc(unsigned char dat) wparam _naked
+void usart_putc(unsigned char dat) __wparam __naked
 {
 #if 0
   if(TXSTAbits.TX9) {
@@ -44,7 +44,7 @@ void usart_putc(unsigned char dat) wparam _naked
   TXREG = dat;      // Write the data byte to the USART
 #else
   dat;
-  _asm
+  __asm
     btfss       _TXSTAbits, 6
     bra         _01_
     
@@ -56,6 +56,6 @@ void usart_putc(unsigned char dat) wparam _naked
 _01_:
     movwf       _TXREG
     return
-    _endasm;
+  __endasm;
 #endif
 }
index 524f2175f3f847638a21ea19125b853d113d5639..d9ba0a0cc6db80a1e20816022af34afb46852cc3 100644 (file)
@@ -62,7 +62,7 @@ SRCS  =       acosf  \
 
 COMPILE_FLAGS  += $(MODELFLAGS) $(OPT_FLAGS)
 
-#CFLAGS        += -I$(LIBC_INC_DIR)
+CFLAGS += $(CSTD)
 CFLAGS += -I $(PRJDIR)/device/include/pic16
 
 
@@ -84,9 +84,10 @@ $(LIB): $(OFILES)
                else \
                        $(AR) -r $(LIB) $$object ; \
                fi; \
-               echo adding $$object ; \
+               echo -n "$$object " ; \
        done ;
-       mv -v $(LIB) ../bin
+       @echo
+       @mv -v $(LIB) ../bin
 
 
 all-clean: clean
index 965de6bd713de1cb38cd9d04c92057fa5d1dab64..9ddee4ecddba4e695c8d3897c905cfa24f193718 100644 (file)
 #include <math.h>
 #include <errno.h>
 
-#define r1      -0.1666665668E+0
-#define r2       0.8333025139E-2
-#define r3      -0.1980741872E-3
-#define r4       0.2601903036E-5
+#define r1      (-0.1666665668E+0)
+#define r2      (0.8333025139E-2)
+#define r3      (-0.1980741872E-3)
+#define r4       (0.2601903036E-5)
 
 /* PI=C1+C2 */
 #define C1       3.140625
index 9a7d0eeeec8c152c0ec9618bd4b35a6599f40918..529b2a7b5b8d0bc659c3b46fc216fdded7fbe38a 100644 (file)
@@ -25,7 +25,8 @@ OPT_FLAGS     += --optimize-cmp
 #OPT_FLAGS     += --stack-auto
 COMPILE_FLAGS  += $(MODELFLAGS) $(OPT_FLAGS) $(DEBUG)
 
-CFLAGS = --nostdinc -I$(LIBC_INC_DIR)
+CFLAGS  += $(CSTD)
+CFLAGS += --nostdinc -I$(LIBC_INC_DIR)
 
 CFILES = $(patsubst %,%.c,$(SRCS))
 COFILES        = $(patsubst %.c,%.o,$(CFILES))
index 4b208b1e47066eb0b8ba946b1047a90420347082..3c54a1e840b3501dfd41d9b6b89e71fb566492d7 100644 (file)
@@ -46,9 +46,9 @@ extern TABLAT;
 extern PRODL;
 
 
-void _gptrget1(void) _naked
+void _gptrget1(void) __naked
 {
-  _asm
+  __asm
     /* decode generic pointer MSB (in WREG) bits 6 and 7:
      * 00 -> code
      * 01 -> EEPROM
@@ -92,5 +92,5 @@ _lab_02_:
 _end_:
 
   return
-  _endasm;
+  __endasm;
 }
index c6b2eb369528e56ab2771f575fa41ac59edc7e95..cfe1687f8712cf16210f1ddf8913be623145e642 100644 (file)
@@ -44,9 +44,9 @@ extern TBLPTRU;
 extern TABLAT;
 extern PRODL;
 
-void _gptrget2(void) _naked
+void _gptrget2(void) __naked
 {
-  _asm
+  __asm
     /* decode generic pointer MSB (in WREG) bits 6 and 7:
      * 00 -> code
      * 01 -> EEPROM
@@ -95,5 +95,5 @@ _lab_02_:
 _end_:
 
   return
-  _endasm;
+  __endasm;
 }
index 932b96f384015bf0bf461d12c6e7158bf64d8438..1d8d975b02952920809948e839ce3d69056e428e 100644 (file)
@@ -45,9 +45,9 @@ extern TABLAT;
 extern PRODL;
 extern PRODH;
 
-void _gptrget3(void) _naked
+void _gptrget3(void) __naked
 {
-  _asm
+  __asm
     /* decode generic pointer MSB (in WREG) bits 6 and 7:
      * 00 -> code
      * 01 -> EEPROM
@@ -99,5 +99,5 @@ _lab_02_:
     /* unimplemented yet */
 
   return
-  _endasm;
+  __endasm;
 }
index 821261a9d68a64db45c2f8b7b5f171d257b76c2a..2ee3889fbdef7af5e29bd33de807bfcf50fd6f24 100644 (file)
@@ -45,9 +45,9 @@ extern TABLAT;
 extern PRODL;
 extern PRODH;
 
-void _gptrget4(void) _naked
+void _gptrget4(void) __naked
 {
-  _asm
+  __asm
     /* decode generic pointer MSB (in WREG) bits 6 and 7:
      * 00 -> code
      * 01 -> EEPROM
@@ -104,5 +104,5 @@ _lab_02_:
 
   return
   
-  _endasm;
+  __endasm;
 }
index 1d57533a8ccb06257c775b9cd967e7061d16a067..d4e92756924104338e32ffeca9d629f0dffe93e0 100644 (file)
@@ -45,9 +45,9 @@ extern TABLAT;
 extern PRODL;
 extern PRODH;
 
-void _gptrput1(void) _naked
+void _gptrput1(void) __naked
 {
-  _asm
+  __asm
     /* decode generic pointer MSB (in WREG) bits 6 and 7:
      * 00 -> code (unimplemented)
      * 01 -> EEPROM (unimplemented)
@@ -80,5 +80,5 @@ _lab_02_:
 
 
   return
-  _endasm;
+  __endasm;
 }
index 710cd95337a9a76ced4ad06c911b97cbb3347d23..07c66deecd451f8b905c90aae3a347abf67260ca 100644 (file)
@@ -45,9 +45,9 @@ extern TABLAT;
 extern PRODL;
 extern PRODH;
 
-void _gptrput2(void) _naked
+void _gptrput2(void) __naked
 {
-  _asm
+  __asm
     /* decode generic pointer MSB (in WREG) bits 6 and 7:
      * 00 -> code (unimplemented)
      * 01 -> EEPROM (unimplemented)
@@ -82,5 +82,5 @@ _lab_02_:
 
 
   return
-  _endasm;
+  __endasm;
 }
index 0cd9d2e596b80defb87ac799551734c317aa4dea..92d759e9ff0ff4ebd80c59f8f5c5c78e5d5f76b2 100644 (file)
@@ -45,9 +45,9 @@ extern TABLAT;
 extern PRODL;
 extern PRODH;
 
-void _gptrput3(void) _naked
+void _gptrput3(void) __naked
 {
-  _asm
+  __asm
     /* decode generic pointer MSB (in WREG) bits 6 and 7:
      * 00 -> code (unimplemented)
      * 01 -> EEPROM (unimplemented)
@@ -83,5 +83,5 @@ _lab_02_:
 
 
   return
-  _endasm;
+  __endasm;
 }
index 4bb503d5f706ec40276a8f436f9105fddeb86b1e..26fed527173c8d3234a0b0cde4a81c9884584d2a 100644 (file)
@@ -45,9 +45,9 @@ extern TABLAT;
 extern PRODL;
 extern PRODH;
 
-void _gptrput4(void) _naked
+void _gptrput4(void) __naked
 {
-  _asm
+  __asm
     /* decode generic pointer MSB (in WREG) bits 6 and 7:
      * 00 -> code (unimplemented)
      * 01 -> EEPROM (unimplemented)
@@ -84,5 +84,5 @@ _lab_02_:
 
 
   return
-  _endasm;
+  __endasm;
 }
index 59a4cb7c0e518184f6727645440f396f65f8c743..892d0e56de3b32ec1394cf514257d6891fad86a4 100644 (file)
@@ -30,7 +30,7 @@ unsigned int _divuint (unsigned int a, unsigned int b) _IL_REENTRANT
 {
   unsigned int reste = 0;
   unsigned char count = 16;
-    char c;
+  unsigned char c;
 
   do
   {
index 2e7d7961485812e0695e7329dfc60d358d5b44eb..1029e836c482d184a10f2cf543751cc846abfb46 100644 (file)
@@ -30,7 +30,7 @@ unsigned long _divulong (unsigned long a, unsigned long b) _IL_REENTRANT
 {
   unsigned long reste = 0L;
   unsigned char count = 32;
-  char c;
+  unsigned char c;
 
   do
   {
index b0807e77bd76bdc79f5d838553609b72655da14d..f8a86a4580ff534202e31a37b7588aaf9561592f 100644 (file)
@@ -25,6 +25,8 @@ SRCS  =       crt0    \
 COMPILE_FLAGS  += $(MODELFLAGS) $(OPT_FLAGS)
 COMPILE_FLAGS  += --nostdinc --nostdlib --fommit-frame-pointer
 
+CFLAGS  += $(CSTD)
+
 CFILES = $(patsubst %,%.c,$(SRCS))
 OFILES = $(patsubst %.c,%.o,$(CFILES))
 
index d906a4bf219ca211722bbbe97a850ddc1c251309..4a37eba1f936ece0b67115043a73fd9774770fdf 100644 (file)
@@ -37,23 +37,23 @@ extern TBLPTRU;
 extern void main (void);
 
 /* prototype for the startup function */
-void _entry (void) _naked interrupt 0;
-void _startup (void) _naked;
+void _entry (void) __naked __interrupt 0;
+void _startup (void) __naked;
 
 
 /*
  * entry function, placed at interrupt vector 0 (RESET)
  */
 
-void _entry (void) _naked interrupt 0
+void _entry (void) __naked __interrupt 0
 {
-  _asm goto __startup _endasm;
+  __asm goto __startup __endasm;
 }
 
 
-void _startup (void) _naked
+void _startup (void) __naked
 {
-  _asm
+  __asm
     // Initialize the stack pointer
     lfsr 1, _stack_end
     lfsr 2, _stack_end
@@ -64,7 +64,7 @@ void _startup (void) _naked
     bsf 0xa6, 7, 0
     bcf 0xa6, 6, 0
 
-  _endasm ;
+  __endasm ;
     
   /* Call the user's main routine */
   main();
index d8cfe434b83c321c3adf4ebbfde437373c40ad99..ff2de54aa8a031d8846189d0ef775b9c2b1a7008 100644 (file)
@@ -49,26 +49,26 @@ char __uflags = 0;
 extern void main (void);
 
 /* prototype for the startup function */
-void _entry (void) _naked interrupt 0;
-void _startup (void) _naked;
+void _entry (void) __naked __interrupt 0;
+void _startup (void) __naked;
 
 /* prototype for the initialized data setup */
-void _do_cinit (void) _naked;
+void _do_cinit (void) __naked;
 
 
 /*
  * entry function, placed at interrupt vector 0 (RESET)
  */
 
-void _entry (void) _naked interrupt 0
+void _entry (void) __naked __interrupt 0
 {
-  _asm goto __startup _endasm;
+  __asm goto __startup __endasm;
 }
 
 
-void _startup (void) _naked
+void _startup (void) __naked
 {
-  _asm
+  __asm
     // Initialize the stack pointer
     lfsr 1, _stack_end
     lfsr 2, _stack_end
@@ -79,7 +79,7 @@ void _startup (void) _naked
     bsf 0xa6, 7, 0
     bcf 0xa6, 6, 0
 
-  _endasm ;
+  __endasm ;
     
   _do_cinit();
 
@@ -93,7 +93,7 @@ loop:
 
 
 /* the cinit table will be filled by the linker */
-extern code struct
+extern __code struct
 {
   unsigned short num_init;
   struct _init_entry {
@@ -119,12 +119,12 @@ extern code struct
  */
 
 /* the variable initialisation routine */
-void _do_cinit (void) _naked
+void _do_cinit (void) __naked
 {
   /*
    * access registers 0x00 - 0x09 are not saved in this function
    */
-  _asm
+  __asm
       ; TBLPTR = &cinit
     movlw low(_cinit)
     movwf _TBLPTRL
@@ -145,7 +145,7 @@ void _do_cinit (void) _naked
 
                   ; while (curr_entry) {
 test:
-    bnz done1
+    bnz cont1   ;;done1
     tstfsz curr_entry, 1
     bra cont1
 
@@ -193,7 +193,7 @@ cont1:
     TBLRDPOSTINC
     TBLRDPOSTINC
 
-    ; read the destination address directly into FSR0 
+    ; read the size of data to transfer destination address
     TBLRDPOSTINC
     movf _TABLAT, w
     movwf curr_byte
@@ -202,7 +202,6 @@ cont1:
     movf _TABLAT, w
     movwf curr_byte+1
     
-
     ; skip two bytes since it is stored as a 32bit int 
     TBLRDPOSTINC
     TBLRDPOSTINC
@@ -232,8 +231,8 @@ cont1:
 
     ; determine if we have any more bytes to copy 
                   ; movlb curr_byte 
-    movf curr_byte, w
 
+    movf curr_byte, w
 copy_loop:
     bnz copy_one_byte          ; copy_one_byte 
     movf curr_byte + 1, w
@@ -244,12 +243,14 @@ copy_one_byte:
     movf _TABLAT, w
     movwf _POSTINC0
 
+    movff _TABLAT, 0xf7e
+
     ; decrement byte counter 
     decf curr_byte, f
-    bnc copy_loop              ; copy_loop 
+    bc copy_loop               ; copy_loop
     decf curr_byte + 1, f
+    bra copy_one_byte
 
-    bra copy_loop
 done_copying:
 
   
@@ -259,9 +260,12 @@ done_copying:
     movff data_ptr + 1, _TBLPTRH
     movff data_ptr + 2, _TBLPTRU
 
-    dcfsnz curr_entry, f
+    decf curr_entry, f
+    bc do_next    
     decf curr_entry + 1, f
 
+do_next:
+
     ; next entry...
     ; _do_cinit_curr_entry--; 
 
@@ -270,6 +274,6 @@ done_copying:
     ; emit done label 
 done:
     return
-  _endasm;
+  __endasm;
 }
 
index 8e62153671864059aa1181186216525beab990d5..a3ae4722d9362f1a51a411c150298faaab9179fc 100644 (file)
@@ -49,26 +49,26 @@ char __uflags = 0;
 extern void main (void);
 
 /* prototype for the startup function */
-void _entry (void) _naked interrupt 0;
-void _startup (void) _naked;
+void _entry (void) __naked __interrupt 0;
+void _startup (void) __naked;
 
 /* prototype for the initialized data setup */
-void _do_cinit (void) _naked;
+void _do_cinit (void) __naked;
 
 
 /*
  * entry function, placed at interrupt vector 0 (RESET)
  */
 
-void _entry (void) _naked interrupt 0
+void _entry (void) __naked __interrupt 0
 {
-  _asm goto __startup _endasm;
+  __asm goto __startup __endasm;
 }
 
 
-void _startup (void) _naked
+void _startup (void) __naked
 {
-  _asm
+  __asm
     // Initialize the stack pointer
     lfsr 1, _stack_end
     lfsr 2, _stack_end
@@ -78,10 +78,10 @@ void _startup (void) _naked
     // for non-flash devices, so we do it on all parts.
     bsf 0xa6, 7, 0
     bcf 0xa6, 6, 0
-  _endasm ;
+  __endasm ;
     
   /* cleanup the RAM */
-  _asm
+  __asm
     /* load FSR0 with top of RAM memory */
         ; movlw 0xff
         ; movwf _FSR0L, 0
@@ -99,10 +99,10 @@ void _startup (void) _naked
     movlw 0x00
                
 clear_loop:
-    movwf _POSTDEC0
+    clrf _POSTDEC0
     movf 0x00, w
     bnz clear_loop
-  _endasm ;
+  __endasm ;
 
   _do_cinit();
 
@@ -116,7 +116,7 @@ loop:
 
 
 /* the cinit table will be filled by the linker */
-extern code struct
+extern __code struct
 {
   unsigned short num_init;
   struct _init_entry {
@@ -142,13 +142,13 @@ extern code struct
  */
 
 /* the variable initialisation routine */
-void _do_cinit (void) _naked
+void _do_cinit (void) __naked
 {
   /*
    * access registers 0x00 - 0x09 are not saved in this function
    */
 
-  _asm
+  __asm
       ; TBLPTR = &cinit
     movlw low(_cinit)
     movwf _TBLPTRL
@@ -169,7 +169,7 @@ void _do_cinit (void) _naked
 
                   ; while (curr_entry) {
 test:
-    bnz done1
+    bnz cont1           ;;done1
     tstfsz curr_entry, 1
     bra cont1
 
@@ -217,7 +217,7 @@ cont1:
     TBLRDPOSTINC
     TBLRDPOSTINC
 
-    ; read the destination address directly into FSR0 
+    ; read the size of data to transfer to destination address 
     TBLRDPOSTINC
     movf _TABLAT, w
     movwf curr_byte
@@ -270,10 +270,10 @@ copy_one_byte:
 
     ; decrement byte counter 
     decf curr_byte, f
-    bnc copy_loop              ; copy_loop 
+    bc copy_loop               ; copy_loop 
     decf curr_byte + 1, f
 
-    bra copy_loop
+    bra copy_one_byte
 done_copying:
 
   
@@ -284,9 +284,11 @@ done_copying:
     movff data_ptr + 2, _TBLPTRU
 
 
-    dcfsnz curr_entry, f
+    decf curr_entry, f
+    bc do_next
     decf curr_entry + 1, f
 
+do_next:
     ; next entry...
     ; _do_cinit_curr_entry--; 
 
@@ -295,6 +297,6 @@ done_copying:
     ; emit done label 
 done:
     return
-  _endasm;
+  __endasm;
 }
 
index ee9a2b52d3916a2d6882873153c20c40c856abef..c823dd296dd9900a71d67e04b7b61b3b67324993 100644 (file)
@@ -422,6 +422,7 @@ static int insideLRBlock(pCode *pc)
         t2 = PCOLR (PCINF (pc1)->oper1)->type;
         break;
       }
+      pc1 = pc1->next;
     }
     
     if((t1 == LR_ENTRY_BEGIN && t2 == LR_ENTRY_END)