
5-179
Z380
™
USER'S MANUAL
ZILOG
DC-8297-03
XOR
EXCLUSIVE OR (BYTE)
XOR [A,]src src = R, RX, IM, IR, X
Operation: A ← A XOR src
A logical EXCLUSIVE OR operation is performed between the corresponding bits of the
source operand and the accumulator and the result is stored in the accumulator. A 1 bit is
stored wherever the corresponding bits in the two operands are different; otherwise a 0 bit
is stored. The contents of the source are unaffected.
Flags: S: Set if the most significant bit of the result is set; cleared otherwise
Z: Set if all bits of the result are zero; cleared otherwise
H: Cleared
P: Set if the parity is even; cleared otherwise
N: Cleared
C: Cleared
Addressing Execute
Mode Syntax Instruction Format Time Note
R: XOR [A,]R 10101-r- 2
RX: XOR [A,]RX 11y11101 1010110w 2
IM: XOR [A,]n 11101110 ——n— 2
IR: XOR [A,](HL) 10101110 2+r
X: XOR [A,](XY+d) 11y11101 10101110 ——d— 4+r I
Field Encodings: r: per convention
y: 0 for IX, 1 for IY
w: 0 for high byte, 1 for low byte
Comentários a estes Manuais