Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Bit Operation

Author: Tony Werten

Date: 23:43:49 05/20/02

Go up one level in this thread


On May 20, 2002 at 19:14:21, William Bryant wrote:

>My programming is a bit amature, but why not just exclusive OR with a full bit
>mask.
>
>ie:
>11111111 = mask
>10101010 = value
>
>01010101 = XOR
>
>William

1111 = mask
1000 = value

0111 = xor, wich is not the result he asked for.

It just worked in your case because of the special starting value.

cheers,

Tony



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.