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