[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Exclusive Or in Applesoft?
- Subject: Re: Exclusive Or in Applesoft?
- From: mjmahon@aol.com (Michael J. Mahon)
- Date: 18 Dec 2004 19:02:43 GMT
- Newsgroups: comp.sys.apple2
- Organization: AOL http://www.aol.com
- References: <w4_wd.196046$jE2.159403@bignews4.bellsouth.net>
- Xref: g2news1.google.com comp.sys.apple2:6320
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/