The ANDXOR instruction (currently) is not really documented in the guide, but is documented in the AS10k1 Online manual.
However, I noticed that the documentation (as well as the macro in the emu_constants.asm file) in the AS10k1 Manual for implementing logical 'OR' is not correct.
The correct implementation is as follows:
Code:
; ANDXOR = (A AND X) XOR Y
; Y OR X = (NOT(Y) AND X) XOR Y
andxor tmp, Y, 0xffffffff, 0xffffffff;
andxor tmp, tmp, X, Y;
I just thought I would post this in case anyone ever has the need for using logical 'OR' in their code.
If anyone wants to post anything else about the ANDXOR instruction, maybe posting it in this thread would be a good idea...
-Russ