BIT (test bits) Tags: NVZ

Description:

Performs logical AND on the bits of the given and the accumulator. The result is not saved anywhere, only tags are modified. The Z tag is set, if the result is zero, to the V and N tags are copied to bits 6 and 7 of the given one, respectively. The accumulator is not changed.

Example:

    BIT port    ; testing port bits