![background image](http://html1.mh-extra.com/html/rabbit/2000/2000_instruction-and-reference-manual_3112735154.webp)
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
•
•
•
Содержание 2000
Страница 2: ...ii Rabbit 2000 3000 Microprocessor...
Страница 4: ...iv Rabbit 2000 Microprocessor...
Страница 16: ...12 Rabbit 2000 3000 Microprocessor...
Страница 164: ...160 Instruction Reference Manual...
Страница 172: ...168 Rabbit 2000 3000 Microprocessor...
Страница 174: ...170 Rabbit 2000 3000 Microprocessor...