Skip to content

Latest commit

 

History

History
85 lines (65 loc) · 2.22 KB

File metadata and controls

85 lines (65 loc) · 2.22 KB

EORI - Exclusive-OR 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

Dn An (An) (An)+ ‑(An) (d,An) (d,An,Xi) ABS.W ABS.L (d,PC) (d,PC,Xn) imm

EORI to CCR - Exclusive-OR 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

EORI to SR - Exclusive-OR immediate to status register

Operation

IF [S] = 1
 THEN
  [SR] ← <literal> ⊕ [SR]
 ELSE TRAP

Syntax

EORI #<data>,SR

Attributes

Size word

Description

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.

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

From MOTOROLA M68000 FAMILY Programmer's reference manual. Copyright 1992 by Motorola Inc./NXP. Adapted with permission.