24. Logical AND Immediate to CCR

24.1. Name

ANDI to CCR -- Logical AND immediate to condition code register

24.2. Synopsis

        ANDI        #<data>,CCR

        Size = (Byte)

24.3. Function

Performs a bit-wise AND operation with the immediate data and the lower byte of the status register.

24.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 | 0 | 1 | 1 | 1 | 1 | 0 | 0 |
        |---|---|---|---|---|---|---|---|-------------------------------|
        | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |     8 BITS IMMEDIATE DATA     |
        -----------------------------------------------------------------

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

24.6. See also

AND ANDI ANDI to SR