[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exclusive Or in Applesoft?



mjmahon@aol.com (Michael J. Mahon) writes:

> I hastily wrote:
>
>>Jayson Smith asked:
>>
>>>Is there any way to Exclusive Or in Applesoft or does this have to be done
>>>in machine code?
>>
>>There is no exclusive-or operator in Applesoft.
>>
>>If you need to exclusive-or single boolean values, then you can do
>>it with an expression:  NOT (B1 = B2).
>
> I was thinking a little _too_ boolean!
>
> Obviously B1 <> B2 will do the job faster.

        Or even (B1 + B2) = 1... I think this formulation would be the
simplest to expand into three or more terms. 

-- 
Raymond Wiker                        Mail:  Raymond.Wiker@fast.no
Senior Software Engineer             Web:   http://www.fast.no/
Fast Search & Transfer ASA           Phone: +47 23 01 11 60
P.O. Box 1677 Vika                   Fax:   +47 35 54 87 99
NO-0120 Oslo, NORWAY                 Mob:   +47 48 01 11 60