150
Rabbit 2000/3000 Microprocessor
Description
Performs an exclusive OR operation between the data in A and the data whose address is:
•
the data in HL, or
•
the sum of the data in IX and a displacement d, or
•
the sum of the data in IY and a displacement d.
The corresponding bits of each byte are compared (i.e., bit 0 of both bytes are compared, bit 1 of both bytes
are compared, etc.). The associated bit in the result byte is set if and only if one of the two compared bits is
set. The result is stored in A.
Example
If HL contains 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 (HL)
would result in the byte in A becoming 1100 0110.
XOR (HL)
XOR (IX+
d
)
XOR (IY+
d
)
Opcode
Instruction
Clocks
Operation
AE
XOR (HL)
5 (2,1,2)
A = [A & ~(HL)] | [~A & (HL)]
DD AE
d
XOR (IX+
d
)
9 (2,2,2,1,2)
A = [A & ~(IX +
d
)] |
[~A & (IX +
d
)]
FD AE
d
XOR (IY+
d
)
9 (2,2,2,1,2)
A = [A & ~(IY +
d
)] |
[~A & (IY +
d
)]
Flags
ALTD
I/O
S
Z
L/V
C
F
R
SP
S
D
•
•
L
0
•
•
•
Summary of Contents for 2000
Page 2: ...ii Rabbit 2000 3000 Microprocessor...
Page 4: ...iv Rabbit 2000 Microprocessor...
Page 16: ...12 Rabbit 2000 3000 Microprocessor...
Page 164: ...160 Instruction Reference Manual...