25. Logical AND Immediate to SR (privileged)

25.1. Name

ANDI to SR -- Logical AND immediate to status register (privileged)

25.2. Synopsis

        ANDI        #<data>,SR

        Size = (Word)

25.3. Function

Performs a bit-wise AND operation with the immediate data and the status register. All implemented bits of the status register are affected.

25.4. Format

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

25.5. Result

        X - Cleared if bit 4 of immed. operand is zero. Unchanged otherwise.
        N - Cleared if bit 3 of immed. operand is zero. Unchanged otherwise.
        Z - Cleared if bit 2 of immed. operand is zero. Unchanged otherwise.
        V - Cleared if bit 1 of immed. operand is zero. Unchanged otherwise.
        C - Cleared if bit 0 of immed. operand is zero. Unchanged otherwise.

25.6. See also

AND ANDI ANDI to CCR