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

Re: Exclusive Or in Applesoft?



Michael J. Mahon wrote:
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.

I was going to say: Z=((X OR Y) AND (NOT (X AND Y))), but yours sounds much simpler. XD

Moll.