68. Exclusive OR Immediate to CCR

68.1. Name

EORI to CCR -- Exclusive OR immediate to the condition code register

68.2. Synopsis

        EORI        #<data>,CCR

        Size = (Byte)

68.3. Function

Performs an exclusive OR operation on the condition codes register with the source operand.

68.4. Format

        -----------------------------------------------------------------
        |15 |14 |13 |12 |11 |10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
        |---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
        | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 |
        |---|---|---|---|---|---|---|---|-------------------------------|
        | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |     8 BITS IMMEDIATE DATA     |
        -----------------------------------------------------------------

68.5. Result

        X - Changed if bit 4 of the source is set, cleared otherwise.
        N - Changed if bit 3 of the source is set, cleared otherwise.
        Z - Changed if bit 2 of the source is set, cleared otherwise.
        V - Changed if bit 1 of the source is set, cleared otherwise.
        C - Changed if bit 0 of the source is set, cleared otherwise.

68.6. See also

EOR EORI EORI to SR