eZ80
®
CPU
User Manual
UM007714-0908 CPU Instruction Set
370
XOR A, (IX/Y+d)
Logical Exclusive OR
Operation
A ← A XOR (IX/Y+d)
Description
The (
IX/Y
+
d
) operand is an 8-bit value at the memory location specified by the contents
of the Index Register, IX or IY, added to the two’s-complement displacement
d
. This 8-bit
value is bitwise exclusive-ORed with the contents of the accumulator, A. The result is
written to the accumulator.
Condition Bits Affected
Attributes
jj identifies the A, B, C, D, E, H, or L register and is assembled into one of the opcodes
indicated in Table 104.
S Set if result is negative; reset otherwise.
Z Set if result is 0; reset otherwise.
H Reset.
P/V Set if parity is even; reset otherwise.
N Reset.
C Reset.
Mnemonic Operand ADL Mode Cycle Opcode (hex)
XOR A,(IX+d)X 4 DD, AE, dd
XOR.S A,(IX+d)1 5 52, DD, AE, dd
XOR.L A,(IX+d)0 5 49, DD, AE, dd
XOR A,(IY+d)X 4 FD, AE, dd
XOR.S A,(IY+d)1 5 52, FD, AE, dd
XOR.L A,(IY+d)0 5 49, FD, AE, dd