xor

Operands

xor r | xor r,r' | xor (rr) | xor r,(rr) | xor (ii+dd) | xor r,(ii+dd) | xor nn | xor r,nn

Bitwise XOR on A with B.

Loading...

Variants

Every form of xor the assembler accepts. The cycles column counts clock cycles, written as taken/not taken for the conditional forms.

InstructionDescriptionFlagsBytesCycles
xor b

Bitwise XOR on A with B.

C=0N=0P/V=PH=0ZS14
xor c

Bitwise XOR on A with C.

C=0N=0P/V=PH=0ZS14
xor d

Bitwise XOR on A with D.

C=0N=0P/V=PH=0ZS14
xor e

Bitwise XOR on A with E.

C=0N=0P/V=PH=0ZS14
xor h

Bitwise XOR on A with H.

C=0N=0P/V=PH=0ZS14
xor l

Bitwise XOR on A with L.

C=0N=0P/V=PH=0ZS14
xor (hl)

Bitwise XOR on A with (HL).

C=0N=0P/V=PH=0ZS17
xor a

Bitwise XOR on A with A.

C=0N=0P/V=PH=0ZS14
xor ixh undocumented

Bitwise XOR on A with IXH.

C=0N=0P/V=PH=0ZS28
xor ixl undocumented

Bitwise XOR on A with IXL.

C=0N=0P/V=PH=0ZS28
xor (ix+dd)

Bitwise XOR on A with the value pointed to by IX plus dd.

C=0N=0P/V=PH=0ZS319
xor nn

Bitwise XOR on A with nn.

C=0N=0P/V=PH=0ZS27
xor iyh undocumented

Bitwise XOR on A with IYH.

C=0N=0P/V=PH=0ZS28
xor iyl undocumented

Bitwise XOR on A with IYL.

C=0N=0P/V=PH=0ZS28
xor (iy+dd)

Bitwise XOR on A with the value pointed to by IY plus dd.

C=0N=0P/V=PH=0ZS319