[destination] ← <literal> ⊕ [destination]
EORI #<data>,<ea>
Size
byte, word, longword
EOR the immediate data with the contents of the destination operand. Store the result in the destination operand.
X | N | Z | V | C |
---|---|---|---|---|
- | * | * | 0 | 0 |
Dn | An | (An) | (An)+ | ‑(An) | (d,An) | (d,An,Xi) | ABS.W | ABS.L | (d,PC) | (d,PC,Xn) | imm |
---|---|---|---|---|---|---|---|---|---|---|---|
✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
[CCR] ← <literal> ⊕ [CCR]
EORI #<data>,CCR
Size
byte
EOR the immediate data with the contents of the condition code register (i.e., the least-significant byte of the status register).
Used to toggle bits in the CCR. For example, EORI #$0C,CCR
toggles the N- and Z-bits of the CCR.
X | N | Z | V | C |
---|---|---|---|---|
* | * | * | * | * |
X:= toggled if bit 4 of data = 1; unchanged otherwise
N:= toggled if bit 3 of data = 1; unchanged otherwise
Z:= toggled if bit 2 of data = 1; unchanged otherwise
V:= toggled if bit 1 of data = 1; unchanged otherwise
C:= toggled if bit 0 of data = 1; unchanged otherwise
IF [S] = 1
THEN
[SR] ← <literal> ⊕ [SR]
ELSE TRAP
EORI #<data>,SR
Size
word
EOR (exclusive OR) the immediate data with the contents of the status register and store the result in the status register. All bits of the status register are affected.
X | N | Z | V | C |
---|---|---|---|---|
* | * | * | * | * |
X:= toggled if bit 4 of data = 1; unchanged otherwise
N:= toggled if bit 3 of data = 1; unchanged otherwise
Z:= toggled if bit 2 of data = 1; unchanged otherwise
V:= toggled if bit 1 of data = 1; unchanged otherwise
C:= toggled if bit 0 of data = 1; unchanged otherwise
From MOTOROLA M68000 FAMILY Programmer's reference manual. Copyright 1992 by Motorola Inc./NXP. Adapted with permission.