www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/03/23:31:36

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 <pderbysh AT usa DOT net>
Subject: Re: Re[2]: what is wrong with this?
In-Reply-To: <10991.990203@flashback.net>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990203185620 DOT 21364D-100000 AT is>
Mime-Version: 1.0
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|

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019