On Sat, May 27, 2000 at 02:35:53PM +1000, Grant Forest wrote: > X=0x0f; > Y=X; > while ( ! (X&Y)); > What is the purpose of the while statment? Assuming that what you have there is literally the sequence of code, and X and Y are not modified by e.g. an interrupt routine, then the answer is "not much". A good compiler will in fact optimise it out of existence. -- Clyde Smith-Stubbs | HI-TECH Software Email: clyde@htsoft.com | Phone Fax WWW: http://www.htsoft.com/ | USA: (408) 490 2885 (408) 490 2885 PGP: finger clyde@htsoft.com | AUS: +61 7 3355 8333 +61 7 3355 8334 --------------------------------------------------------------------------- HI-TECH C: compiling the real world.