69. Exclusive OR immediated with SR (PRIVILEGED)

69.1. Name

EORI to SR -- Exclusive OR immediated to the status register (PRIVILEGED)

69.2. Synopsis

        EORI        #<data>,SR

        Size = (Word)

69.3. Function

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

69.4. Format

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

69.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.

69.6. See also

EOR EORI EORI to CCR