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

Re: Exclusive Or in Applesoft?



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).

If you need to exclusive-or whole bytes, then a short machine code
routine on page 3 is your best bet.

-michael

New Applesoft BASIC interface for NadaNet networking!
Home page:  http://members.aol.com/MJMahon/