Path: chuka.playstation.co.uk!news From: "Andrew Partington" Newsgroups: scee.yaroze.freetalk.english Subject: Re: Adventures Date: Sat, 12 Oct 2002 01:07:17 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 42 Message-ID: References: NNTP-Posting-Host: public2-ward1-6-cust16.manc.broadband.ntl.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Hi Nigel, Yeah, thought it should have been a XOR b soon after I posted, like I said, it was just something off the top of my head first thing in the morning (and been a bit busy at work to follow the groups unfortunately) - glad you found it useful :) Andy ----- Original Message ----- From: "Nigel Critten" Newsgroups: scee.yaroze.freetalk.english Sent: Friday, October 11, 2002 11:44 PM Subject: Re: Adventures > Its alright I sorted the problem as I was typing the last post... doh! > > funny how often you can think of something as you type but you can stare > at the code for hours without results :) > > I now XOR them together which basically is the same as an or but if you > get to 1s then they turn to 0s which is perfect because they then don't > match. > > a =111000 > b =000111 > result = 111111 > > a = 111001 > b = 000111 > > result = 111110 > > which is nice ;) > > Nigel >