23
The 68000's Instruction Set
EORI EOR immediate
Operation: [destination] ← <literal> ⊕ [destination]
Syntax: EORI #<data>,<ea>
Attributes: Size = byte, word, longword
Description: EOR the immediate data with the contents of the destination
operand. Store the result in the destination operand.
Condition codes: X N Z V C
- * * 0 0
Destination operand addressing modes
EORI to CCR EOR immediate to CCR
Operation: [CCR] ← <literal> ⊕ [CCR]
Syntax: EORI #<data>,CCR
Attributes: Size = byte
Description: EOR the immediate data with the contents of the condition code
register (i.e., the least-significant byte of the status register).
Application: Used to toggle bits in the CCR. For example, EORI#$0C,CCR
toggles the N- and Z-bits of the CCR.
Condition codes: 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