XOR s |
Exclusive or accumulator and s. |
Function: |
A
A
s |
Format: |
s: may be r, n, (HL), (IX + d), or (IY + d) |
r |
|
|
n |
|
byte 1: EE |
|
|
byte 2: immediate data |
(HL) |
|
AE |
(IX + d) |
|
byte 1: DD |
|
|
byte 2: AE |
|
|
byte 3: offset data |
(IY + d) |
|
byte 1: FD |
|
|
byte 2: AE |
|
|
byte 3: offset data |
|
r may be any one of:
- A
- 111
- B
- 000
- C
- 001
- D
- 010
- E
- 011
- H
- 100
- L
- 101
|
Description: |
The accumulator and the specified operand s are exclusively 'or'ed, and the result is stored in the accumulator. s is defined in the descriptions of the similar ADD instructions. |
Data Flow: |
|
Timing: |
s: |
M cycles: |
T states: |
usec @ 2 MHz: |
r
n
(HL)
(IX + d)
(IY + d) |
1
2
2
5
5 |
4
7
7
19
19 |
2
3.5
3.5
9.5
9.5 |
|
Addressing Mode: |
r: implicit; n: immediate; (HL): indirect; (IX + d), (IY+d): indexed. |
Byte Codes: |
XOR r
|
Flags: |
|
Example: |
XOR B1H |
OBJECT CODE |
Before: |
After: |
|
|