99. Logical OR immediate to CCR

99.1. Name

ORI to CCR -- Logical OR immediate to the condition code register

99.2. Synopsis

        ORI        #<data>,CCR

        Size = (Byte)

99.3. Function

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

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

99.5. Result

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

99.6. See also

OR ORI ORI to SR