P1_1 gets you to P1.1, and likewise to other P#.# sbits. Search for it i=
sdcc header file mcs51reg.h, which is included with sdcc. Referring to t=
header has helped me with several porting issues.=20
On Thursday 04 December 2003 10:18 am, Guilherme Neuman wrote:
> I'm new to sdcc, I've used keil for some months and I'm trying to find =
> the main differences in writing code for each other.
> The first thing I noticed is that I'm not able to address a bit of a
> register unless I explicitly declare it. Let me make it clear:
> In the keil compiler if I had a sfr declared
> sfr P1 =3D 0x90;
> I could address it's first bit
> P1^0 =3D 0;
> In avcase compiler (an old vrsion in my school) I would do
> P1.1 =3D 0;
> I've tried both ways in sdcc, but none seem to work:
> sfr at 0x90 P1;
> P1.1 =3D 0; gives a parse error
> P1^1 seems to be like P1 XOR 1, so doesn't work for me either.
> Does anybody know how to do that or can you tell me if I simply can't d=
> And do you know anything else I should take care of while migrating? So=
> the only thing I've found is that I must declare sfr and sbit in a
> different way.
> Also in keil I have to set up the chip I'm working with. I don't know i=
> it's mandatory, but do you know how should I do it in sdcc? The chip I'=
> using is the Philips p89c557e4.
> Thank you very much for any help you can provide me.
> Voce quer um iGMail protegido contra v=EDrus e spams?
> Clique aqui: http://www.igmailseguro.ig.com.br
> Ofertas imperd=EDveis! Link: http://www.americanas.com.br/ig/
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for IBM=
> Free Linux Tutorials. Learn everything from the bash shell to sys admi=
> Click now! http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dclick
> Sdcc-user mailing list