<< Previous | Next >>

XOR (IX+d)
XOR (IY+d)
    Exclusive OR
    Rabbit 2000/3000/4000/5000 Instruction

Opcode
Instruction
Operation
DD AE d XOR (IX+d) A = [A & ~(IX + d)] |
[~A & (IX + d)]
FD AE d XOR (IY+d) A = [A & ~(IY + d)] |
[~A & (IY + d)]

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 2000/3000/4000
9
n/a
n/a
Rabbit 5000
10
9
8

Flags ALTD IOI/IOE
S
Z
L/V
C
F
R
SP
S
D
·
·
L
0
·
·
·

Description

Performs an exclusive OR operation between A and the data whose address is:

The result is stored in A.

The Rabbit 4000/5000 assemblers view "XOR A,(IX+d)" and "XOR (IX+d)" as equivalent instructions. The same is true for "XOR A,(IY+d)" and "XOR (IY+d)."

Example

If the sum of IX and d is 0x4000 and the memory location 0x4000 contains the byte 1001 0101 and A contains the byte 0101 0011 then the execution of the instruction


XOR (IX+d)

would result in the byte in A becoming 1100 0110.


Rabbit Instructions << Previous | Next >> rabbit.com