Are __bit and __sbit implemented for PIC14?

I have tried everything I could think of on SDCC 3.2.0 and 3.1.0 to get 
something like this to work for a PIC16F627A...

__bit test_bit;
__sbit __at (0xd7) CY; /* CY (Carry Flag) */

The error I get is always...
syntax error: token -> '__at'

If I use some other type, it works...
unsigned char __at (PORTB_ADDR+5) b_RELAY;

It appears that all of the SDCC PIC header files use unions, whereas 
8051 headers use the sbit form.

As far as I can make out from a brief look at the source, it looks like 
bit/sbit keywords are commented out of main.c for both PIC14 and PIC16 
for some reason.

Thanks
-drew

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to