100. Logical OR immediated to SR (PRIVILEGED)

100.1. Name

ORI to SR -- Logical OR immediated to the status register (PRIVILEGED)

100.2. Synopsis

        ORI        #<data>,SR

        Size = (Word)

100.3. Function

Performs an OR operation on the status register with the source operand, and leaves the result in the status register.

100.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 | 1 | 1 | 1 | 1 | 1 | 0 | 0 |
        |---|---|---|---|---|---|---|---|-------------------------------|
        |                     16 BITS IMMEDIATE DATA                    |
        -----------------------------------------------------------------

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

100.6. See also

OR ORI ORI to CCR