Jorge Moreno schrieb:

have a look on this for more information visit maxim web site for app notes

// for next declarations see maxim application note 3477
// linker needs data-loc option set to 0x0030
data unsigned char at 0x002F bitTemp;        // Temporary storage for the
                        // states of the handshake pins
                        // should overlay bitTemp
                        // bit location are driver dependent
bit    at    0x7F    ri;            // bit 7 of bitTemp
bit    at    0x7E    cd;            // bit 6 of bitTemp
bit    at    0x7D    dsr;            // bit 5 of bitTemp
bit    at    0x7C    cts;            // bit 4 of bitTemp


> Hi:
> I need to use a byte variable in the bit addressable space and I need 
> to define some bits within this byte to play some special functions. 
> How do I do this with SDCC?
> Thanks in advance
> Jorge Moreno
>  
>
> ------------------------------------------------------------------------
> Get your email and more, right on the new Yahoo.com 
> <http://us.rd.yahoo.com/evt=42973/*http://www.yahoo.com/preview>
>
>------------------------------------------------------------------------
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share your
>opinions on IT & business topics through brief surveys -- and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Sdcc-user mailing list
>Sdcc-user@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/sdcc-user
>  
>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to