Message-Id: <3.0.6.32.19990203223826.00835380@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 22:38:26 -0500 To: djgpp AT delorie DOT com From: Paul Derbyshire Subject: Re: Re[2]: what is wrong with this? In-Reply-To: <10991.990203@flashback.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Reply-To: djgpp AT delorie DOT com >> 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. If you're gonna do a lot of bit manipulation, you ought to learn the relationship between binary and hex and the bitwise operators & and | in detail, if you haven't already. (I knew hex, decimal, and binary at age 9, thanks to my Commodore 64 :-)) -- .*. "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|