BIT             BIT Test bits in memory with accumulator              BIT

  Operation:  A /\ M -> Z, M7 -> N, M6 -> V             N V - B D I Z C
                                                        M7M6. . . . / .
  Bit 6 and 7 are transferred to the status register.
  If the result of A /\ M is zero then Z = 1, otherwise Z=0.

  +----------------+-----------------------+---------+---------+----------+
  | Addressing Mode| Assembly Language Form| OP CODE |No. Bytes|No. Cycles|
  +----------------+-----------------------+---------+---------+----------+
  |  ZeroPage      |   BIT $FF             |   $24   |    2    |    3     |
  |  Absolute      |   BIT $FFFF           |   $2C   |    3    |    4     |
  +----------------+-----------------------+---------+---------+----------+
  For penalty cycles on the 65816, check the desired addressing mode.

 65816 Extensions:

  +----------------+-----------------------+---------+---------+----------+
  | Addressing Mode| Assembly Language Form| OP CODE |No. Bytes|No. Cycles|
  +----------------+-----------------------+---------+---------+----------+
  | Immediate      |   BIT #$FF            |   $89   |    2    |    2     |
  | Direct Page,X  |   BIT $FF,X           |   $34   |    2    |    3     |
  | Absolute,X     |   BIT $FFFF,X         |   $3C   |    3    |    4     |
  +----------------+-----------------------+---------+---------+----------+