AND (logical AND) Tags: NZ

Description:

Performs logical I (conjunction) on the bits of the given and the accumulator. The result remains in the accumulator.

AND Function:

Until B (a) AND (b)
1 1 1
1 0 0
0 1 0
0 0 0

Example:

    AND #@00001111    ; masking the top four bits in A
    AND #$80        ; masking all bits except the highest