Macro 'SBIT' doesn't know that 'FSR' is.  Try instead:

SFR(FSR, 0xF8);
SBIT(MCDIS, 0xF8, 7);

At 05:47 PM 21/07/2009, you wrote:

>I'm trying to use the macros in compiler.h to port some headers from 
>Keil. So I have stuff like...
>
>SFR(FSR, 0xF8);
>SBIT(MCDIS, FSR, 7);
>
>And sdcc is telling me "Initializer element is not constant". What 
>am I doing wrong?
>
>
>
>------------------------------------------------------------------------------
>_______________________________________________
>Sdcc-user mailing list
>Sdcc-user@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/sdcc-user


------------------------------------------------------------------------------
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to