--- Ori Idan <[EMAIL PROTECTED]> wrote:

> It should be even simpler:
> #define light P2_0
> 
> When you write just use: light = val;
> 
This worked for me. 

> > > 2. sbit light = P2_0 (instead of P2^0 for keil)
> >
> > This line creates a new sbit variable, initialized
> with P2_0, you
> > probably want something like
> >         sbit __at(P2_0) light;
> >
> > I am no mcs51 expert, but this is a common error.
> Maybe you need to use
> > __at(&P2_0), but I am not so sure.
> >
This gave a compiler error (parse error). I wonder
why. 

thanks for the replies
-siddharth
 


 
____________________________________________________________________________________
The fish are biting. 
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to