Bitwise XOR on A with B.
xor
Operands
xor r | xor r,r' | xor (rr) | xor r,(rr) | xor (ii+dd) | xor r,(ii+dd) | xor nn | xor r,nnLoading...
Variants
Every form of xor the assembler accepts. The cycles column counts clock
cycles, written as taken/not taken for the conditional forms.
| Instruction | Description | Flags | Bytes | Cycles |
|---|---|---|---|---|
| xor b | Bitwise XOR on A with B. | C=0N=0P/V=PH=0ZS | 1 | 4 |
| xor c | Bitwise XOR on A with C. | C=0N=0P/V=PH=0ZS | 1 | 4 |
| xor d | Bitwise XOR on A with D. | C=0N=0P/V=PH=0ZS | 1 | 4 |
| xor e | Bitwise XOR on A with E. | C=0N=0P/V=PH=0ZS | 1 | 4 |
| xor h | Bitwise XOR on A with H. | C=0N=0P/V=PH=0ZS | 1 | 4 |
| xor l | Bitwise XOR on A with L. | C=0N=0P/V=PH=0ZS | 1 | 4 |
| xor (hl) | Bitwise XOR on A with (HL). | C=0N=0P/V=PH=0ZS | 1 | 7 |
| xor a | Bitwise XOR on A with A. | C=0N=0P/V=PH=0ZS | 1 | 4 |
| xor ixh undocumented | Bitwise XOR on A with IXH. | C=0N=0P/V=PH=0ZS | 2 | 8 |
| xor ixl undocumented | Bitwise XOR on A with IXL. | C=0N=0P/V=PH=0ZS | 2 | 8 |
| xor (ix+dd) | Bitwise XOR on A with the value pointed to by IX plus | C=0N=0P/V=PH=0ZS | 3 | 19 |
| xor nn | Bitwise XOR on A with | C=0N=0P/V=PH=0ZS | 2 | 7 |
| xor iyh undocumented | Bitwise XOR on A with IYH. | C=0N=0P/V=PH=0ZS | 2 | 8 |
| xor iyl undocumented | Bitwise XOR on A with IYL. | C=0N=0P/V=PH=0ZS | 2 | 8 |
| xor (iy+dd) | Bitwise XOR on A with the value pointed to by IY plus | C=0N=0P/V=PH=0ZS | 3 | 19 |