I tested the pic14 branch
My code works with sdcc 3.9.2 #11326 (Linux)
The latest gputils is installed from svn://svn.code.sf.net/p/gputils/code/trunk
Has some syntax changed?
PIC16f1825
gpasm -c --force-list --deps main.asm
main.asm:72:Error[113] Symbol not previously defined: "_config2Reg"
main.asm:73:Error[113] Symbol not previously defined: "_config1Reg"
main.asm:296:Error[113] Symbol not previously defined: "_INTCONbits"
main.asm:778:Error[113] Symbol not previously defined: "_INTCONbits"
main.asm:779:Error[113] Symbol not previously defined: "_INTCONbits"
main.asm:783:Error[113] Symbol not previously defined: "_INTCONbits"
main.asm:787:Error[113] Symbol not previously defined: "_INTCONbits"
main.asm:788:Error[113] Symbol not previously defined: "_INTCONbits"
main.asm:800:Error[113] Symbol not previously defined: "_INTCONbits"
Code snips:
typedef unsigned int config_word_t;
__code config_word_t __at _CONFIG1 config1Reg = ...
__code config_word_t __at _CONFIG2 config2Reg = ...
#define disableIntr() \
__asm __endasm; \
__asm bcf _INTCONbits,7 ; disableIntr() __endasm; \
__asm btfsc _INTCONbits,7 __endasm; \
__asm goto $-2 __endasm; \
__asm __endasm
#define enableIntr() \
__asm __endasm; \
__asm bsf _INTCONbits,7 ; enableIntr() __endasm; \
__asm __endasm
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user