
Z80 Instruction Set UM008007-0715
160
Z80 CPU
User Manual
r identifies registers B, C, D, E, H, L, or A specified in the assembled object code field, as
follows:
Description
The logical exclusive-OR operation is performed between the byte specified by the s oper-
and and the byte contained in the Accumulator; the result is stored in the Accumulator.
Condition Bits Affected
S is set if result is negative; otherwise, it is reset.
Z is set if result is 0; otherwise, it is reset.
H is reset.
P/V is set if parity even; otherwise, it is reset.
N is reset.
C is reset.
Example
If the Accumulator contains 96h (1001 0110), then upon the execution of an XOR 5Dh
(5Dh = 0101 1101) instruction, the Accumulator contains CBh (1100 1011).
Register r
B 000
C 001
D 010
E 011
H 100
L 101
A 1l1
Instruction M Cycles T States 4 MHz E.T.
XOR r141.00
XOR n 2 7 (4, 3) 1.75
XOR (HL) 2 7 (4, 3) 1.75
XOR (IX+d) 5 19 (4, 4, 3, 5, 3) 4.75
XOR (lY+d) 5 19 (4, 4, 3, 5, 3) 4.75
Comentarios a estos manuales