----- Original Message ---- > From: Olin Lathrop > To: Microcontroller discussion list - Public. > Sent: Wednesday, 29 December, 2010 13:33:10 > Subject: Re: [PIC] C syntax in assembler >=20 > IVP wrote: > > if(diff >=3D 0) > > byte =3D 0; > > else > > > > { > > byte =3D 8; > > diff =3D - diff; > > } >=20 > I'm no C whiz (I can just about spell it), but that looks really messed = up > to me. Hopefully someone that actually knows C will jump in, but doesn'= t > the ";" at the end of the second line end the IF statement? If so, the = ELSE > must be part of a outer IF statement not shown? No and No. The ";" just terminates the "if true statement". A quick google would have stopped you making all the wrong assumptions ! http://en.wikipedia.org/wiki/C_syntax#Control_structures PeterO --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .