106
Rabbit 2000/3000 Microprocessor
Description
Performs an exclusive OR operation between the data in the Accumulator and the data whose address is:
•
the data in word register HL, or
•
the sum of the data in index register IX and a displacement d, or
•
the sum of the data in index register IY and a displacement d.
The corresponding bits of each byte are compared (i.e., the bit 1 of both bytes are compared, the bit 2 of both
bytes are compared, etc.) and 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 the Accumulator.
Example
If the HL contains 0x4000 and the memory location 0x4000 contains the byte 1001 0101 and the Accumula-
tor contains the byte 0101 0011 then the execution of the instruction
XOR (HL)
would result in the byte in the Accumulator 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...
Страница 112: ...108 Rabbit 2000 3000 Microprocessor...
Страница 120: ...ii Rabbit 2000 3000 Microprocessor...