Thanks.
I can reproduce the issue using the test program below:
test.asm:24:Error[113] Symbol not previously defined: "_config2Reg"
test.asm:25:Error[113] Symbol not previously defined: "_config1Reg"
test.asm:101:Error[113] Symbol not previously defined: "_INTCONbits"
test.asm:102:Error[113] Symbol not previously defined: "_INTCONbits"
test.asm:106:Error[113] Symbol not previously defined: "_INTCONbits"
I compiled using ~/sdcc-branches/pic14/sdcc/bin/sdcc --use-non-free
-mpic14 -p16f1825 --nostdinc
-I/home/philipp/sdcc-branches/pic14/sdcc/device/include/pic14
-I/home/philipp/sdcc-branches/pic14/sdcc/device/non-free/include/pic14
test.c
I see no such error when compiling using sdcc from trunk.
Philipp
Program (tried to send as attachmnt earlier, but didn't show up on the
list):
#include "pic16f1825.h"
typedef unsigned int config_word_t;
__code config_word_t __at _CONFIG1 config1Reg = 0x01;
__code config_word_t __at _CONFIG2 config2Reg = 0x01;
#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
void main(void)
{
disableIntr();
enableIntr();
}
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user