Mail Archives: djgpp/1999/02/03/23:51:25
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|
- Raw text -