Message-Id: <3.0.6.32.19990203235100.008de100@pop.netaddress.com> X-Sender: pderbysh AT pop DOT netaddress DOT com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Wed, 03 Feb 1999 23:51:00 -0500 To: djgpp AT delorie DOT com From: Paul Derbyshire Subject: Re: Re[2]: what is wrong with this? In-Reply-To: <3.0.6.32.19990203223826.00835380@pop.netaddress.com> References: <10991 DOT 990203 AT flashback DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Reply-To: djgpp AT delorie DOT com At 10:38 PM 2/3/99 -0500, you wrote: >>> bittmp = tmp & 0xCF; >> >>hm, this is not true, >>0xCF = 11001111 in binary, >>i don't see how this could reset bit 6... > >Oops. Someone made a boo-boo. That should definitely have been 0xDF. Oops oops. That will give 11011111, but that's actually bit 5... 0xBF will give 10111111, which is what you & with to reset bit 6. This is using the covention that the right most bit is bit 0, someone may have been calling it bit 1... -- .*. "Clouds are not spheres, mountains are not cones, coastlines are not -() < circles, and bark is not smooth, nor does lightning travel in a `*' straight line." ------------------------------------------------- -- B. Mandelbrot |http://surf.to/pgd.net _____________________ ____|________ Paul Derbyshire pderbysh AT usa DOT net Programmer & Humanist|ICQ: 10423848|